ibm-mobilefirst

Worklight 6.1 “access to protected services is denied” after app is deployed to App Store

老子叫甜甜 提交于 2019-12-07 22:16:49
问题 I have deployed an app to the Apple App store . Local and on device testing went fine, but when the app is loaded from the App store onto an iOS 7.1 device, the user receives a Access to Server is Disabled - Login Failed dialog, followed by a solid white screen. Looking at the phone console log, the following error appears: backboardd[31] <Error>: HID: The 'Rate Controlled' connection '<application name>' access to protected services is denied. Searching on Apple developer forums and

How to tell app was started by tapping push message notification

自闭症网瘾萝莉.ら 提交于 2019-12-07 21:15:33
问题 I have a Worklight app that receives push notifications from the server. A notification means there are new messages for the current user from other users. A user would read them by visiting a messages page within the app and then proceeding to a particular conversation page. I would like to differentiate in the code between user intentions. The app would: If the user started the app normally (not by tapping a new notification), present the user with the regular app home screen. If the user

IBM Worklight - How to change the url of the worklight server dynamically

末鹿安然 提交于 2019-12-07 17:29:55
问题 I need to customize a screen where the user can inform the worklight server ip in client-side. I can change the url connection dynamically? I know that pressing the menu button in android, there is the option of informing the url, but i want custom screen. 回答1: Technically speaking it is possible to change the Worklight Server URL that the application connects to, but things can and likely will go wrong and it is absolutely not supported by IBM Worklight. As for creating some UI for it, that

Worklight - Open a Native application

穿精又带淫゛_ 提交于 2019-12-07 16:27:31
问题 In Worklight, its possible to open a native page from the Worklight application for Android. Is it possible to launch a native application from an application developed by Worklight in an Android device? If possible, how? Thanks in advance. 回答1: Yes and it has nothing to do with Worklight :) In your native page in Worklight (or you can write a phonegap plugin if you prefer), you need to create an intent (see http://developer.android.com/reference/android/content/Intent.html). This intent can

How to implement OAUTH 2.0 in IBM Worklight 6.0

允我心安 提交于 2019-12-07 08:02:01
问题 In my app I have implemented Login module auth security by implementing security realms. But i am thinking of implementing a OAUTH2.0 authentication where user will be authenticated once I will get a token and re-validate than on app starts. So please one guide what are the prerequisites to implement this. Can I achieve this by creating a custom authentication module ? Any guide sample code will be really helpful. 回答1: There is an article that was published that shows how to use OAuth with

Cordova Android application getting “invalid_client” from MobileFirst 8.0 server

回眸只為那壹抹淺笑 提交于 2019-12-07 05:47:59
问题 My Cordova IOS application integrated with IBM MobileFirst v8 works fine. However I face a weird issue with Android . The scenario is, The user has to login into security check to access the application. The challenge handler is called and credentials are submitted to (runtime/api/preauth/v1/preauthorize). I see in the logs security check is passed. I can see the next call to authorization end point (runtime/api/az/v1/authorization) However I see a difference between Android and IOS in the

Worklight Analytics payload

陌路散爱 提交于 2019-12-07 00:57:27
Worklight 6.2.0, Mobile Web Environment The Worklight Info Center offers three formulations for logging an analytic message WL.Analytics.log('my record'); WL.Analytics.log({data: [1,2,3]}); WL.Analytics.log({data: [1,2,3]}, 'MyData'); I am successfully using the first of these, but the other two produce no analytics and my fail() function is not fired. I see in the online tutorials a further formulation WL.Analytics.log({_activity: "myActivity" }); this too produces no output. Question: Are there other formulations that do work? All calls other than WL.Analytics.log('my record') were intended

IBM Worklight Using Multiple HTML Files

自古美人都是妖i 提交于 2019-12-07 00:40:28
I am new to IBM Worklight . I have been using Android from past 1 year. I liked Worklight a lot and I feel I can do a lot more with it. I want to develop the app/game in HTML 5 using Worklight with Eclipse IDE. So I would like to know how to link all the required html,js and css files in one Worklight Project and dun it on various platforms... The worklight application is entirely works on IFrame concept i.e it is a single page application. Even though you have n number of pages it wont behave like web application. Just putting one page over another. Here in samples they gave information about

Not able to send push notification to iOS devices through MFP Server V8 Console

六眼飞鱼酱① 提交于 2019-12-06 19:24:27
I am trying to send a push notification to an iOS device through MobileFirstPlatform V8.0 Server Console but when I am sending the notification I am getting the following error: An error occurred while the notification was sent. Internal server error. No devices found. I checked in Home -> mfp -> Devices , the devices exist there: I am able to successfullly send a notification to the android devices. Its just the iOS ones which are causing the problem. UPDATE I enabled the trace and when I am sending the notifications, i am getting below Exception: [3/1/17 10:16:29:211 CST] 00005aa0

IBM Worklight 6.1- [ERROR ] FWLSE0020E and [ERROR ] FWLSE0117E

浪尽此生 提交于 2019-12-06 15:02:13
I'm using worklight 6.1 for my mobile app project. Why do I get this error message when preview in Eclipse? Error message: [ERROR ] FWLSE0020E: Ajax request exception: The application 'example' with version=1.0 does not support the android environment [project example] [ERROR ] FWLSE0117E: Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0069E: An internal error occurred during gadget request [project example]The application 'example' with version=1.0 does not support the android environment, User Identity {SubscribeServlet=null, wl_authenticityRealm=null, wl