ibm-mobilefirst

JSONStore error when push a collection with documents with files

独自空忆成欢 提交于 2019-12-02 19:04:28
问题 I have a JSONStore for a list of customers, the user can add documents to those customers using the app. The list of cusotmers and its data (also attached documents) must be synch with the backend. When I add a ppt document 774KB (that is the size in binary, I transform it to base64) to the json store and execute the push() it fails with the error: E/CursorWindow(32705): need to grow: mSize = 1048576, size = 1056310, freeSpace() = 1048464, numRows = 1 E/CursorWindow(32705): Attempting to grow

IBM Worklight - How to use Google authentication in a Hybrid application?

允我心安 提交于 2019-12-02 19:04:23
问题 I am facing difficulties implementing social authentication (using Google, Facebook) in a Worklight app with the Android and iOS environments. I am trying to use oauth. The following are requirements: var OAUTHURL = 'https://accounts.google.com/o/oauth2/auth?'; var VALIDURL = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token='; var SCOPE = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email'; var CLIENTID = '97612631714.apps

App will throw exception at when I first login when device SSO is enabled

房东的猫 提交于 2019-12-02 18:59:24
问题 I am testing the DeviceSSO feature, but it will throw the following exception when first time login. I'm using MobileFirst Studio 7.0 built-in server java.lang.IllegalArgumentException at javax.ws.rs.core.GenericEntity.<init>(GenericEntity.java:41) at com.worklight.adapters.rest.JSAdapterInvoker.invokeAdapter(JSAdapterInvoker.java:42) at com.worklight.adapters.rest.JSAdapterRestWrapper.getSecretDataGet(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun

FWLSE3034E: The application “App name” for the runtime “runtime name” does not exist in the Worklight administration database

蹲街弑〆低调 提交于 2019-12-02 18:46:45
问题 I am getting the following error when compile and build the App pointing to remote server. I was checking the server configuration, everything looks correct. It began showing the error when implementing Post Notifications functions. MobileFirst plugin in Eclipse = 6.3.0 BinaryDownload E FWLSE3002E: The resource is not found. com.ibm.worklight.admin.common.util.exceptions.NotFoundException: FWLSE3034E: The application "App name" for the runtime "runtime name" does not exist in the Worklight

What is the main difference between require() and define() function in dojo and when would we use either?

泄露秘密 提交于 2019-12-02 17:27:27
I am new to learning dojo and I have come across the require() and define() functions and I can not get my head around either of them. Also, when would I use either of them? A small demo or example would be beneficial. Many Thanks! require and define are part of the asynchronous module definition (AMD) API. You use define to define a module that can be consumed by other code. Generally, define will be used in a javascript file. The javascript file is defining a module. All Dojo files use define. You use require when you are not defining a module, but you require modules that have been defined.

IBM Worklight 5.0.5 - Play custom sound on push notification

拟墨画扇 提交于 2019-12-02 16:13:19
问题 When I use WL.Server.notifyAllDevices(userSubscription, { badge: 1, sound: "notification.wav", activateButtonLabel: "ClickMe", alert: notificationText, payload: { foo : 'bar' } }); to push a notification in IBM Worklight 5.0.5 on Android, it does not seem to be possible to use the custom sound option. No matter where I put the sound file, Worklight does not find it. According to the client traces, it does not even search for the file. Has anybody ever tried this successfully? 回答1: To use a

IBM Worklight 6.1 Developer edition Download Link

故事扮演 提交于 2019-12-02 15:54:19
问题 I am trying to download the IBM Worklight 6.1 from market place or google but i can't see any results for same, Can any one please share a link for IBM WL 6.1 and also how to upgrade the fix pack to 6.1.0.1. Also i am looking for developers edition. Since the 6.2 is released i can only see 6.2 links and not 6.1 Can any one please suggest what can be done. Appreciate your help in advance. Thanks Deepesh 回答1: For Worklight Developer Edition, only the latest released version (which is 6.2, at

Uploading hybrid app to mobilefirst test workbench fails

人盡茶涼 提交于 2019-12-02 15:11:56
问题 Okay, so I just created an HelloWorld hybrid application with the MobileFirst Plugin (Version 7.1.0) for Eclipse Luna 4.4.2 which I want to then test with the MobileFirst Platform Test Workbench (Version 8.7). I deployed the app onto my Android Device (5.0.1) and from there on I want to upload it, using the IBM Rational Test Workbench Mobile Application. My device is correctly linked but I'm getting the following errors: !ENTRY com.ibm.rational.test.lt.models.behavior.moeb 1 0 2015-09-08 17

IBM Worklight - Unable to load index.html in a Dojo app

一个人想着一个人 提交于 2019-12-02 15:10:07
问题 I have created sample Wokrlight Project with Dojo library (default template project). The Android version of app runs fine in the Android Emulator showing the content of index.html. But When I run the same app in a device, it first shows IBM splash image and then the following error: Application Error The Connection to the server was unsuccessful. (file:///data/data/com.HelloWorklight/files/www/default/index.html) Here are the steps I followed. Create New Hybrid Application Worklight Project

IBM Worklight 6.1 - Questions about “Worklight Settings”

梦想的初衷 提交于 2019-12-02 15:08:20
问题 I'm having some issues with the settings part on Android devices. Currently there are 2 problems: The settings page does not open. I push the settings button on my phone and then the "Worklight Settings" option appears. When I tap that the settings is supposed to appear, but it does not appear. If I press the "Worklight Settings" button and then rotate the device, the settings page appears... This bug occurred on 4.3.0, 4.2.2 and 4.0.4 (every device I tried it on). Worth noting on 4.2.2, if I