ibm-mobilefirst

Unknown realm [myRealm]. null returned for key: isUserAuthenticated

独自空忆成欢 提交于 2019-12-22 00:31:12
问题 I am using IBM Worklight 6.1 and trying to check if the user is authenticated or not: I have a Realm defined in server/conf/authenticationConfig.xml <realm name="myRealm" loginModule="myLoginModule"> <className>com.worklight.integration.auth.AdapterAuthenticator</className> <parameter name="login-function" value="authentication.onAuthRequired" /> <parameter name="logout-function" value="authentication.onLogout" /> </realm> and its login module <loginModule name="myLoginModule"> <className>com

IBM Worklight - Include a JavaScript library on the server side

二次信任 提交于 2019-12-21 17:51:24
问题 I'm building a mobile application using IBM Worklight. In an adapter, I need to use some functionality which is provided by a third party JavaScript file. I want to know if it's possible to include such a file on the server? If not, what is the alternative? 回答1: At the moment there is no way to include an external JavaScript library in the Adapter code. Currently the only workaround is to copy the library code to the adapter. 回答2: In Worklight 6.0.0, IBM introduced Node.js adapters, touting

Worklight App Splash Screen on Android

霸气de小男生 提交于 2019-12-21 17:35:00
问题 I am using Worklight for an Android application, When I try to add a splash screen public class MyApp extends WLDroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl(getWebMainFilePath(),2000); } } I see the splash screen, but then, I have a black screen and the app crashes to be accurate, it shows a black screen, and when I tap on options button, it crashes When I

How to debug Dojo in browser?

情到浓时终转凉″ 提交于 2019-12-21 09:34:45
问题 I'm currently (trying) to develop an app with Worklight Studio 5.0.6 and Dojo (Mobile) 1.8.3. I have a really hard time to to find a proper method for debugging. After waiting 5-10 minutes for the build an deploy-process on the server, an error usually looks like this in the Chrome debugger: How am I supposed to track down this error in MY source? The whole stack trace consists entirely of Dojo code which generates an absolutely useless error message after 20 abstraction layers. Seriously,

Worklight Online + Offline Authentication

拈花ヽ惹草 提交于 2019-12-21 06:31:14
问题 I'm trying to achieve the following through Worklight. My app has two sets of features. One set of features can be accessed only when the app is connected to the server and the user is authenticated. Another set of features can be accessed offline but they require data from an encrypted JSONStore. I have a JSONStore on the client device which is initialized using a password. Therefore, the data in the store will be encrypted. Also, this JSONStore is synced to a database on the server through

Worklight Online + Offline Authentication

一笑奈何 提交于 2019-12-21 06:29:13
问题 I'm trying to achieve the following through Worklight. My app has two sets of features. One set of features can be accessed only when the app is connected to the server and the user is authenticated. Another set of features can be accessed offline but they require data from an encrypted JSONStore. I have a JSONStore on the client device which is initialized using a password. Therefore, the data in the store will be encrypted. Also, this JSONStore is synced to a database on the server through

Insertion not happening in ibm mobile first sql adapter

China☆狼群 提交于 2019-12-20 07:56:12
问题 I am trying to insert data into existing table in database from mobilefirst. the adapter is working fine and i can insert data into database from the adapter. But when it is invoked in client side it shows failure message. function insert(){ var invocationData = { adapter:"sqlad", procedure:"procedure1", parameters:[$('#empid').val(),$('#empname').val()] }; WL.Client.invokeProcedure(invocationData,{ onSuccess :loadFeedsSuccess, onFailure :loadFeedsFailure, }); } function loadFeedsSuccess() {

IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8

烈酒焚心 提交于 2019-12-20 07:28:36
问题 We are using Worklight 6.0.0 enterprise edition and currently building hybrid apps for android, BB, Windows Phone 8 and iOS. We are currently getting the below error when invoking WL.Client.reloadApp() when clicking on a logout button. This works fine all OSs except for WP8. CordovaBrowser_NavigationFailed :: ///www/default/www/default/pages/www/default/pages/www/default/pages/www/default/pages/myaccount.html ERROR: Exception in InvokeScriptCallback :: An unknown error has occurred. Error:

IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8

六眼飞鱼酱① 提交于 2019-12-20 07:28:02
问题 We are using Worklight 6.0.0 enterprise edition and currently building hybrid apps for android, BB, Windows Phone 8 and iOS. We are currently getting the below error when invoking WL.Client.reloadApp() when clicking on a logout button. This works fine all OSs except for WP8. CordovaBrowser_NavigationFailed :: ///www/default/www/default/pages/www/default/pages/www/default/pages/www/default/pages/myaccount.html ERROR: Exception in InvokeScriptCallback :: An unknown error has occurred. Error:

IBM Worklight 6.0 - Mobile Test Workbench - Instrumentalized iOS App Error

我是研究僧i 提交于 2019-12-20 07:26:44
问题 I’ve got a problem with my instrumentalized iOS App for the Mobile Test Workbench iOS-Client. After adding the necessary environments (IPhone and Android) and building the app with worklight, I wanted to test my app with the Mobile Test Workbench. The instrumentalization with rtwBuildXcode.sh succeeded and the app was uploaded to the simulator (with the script-parameter simu). But when the script uploads the app to the local mobile test workbench instance there is the following error: