ibm-mobilefirst

IBM Worklight 6.0.0.1 - Timeout setting in Adapters

依然范特西╮ 提交于 2019-12-30 07:46:49
问题 How can I change the timeout when calling from the application to the adapter using WL.Client.invokeProcedure ? I have read the answer in the following post, but it is not working: How to increase the adapter procedure timeout value in Worklight? My configuration: initOptions.js timeout: 600000 Adapter XML <procedure name="addInsertarMensaje" securityTest="wl_unprotected" requestTimeoutInSeconds="600"> Adapter invocation var timeout = 600000; var invocationOptions = { onSuccess:

IBM MobileFirst Platform Installation in Windows 8.1 64Bit

风流意气都作罢 提交于 2019-12-30 06:56:08
问题 I am using my office laptop (Lenovo vV310 - 8GB RAM - 64 Bit OS - Windows 8.1). I have been trying to fix an installation issue with IBM Mobile First Platform for the past few days. I downloaded the IBM Mobile First Developer Kit from link http://public.dhe.ibm.com/ibmdl/export/pub/software/products/en/MobileFirstPlatform/mobilefirst-deved-devkit-windows-8.0.0.0.exe The problem is the installation software InstallAnywhere is not installing and gives the below warning. Windows error 2 occured

type error: cannot call method 'invoke procedure' of undefined in worklight

♀尐吖头ヾ 提交于 2019-12-29 09:50:21
问题 this is my js function... var invocationData={ adapter : 'Health_Care', procedure: 'update', parameters:[uname,cp,np] }; WL.Client.invokeProcedure(invocationData, { onSuccess: function(){ alert("Password successfully changed"); }, onFailure: function(){ alert("failed"); } } ); my adapter is... var updateStatement = WL.Server.createSQLStatement("UPDATE EMPLOYEE SET PASSWORD=? WHERE UID=? AND PASSWORD=?"); function update(pid,curP,newP) { return WL.Server.invokeSQLStatement({ preparedStatement

Unable to login to app on device or simulator after upgrade to iOS 9 and MobileFirst 7.1

给你一囗甜甜゛ 提交于 2019-12-29 09:28:08
问题 My hybrid app built using Ionic and IBM MobileFirst is unable to login after the upgrade to iOS 9 and MF 7.1 when built via XCode and deployed to a device or through iOS simulator. I am running this on my local WebSphere Liberty server within Eclipse so there is no SSH involved, so have followed instructions to disable bitcode and ATS from the link below with no effect. https://developer.ibm.com/mobilefirstplatform/2015/09/09/ats-and-bitcode-in-ios9/ However the app is able to be logged in

Unable to login to app on device or simulator after upgrade to iOS 9 and MobileFirst 7.1

痴心易碎 提交于 2019-12-29 09:27:35
问题 My hybrid app built using Ionic and IBM MobileFirst is unable to login after the upgrade to iOS 9 and MF 7.1 when built via XCode and deployed to a device or through iOS simulator. I am running this on my local WebSphere Liberty server within Eclipse so there is no SSH involved, so have followed instructions to disable bitcode and ATS from the link below with no effect. https://developer.ibm.com/mobilefirstplatform/2015/09/09/ats-and-bitcode-in-ios9/ However the app is able to be logged in

How to display a Google Map on Worklight App

喜你入骨 提交于 2019-12-29 08:26:10
问题 I have the following files in Worklight. I want to load the map on the worklight app. It is visible in the "Design" view but neither on simulator nor on emulator. Kindly help. //index.html <div id="pagePort"></div> //page1.html <script src="js/page1.js"></script> <div id="content"> <button type="button" onclick="loadPage5();">Click</button> </div> //page1.js function loadPage5() { var pagepath="page5.html"; pagesHistory.push("page1.html"); $("#pagePort").load(pagepath,function(){WL.Logger

Calling setActiveUser throws error

你。 提交于 2019-12-29 08:19:46
问题 I am trying assign a userid to user and I am getting error . I am following as steps below. server details. <realm loginModule="AuthLoginModule" name="AuthRealm"> <className>com.worklight.integration.auth.AdapterAuthenticator</className> <parameter name="login-function" value="AuthAdapter.onAuthRequired"/> <parameter name="logout-function" value="AuthAdapter.onLogout"/> </realm> </realms> <loginModule name="AuthLoginModule"> <className>com.worklight.core.auth.ext.NonValidatingLoginModule<

IBM Worklight - How to disable Direct Update?

依然范特西╮ 提交于 2019-12-29 07:58:11
问题 I would like to disable Direct Update. Is it possible? With connectOnStartup = false not work. 回答1: 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

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

陌路散爱 提交于 2019-12-29 07:19:08
问题 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

Attaching cookie to WorkLight Adapter response header

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 02:10:09
问题 I am developing a mobile app using WorkLight 5.0.6 and I would like to attach a secure cookie to the response returned by an adapter. We are not using a WorkLight Authentication realm because we do not wish to "bind" the session to a specific WL server in a clustered production environment. We authenticate the session by calling a sign-on adapter which authenticates the user details against a back end system. As part of the response from the sign-on adapter call I would like to create a