ibm-mobilefirst

Login with Facebook with my IBM Worklight web application

此生再无相见时 提交于 2019-12-13 04:48:32
问题 I created a simple web application using IBM Worklight. Now, I am trying to use Facebook api using https://developers.facebook.com/docs/guides/mobile/web/#samples tutorial Where a user can login with their Facebook id. In order to set up this functionality, I need to give the siteUri of my web app so i added web environment to my app and got app URI as http://[Ip Address]:8080/apps/services/www/zShop/mobilewebapp/ But, when I run the application, I get this error API Error Code: 191 API Error

Worklight: WL.Client.addGlobalHeader() has no effect

做~自己de王妃 提交于 2019-12-13 04:46:06
问题 When I add the line WL.Client.addGlobalHeader("MyCustomHeader","abcdefgh"); inside of my main js file like so function wlCommonInit(){ WL.Client.addGlobalHeader("MyCustomHeader","abcdefgh"); (...) like it's described in the documentation (http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/topic/com.ibm.worklight.help.doc/apiref/r_wl_client_addglobalheader.html) this has absolutely no effect all request send after that: GET /apps/services/preview/MobileOPMClient/common/0/default/images/icons

IBM Worklight 6.0 - How to resolve 404 errors for javascript map files?

不想你离开。 提交于 2019-12-13 04:43:41
问题 I'm trying to update a worklight application to use the dojolib created by WL6 instead of a baked-in version of dojo supplied by the project. I've udpated the build-dojo.xml file to copy files from the dojoLib instead of an older version, and I've been able to resolve the additional dependency issues from the updated version. I'm still seeing a few 404 errors associated with some javascript map files. I tried to copy the map files from the older version of dojo, but no luck in resolving this

userID in getUserNotificationSubscription WORKLIGHT Pushnotification

≯℡__Kan透↙ 提交于 2019-12-13 04:40:03
问题 I am implementing push notification in my IBM worklight project. Sample code in developerworks do it with some authentication challenger mechanism to do the subscription. I somehow used the same Authentication challenge to do the subscription (although my app design doesn't need to do this). In the sample code actual trigger of notification call is not written. I found out from web resource that WL.Server.getUserNotificationSubscription(eventSourceName, userId) need to be used to get the

Rational Test Workbench iPhone - could not merge original binaries could not merge instrumented binaries

风流意气都作罢 提交于 2019-12-13 04:35:34
问题 Below given are environment specification of my system System: MacBook Pro OS X version: 10.8.5 Worklight: 6.1 Emulator: 6.1 Build for iOS: 6.1 I have installed Mobile Test Workbench 8.5.1.2 in eclipse-kepler I followed instruction on the page at URL: https://pic.dhe.ibm.com/infocenter/rtwhelp/v8r5m0/index.jsp?topic=%2Fcom.ibm.rational.test.lt.moeb.doc%2Ftopics%2Frvar_select_device.html but when I try to instrument and install iPhone app for simulator some error occurs every time. Here I have

Using jquery mobile in IBM Worklight for WIndows Phone 8

主宰稳场 提交于 2019-12-13 04:34:45
问题 I have developed an application using jquery mobile 1.1.0. It works in Android and iOS environments. But I was not the same lucky when I tried to deploy the same application in Windows phone 8...The user interface is not shown...Is there any kind of incompatibility between windows phone 8 and jquery mobile? 回答1: Have a look at the sample project for multi-pages application as provided by IBM Worklight: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610

How to pass data between pages through worklight client API

淺唱寂寞╮ 提交于 2019-12-13 04:29:00
问题 I want to invoke a procedure in one page and use it in another page, and the response is only used by the next page, so I think JsonStore is not suit for that. Should I define a global var? Is there any code sample to do such things? Thanks for your help. 回答1: I presume by pages you mean different HTML files. If so, that is not recommended, Worklight is intended for single page applications. There are no code samples that show how to do that. I would recommended having a single HTML page and

IBM Worklight 6.0 - Migration Issue after importing a project

被刻印的时光 ゝ 提交于 2019-12-13 04:24:04
问题 Update to Worklight version 6.0. Even load sample apps from new version 6.0 web site and get this exception like this: An internal error occurred during: "Upgrade Worklight Projects". loader constraint violation: when resolving method "org.apache.commons.io.FileUtils.iterateFiles(Ljava/io/File;Lorg/apache/commons/io/filefilter/IOFileFilter;Lorg/apache/commons/io/filefilter/IOFileFilter;)Ljava/util/Iterator;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor

How to change the Android application icon in Worklight

℡╲_俬逩灬. 提交于 2019-12-13 04:22:59
问题 I read instructions in this forum thread on how to change the application icon in Worklight, but it doesn't work. I get the following error: .../android-sdk-linux/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /home/vernid/data/Development/WorkLight/android-sdk-linux/platform-tools/aapt) .../android/native/AndroidManifest.xml:28: error: Error: String types not allowed (at 'icon' with value 'icon.png'). any idea or example? Many Thanks, Dominique 回答1: The

mobile first cli project deploy failing

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 04:12:56
问题 when i try to deploy my project using MFP CLI it gives the following error xxxx-Macmini:Nauth user-x$ mfp build App Nauth was successfully built. xxxx-Macmini:Nauth user-x$ mfp deploy Initializing MobileFirst Console Error: The MobileFirst server that you have configured does not appear to be running. Start the server with 'mobilefirst start'. mfp info xxxx-Macmini:Nauth user-x$ mfp info OS: darwin x64 Release: 11.4.2 System Memory: 128 MB free out of 4096 MB Node: v0.10.30 MobileFirst CLI: 7