ibm-mobilefirst

Worklight LDAP authentication using ApacheDS 2.0

拜拜、爱过 提交于 2019-12-03 21:45:18
问题 I am trying to authenticate users configured in ApacheDS with password and calling from Worklight client. I am not able to pass username from Worklight client, I tried username placeholder which I have used in my client but its not working. Then I tried hardcoding uid created in ApacheDS LDAP server and its working. can anyone help me out in passing username given in client to LDAP server. My authconfig file : <className>com.worklight.core.auth.ext.LdapLoginModule</className> <parameter name=

Worklight Online + Offline Authentication

谁说胖子不能爱 提交于 2019-12-03 20:28:35
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 an adapter. I have also setup another adapter which authenticates the user by using another set of

IBM Worklight - WL.App.getDeviceLanguage() API method does not return correct language code in iOS

我怕爱的太早我们不能终老 提交于 2019-12-03 18:18:13
问题 In iOS, despite changing the language settings WL.App.getDeviceLanguage() always returns en . Tested on iPhone 5, iPad 4 and several emulators. If use navigator.globalization.getPreferredLanguage could detect language correctly in iOS. But the application seems not know it is under other language such as French so application name local string is still in English even other language is available. 回答1: When using iOS, the relevant setting is that of Region Format. Created a new Worklight

Cordova gradle wrapper missing in android sdk

只谈情不闲聊 提交于 2019-12-03 17:06:30
问题 I'm on windows7 x64, installed today's latest stable release of android sdk studio (through android studio bundle, since it's shipped together now apparently). I have properly configured the environment variables as you'll see above. This is what I get when issuing the following command $ cordova build android ANDROID_HOME=G:\installs\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked

java.lang.ClassNotFoundException: Class com.ibm.db2.jcc.DB2Driver not found in Worklight platform or project

帅比萌擦擦* 提交于 2019-12-03 15:18:00
I try to test an sql adapter that connects to db2 but I get the following result: java.lang.ClassNotFoundException: Class com.ibm.db2.jcc.DB2Driver not found in Worklight platform or project here is my code: <dataSourceDefinition> <driverClass>com.ibm.db2.jcc.DB2Driver</driverClass> <url>jdbc:db2://localhost:50000/WLTEST</url> <user>db2admin</user> <password>db2admin</password> </dataSourceDefinition> any idea what is going wrong? Do you mean that your Worklight database is DB2-based? If yes, make sure to also edit worklight.properties with the correct DB2 setup Also make sure that: the DB2

Cannot Call determinedVisibility() never saw a connection for PID

倖福魔咒の 提交于 2019-12-03 13:47:46
We recently updated our mobile app from Worklight 5.0.6 to MobileFirst 7.0. Before the update, we didn't support 4.4 and above due to Cordova issues with the JSON Store. Now, we're supporting the newer versions of Android. The application works great on all iOS devices and Android 4.x devices. On Android 5 and above, I'm experiencing a white screen on clicking our login button. $("#loginButton").on("click", function(e) { e.preventDefault(); $('#realmPopupMenu').popup("open"); }); In the Android Log, I am seeing this error: 06-18 07:34:57.329: W/AmazonAppstore.AppManagerAndroidPackageDelegate

IBM Worklight - How do I enable WebView debugging in Android?

放肆的年华 提交于 2019-12-03 13:07:41
问题 Since Chrome has an awesome feature for remote debugging, I am wondering how this could help in developing in Worklight. In the following docs they say to debug the contents of your WebView, you need to enable it programmatically from within your application by calling setWebContentsDebuggingEnabled, a static method on the WebView class. Where can I find this class and will this be beneficial to do it in Worklight? https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl

Cordova gradle wrapper missing in android sdk

江枫思渺然 提交于 2019-12-03 06:48:59
I'm on windows7 x64, installed today's latest stable release of android sdk studio (through android studio bundle, since it's shipped together now apparently). I have properly configured the environment variables as you'll see above. This is what I get when issuing the following command $ cordova build android ANDROID_HOME=G:\installs\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: G:\installs\Android\sdk\tools\templates\gradle\wrapper And indeed, the "templates" directory

What is the main difference between require() and define() function in dojo and when would we use either?

耗尽温柔 提交于 2019-12-03 04:58:02
问题 I am new to learning dojo and I have come across the require() and define() functions and I can not get my head around either of them. Also, when would I use either of them? A small demo or example would be beneficial. Many Thanks! 回答1: require and define are part of the asynchronous module definition (AMD) API. You use define to define a module that can be consumed by other code. Generally, define will be used in a javascript file. The javascript file is defining a module. All Dojo files use

IBM Worklight - How do I enable WebView debugging in Android?

笑着哭i 提交于 2019-12-03 03:24:50
Since Chrome has an awesome feature for remote debugging, I am wondering how this could help in developing in Worklight. In the following docs they say to debug the contents of your WebView, you need to enable it programmatically from within your application by calling setWebContentsDebuggingEnabled, a static method on the WebView class. Where can I find this class and will this be beneficial to do it in Worklight? https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl=nl#debugging-webviews Please note that WebView debugging is only relevant for Android 4.4 "KitKat" and