ibm-mobilefirst

Worklight, Java SQL Adapter, Adapter deployment failed

可紊 提交于 2019-12-13 04:07:10
问题 Im following Java SQL Adapter tutorial from IBM worklight. When I deployed both RSSAdapter and UserAdapter from sample code, the error console is Adapter deployment failed: The adapter was built with a later version of Java than is used to run the server. Im using JDK version 7. Howerver, I also try to downgrade JDK to verion 6, but it still doesn't work. Image for error 回答1: Try change compilance level. The Java 8 compiler will produce class files in the Java 8 version of the class file

How to properly initialize the JSON store in Worklight 6.1

依然范特西╮ 提交于 2019-12-13 03:57:55
问题 I am attempting to initalize the IBM Worklight JSON store as below: //JSONStore jsonStoreCollection metadata var jsonStoreCollection = {}; //JSONStore jsonStoreCollection metadata var COLLECTION_NAME = 'people'; function wlCommonInit(){ // Create empty options to pass to // the WL.JSONStore.init function var options = {}; //Define the collection and list the search fields jsonStoreCollection[COLLECTION_NAME] = { searchFields : {name: 'string'}, }; //Initialize the JSON store collection WL

IBM Appcenter console apk fails to upload

十年热恋 提交于 2019-12-13 03:47:32
问题 I have 2 questions on deploying mobile first apps to the appcenter. What I did: Installed eclipse then Mobile First 6.3 studio, followed the IBM WebSphere Application Server Liberty Core and finally the appcenter. All installed no problems. Setup a MobileFirst server configuration and a runtime following the instructions on here What didn't work: Added an android environment to my project, built it and tried to add the apk. Got the "file not uploaded" message, appear next to the upload field.

MQALogger – Library and documentation are not consistent

烂漫一生 提交于 2019-12-13 03:44:38
问题 In the documentation a method [[MQALogger defaultSettings] setReportOnDoubleSlideEnabled:false] is mentioned. But the library does not have such a method. Is there a library update that contains this method? The reason for this question is, that the shake gesture is already used in our application. 回答1: Starting in version 2.x of the iOS library, APHLogger has been deprecated and replaced with MQALogger. Deprecated methods that have not been moved to MQALogger can continue to be used from

Using Domain mfp 8 server return “request time out” using real mobile device?

余生长醉 提交于 2019-12-13 03:10:02
问题 Image of the console error mobile apps are successfully connected using mfp server IP Address with port 9080 but using instead of IP with Domain the mfp8 server response error msg "The Request time out" and response text "undefined" Using IP Address: mfpclient properties file: wlServerProtocol = http wlServerHost = **.**.**.78 wlServerPort = 9080 wlServerContext = /mfp/ testWebResourcesChecksum = false ignoredFileExtensions = png, jpg, jpeg, gif, mp4, mp3 wlPlatformVersion = 8.0.0.00-20190910

IBM Worklight: Push Notification Device ID

北城以北 提交于 2019-12-13 03:08:33
问题 There is a field called "device" in deviceSubscription. I assume that it is corresponding to the device ID for the device. And this value is used as a parameter in WL.Server.notifyDevice(userSubscription, device, options) to submit notification for a specific device for a user. However, when I re-install the apps again, the value in deviceSubscription.device is changed. Therefore, there are different device ID subscribing to an event source although they are actually the same device. May I

Android - Worklight Hybrid application fails to connect to server in the emulator

折月煮酒 提交于 2019-12-13 02:59:59
问题 I created a worklight application. I tried running that application on android emulator and i am getting the following error. [http://localhost:8080/apps/services/api/MyFirstApp/android/query] Host is not responsive. Try to manually access the URL through the android emulator browser to verify connectivity So i tried to enter the same url in the emulator browser, i got the following text: /*-secure- {"WL-Authentication-Failure": {"wl_remoteDisableRealm":{"reason":"Login Failed}}} */ Can

IBM Worklight - Sending HTTP POST request from the client side

纵饮孤独 提交于 2019-12-13 02:24:57
问题 I have an application which needs to send an HTTP POST request from the client side to a server every half an hour. The server would then update a database with the parameters sent by the client. My question is how do I initiate a HTTP Post request to the server from the client through Worklight? 回答1: You start by reading the server-side development section of the IBM Worklight Getting Started page: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#server-side

IBM Worklight 6.0 - Is it possible to have a common config.xml for all environments?

假如想象 提交于 2019-12-13 02:19:10
问题 Using Worklight 6.0 on Eclipse Juno. Problem is when I build Worklight project for all environments, config.xml is generated accordingly. Now, I have to make changes every time for Android & iPhone/iPad I have to manually add all the plugins list into it. Is there any way that I can add it once in config.xml and have it used everywhere every time? 回答1: The config.xml files for Android and iOS contain different structure and contents, so the answer is: No. You cannot have 1 config.xml for both

IBM Worklight SQL adapter for real device

拥有回忆 提交于 2019-12-13 01:23:45
问题 If i use local database, say MySQL, it works perfect on simulator and emulator but for real device, localhost won't do, So i tried online database hosting. When using online hosting from www.freemysqlhosting.net, i had setup the database in my database development perspective in Eclipse using the provided id and password, so it worked well on my simulator, emulator and real device that was connected to the same network as that system on which that database was setup, but for any anonymous