ibm-mobilefirst

Deploying a Worklight app onto the Android Emulator is giving an error

£可爱£侵袭症+ 提交于 2019-12-25 05:24:13
问题 I'm trying to deploy an application to Android by using Worklight. I've seen a similar error to this posted before, however there weren't any concrete answers given. The error is triggered when I launch the app on an Android emulator, this is it: 08-13 08:22:26.262: E/Web Console(347): TypeError: Result of expression 'cordova.exec' undefined is not a function. at file:///data/data/com.Test/files/www/default/wlclient/js/wlgap.android.js:697 Now, I believe this js file is injected at run time,

IBM Worklight - How to parse adapter response?

帅比萌擦擦* 提交于 2019-12-25 05:06:26
问题 This is my stored procedure: CREATE PROCEDURE PROC() BEGIN SELECT * FROM TABLENAME; END// This is my unction to call stored procedure using SQL adapter: function callStored() { return WL.Server.invokeSQLStoredProcedure({ procedure : "proc", parameters : [] }); } This is the invocationResult: { "isSuccessful": true, "resultSet": [ { "name": "a", "pass": "123", "time_stamp": "2014-04-07T10:13:17.000Z" }, { "name": "chetan", "pass": "123456", "time_stamp": "2014-04-07T10:13:34.000Z" }, { "name":

IBM Worklight 6.0 - Custom authentication - custom java code doesn't seem to be found

蹲街弑〆低调 提交于 2019-12-25 04:55:22
问题 environment config : Windows Server 2008 R2 Entreprise WebSphere Application server V7 Worklight server V6 DataBase Derby (default install trough worklight server install) My Application contains in the server/conf/authenticationConfig.xml a customLogin module that use two java class located in server/java/com/authentication/ After deploying and starting my application on worklight server, when I try to reach it using the following URL : http://ip_address:9080/context_root/console I have this

IBM Worklight - File API simulation in Worklight Console's MBS

青春壹個敷衍的年華 提交于 2019-12-25 04:54:24
问题 Is there any way to simulate File API on the browser simulator for worklight projects? I am using mozilla firefox 19.0.2 回答1: Yes, all you need to do is to ensure that your browser is properly configured to load applets. Logically, installing a Java Runtime Environment should setup your Firefox Java plugin. Maybe this plugin is disabled in your Firefox, check it in Tools > Add-ons (and then Plugins tab). If you are running on Windows, you should also check your Java settings in the Control

error when accessing worklight server deployed on tomcat

佐手、 提交于 2019-12-25 04:51:53
问题 I deploy the war file and adapter file to the tomcat,everything is fine,but when I try access the worklight server,the request is [http://10.30.3.11:8080/nantian/apps/services/api/attendance/android/query] and the logcat appear this error [http://10.30.3.11:8080/nantian/apps/services/api/attendance/android/query]failure. state: 500, response: The server was unable to process the request from the application. Please try again later.[http://10.30.3.11:8080/nantian/apps/services/api/attendance

PUT HTTP Adapter in MobileFirst Platform

空扰寡人 提交于 2019-12-25 04:38:19
问题 I am trying to post some data from my native android application. Native Code: WLProcedureInvocationData invocationData = new WLProcedureInvocationData("TaskAdapter", "updateTask"); int taskId = Integer.parseInt(tvTaskId.getText().toString()); String assignedTo = tvAssignedTo.getText().toString(); String address = ""; String description = ""; String latitude = "5.0"; String longitude = "5.0"; String status = "5.0"; String comments = "5.0"; String lastupdate = "5.0"; String userLatitude = "5.0

Mobilefirst PushNotification: On using wl_anonymousUserRealm at server, app is not calling onReceive method on clicking notification

风格不统一 提交于 2019-12-25 04:26:52
问题 I am working on IBM Mobilefirst native android app. I have written code to enable push notification. I am getting notification but I have an issue here. On Launch of the app I am calling following code. final WLClient client = WLClient.getInstance(); push = client.getPush(); ResponseListener listener = new ResponseListener(ResponseListener.AUTHENTICITY_CONNECT); client.getPush().setOnReadyToSubscribeListener(listener); challengeHandler = new AndroidChallengeHandler(realm); client

Worklight Server Compatibility

﹥>﹥吖頭↗ 提交于 2019-12-25 04:26:48
问题 So, if the answer to this question is 'no they aren't compatible' then this is an easy one to close. Basically, I am using the encrypted cache in a WL app which is made using WL 6.1.0 inside of Eclipse. Now, I've deployed this to my external WL server, however, this WL server is running 5.0.6.20130311-0918. So, my first question is, does this app have ANY chance of working? I'm not sure on backward compatibility. To help with the above, the error I see when I try to access my application on

What is the substitute for WL.App.close?

爷,独闯天下 提交于 2019-12-25 04:23:10
问题 WL.App.close is deprecated. I know that this is not supported for iOS. But why is it deprecated for Android as well? At the moment, it is still functioning fine, even on 6.2, but since it is deprecated, what is the alternative/substitute for this? 回答1: In Android as well, this is not the recommended approach. You should let the user quit the app, and this is done by manually bringing up the "applications view" and swiping the app in order to quit it. Can be corroborated by these answers by

Change HTTP URL in Worklight adapter

夙愿已清 提交于 2019-12-25 03:58:31
问题 I need to create an HTTP adapter for worklight but the url must be programmatically provided via a parameter. 1) I was able to pass the user/password but not the url. Is there a way to do that? I also try to create my own java adapter to call the REST API, It works when I test the adapter but it seems my response is not in the expected format for worklight. I got this error: 2) BAD_PARAMETER_EXPECTED_DOCUMENT_OR_ARRAY_OF_DOCUMENT. my Java adapter returns a JSONArtifact (JSONObject) but it