ibm-mobilefirst

No Runtime can be found in Worklight Console

安稳与你 提交于 2019-11-29 12:38:22
I am trying to set up test environemnt for worklight project. Every thing looks like started successfully without any errors , however, the worklight console says 'No runtime configuration could be found" . And I can not access my application in browser either. However, AppCenter is available. The system is set up in Redhat OS, Worklight version 6.2, DB2 as database and WS-Liberty 8.5 as server. As suggested in different SO questions, I tried cleaning up the workarea of liberty server, clean-built and deploy, tried using java 1.6 instead of java 1.7 but nothing has worked. Thanks for spending

Calling Worklight adapter from external app

戏子无情 提交于 2019-11-29 12:09:31
I have deployed the adapter on Worklight server and there is some requirement where I am calling worklight adapter from outside as a rest serverice , it is working fine and returning data as required but instead of giving json output it is giving HTML <!DOCTYPE html><html><head><meta charset="UTF-8" /><title>Invoke Procedure Result</title><script src="/secure/console/js/jquery-1.6.min.js"></script><style> textarea { width: 100%; } .textwrapper { margin: 5px 0; padding: 3px; }</style></head><body onload="attachEvent();"><div><span id="invRes">Invocation Result of procedure: 'Authentication'

IBM Worklight - How to disable Direct Update?

自闭症网瘾萝莉.ら 提交于 2019-11-29 11:13:11
I would like to disable Direct Update. Is it possible? With connectOnStartup = false not work. If you would like to disable Direct Update completely, open a browser and navigate to Worklight Console. There you need to tick the checkbox titled "Lock this version". This option means that any future deployments of a .wlapp (of the particular enviornment and its particular version number) will not update its web resources on the server, thus not trigger a Direct Update. See this IBM Worklight user documentation topic: Locking an application connectOnStartup=false only means that upon application

How to use adapter inside the application in worklight

房东的猫 提交于 2019-11-29 08:57:46
Im new to worklight. Now im started using adapter. Check this link one of my stackoverflow friend have same doubt click this Calling the procedure inside the application. The Adapter im using is SqlAdapter. But in the ibm worklight tutorial they gave example for HttpAdapter and clubing the procedure inside the function. But not for SqlAdapter. If any suggestion kindly let me know. if u want to my source i will ready to provide. Still my research continues The call from an application to an adapter is the same for all types of adapters. function getData() { var invocationData = { adapter :

IBM Worklight - Push Notifications feature does not work in Android emulator

江枫思渺然 提交于 2019-11-29 08:47:55
I am trying to set up the sample project for Worklight push notification on Android . When I launch the app in the Android emulator only the first two buttons (isSubscribed and isSupported) are clickable. The other two buttons (Subscribe and Unsubscribe) remain disabled. My steps are: Import the project into Eclipse Replace the SenderID and API Keys with the one obtains from GCM Console in application-descriptor.xml Deploy the PushAdapter (included in the project) Build and deploy Launch the Android application in the emulator What is missing? For Push Notifications to work in the Android

Authorizing HTTP Adapter in IBM Worklight

落花浮王杯 提交于 2019-11-29 08:45:19
I am struggling to get an HTTP Adapter request to a protected rss feed to execute properly. I have read a ton of IBM's documentation, as well as chasing dead links to moved or "under maintenance" IBM pages. Unfortunately, none of the examples I have found show how to authorize this request. For the sake of this example, I am trying to access an rss feed from the Connections installation in the IBM Greenhouse Environment. Adapter XML: <?xml version="1.0" encoding="UTF-8"?> <wl:adapter name="exampleAdapter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wl="http://www.worklight.com

How to send images through Worklight server without base64 encoding?

旧时模样 提交于 2019-11-29 08:40:49
I`m trying to find out how to send images to my back-end server using Worklight adapters. I know that I can send them through Worklight adapters using Base64 encoding but this implies in around 30% more traffic between the servers and some undesired processing overhead. For now I`m using the Phonegap FileTransfer library as I show below, but this creates a directly connection between the client and the back-end server not going through Worklight server as I want. var options = new FileUploadOptions(); options.fileKey="file"; options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);

AngularJS 1.5 error bootstrap IBM Mobilefirst

走远了吗. 提交于 2019-11-29 05:56:23
I seem to have problems combining an MFP hybrid (no cordova) application and angular 1.5. The same application with angular 1.4.9 works fine, but if I switch to angular1.5 then i get this error: Error: [$injector:modulerr] Failed to instantiate module ng due to: TypeError: Cannot set property 'aHrefSanitizationWhitelist' of null at $$SanitizeUriProvider (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:17272:35) at new <anonymous> (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/worklight/worklight.js:1033

Uncaught ReferenceError: wlInitOptions is not defined

别等时光非礼了梦想. 提交于 2019-11-28 14:52:11
I'm getting this error since i upgraded my worklight developer edition to v5.0.6: wlclient init started worklight.js:1118 Uncaught ReferenceError: wlInitOptions is not defined Look inside your application's js folder (yourProject\apps\yourApp\common\js). Make sure it contains an initOptions.js file and that its content is as follows (you can also create a new application and copy the file from there): var wlInitOptions = { // # Should application automatically attempt to connect to Worklight Server on application start up // # The default value is true, we are overriding it to false here.

Worklight - FWLST1040E: android build failed: java.io.FileNotFoundException

泪湿孤枕 提交于 2019-11-28 14:51:06
I'm using worklight 6.1 for my mobile app project. My problem is why I got this error when I try to build my android app. [2014-02-18 15:36:12] FWLST1040E: android build failed: java.io.FileNotFoundException: File '/var/folders/1k/k94ws4g107bgncjlp0_0vlwr0000gn/T/wlBuildResources/6.1.0.00.20131126-0630/environments/base/android/obscurerArgs.txt' does not exist Why? Idan Adar Try deleting the wlBuildResources folder. See my answer here: IBM Worklight 6.1 - Failed re-generating the iPhone native folder Close Eclipse Locate your temp folder ( Windows , OS X ) Delete the wlBuildResources folder