ibm-mobilefirst

IBM Worklight - How to use Worklight in a background process

主宰稳场 提交于 2019-12-25 01:44:40
问题 I have an application that should run continuously even after the user presses the back button. It has to send some data using POST method to my database in a remote server for every half an hour. This should happen even after the user has pressed the back button and the app should only stop when the mobile is switched off. While I have set up the HTTP Adapter to send POST data and also an HTML file to call the adapter procedures on launch, I dont know how to make it background or which code

MobileFirst ant scripts for build with minification

被刻印的时光 ゝ 提交于 2019-12-25 01:40:58
问题 I have been building an application and have been using MobileFirst minification activated in the Studio. Now i am developing ant scripts and can't seem to find a property to activate minification during the ant build. I have my build-settings.xml properly configured but my ant builds don't generate minified code. What I am missing? 回答1: You can use the attributes concatenate ="true" and minifyResources ="true" in the builder element. 来源: https://stackoverflow.com/questions/33286200

Direct Update with custom URL not working after IP change on iOS

自古美人都是妖i 提交于 2019-12-25 01:19:26
问题 I'm having some issues with direct update on iOS. Following scenario describes my problem. Add the code snippet below to main.js Enabled worklightSettings in application-descriptor.xml Run on Worklight Development Server Open project in Xcode via eclipse Run Make a change and re-deploy Verify Direct Update is received Uninstall app Obtain new IP (in my case by restarting my macbook the next day) Open project in Xcode via eclipse Run Open myapp settings via Settings.app and enable Custom

how to launch inappbrowser when a webpage is loaded in webview

穿精又带淫゛_ 提交于 2019-12-25 01:13:03
问题 I am launching a web page in worklight 6.2 container (for android and ios) by clicking a button on index.html page. In my web page I have used window.open(url,"_blank","location=yes") to launch an external website in inappbrowser, however it launches in the webview instead of inappbrowser. I assume this is happening because I am loosing cordova plugins when ever the webpage is loaded in my webview. When I write window.open(url,"_blank","location=yes") I am able to launch external url in

IBM Worklight 6.1 - Unable to pull app to device using MTWW

独自空忆成欢 提交于 2019-12-25 00:37:07
问题 First off let me be clear. I have several iOS devices. On the devices that have 7.0.6 I have no issues. When I updated one of the devices to 7.1 I'm having an issue. Let me explain. On the iOS device that has 7.1 I navigate to the workbench URL and then I go to Manage applications and select install. I then get this message "Cannot install applications because the certificate for >ip address< is not vald. This process works on devices that have 7.0.6. I'm assuming there are issues with the

IBM Worklight - Using SQLite in Android?

梦想的初衷 提交于 2019-12-24 22:32:17
问题 I am learning IBM Worklight. I have implemented an SQLAdapter with DB2 as my database on my laptop. But I could not find any tutorial regarding "How Connect SQLAdapter with SQLite " in Android emulator. Any help will be appreciated. 回答1: That's because you do not use Worklight adapters in conjunction with SQLite. Worklight adapters are a means to deliver data from and to an external backend system (like your DB2 database). In order to interface with SQLite in your device you use straight

Unable to install plugin IBM Worklight Developer Edition V6.1.0.1 on Eclipse kepler 4.3.1, on 32 bit

痞子三分冷 提交于 2019-12-24 22:25:25
问题 I am using eclipse kepler 32 bit. I am trying to install IBM Worklight Developer Edition V6.1.0.1 from market place. I am getting following error. I tried running it as administrator. Also tried to append -vmargs -Djava.net.preferIPv4Stack=true at the ini file. but nothing worked out. 回答1: It might have been an outage; it seems to be working now. I just installed successfully from Eclipse Marketplace. Try now and let us know if it still fails. Also, make sure you are using the Java EE

IBM Worklight v5.0.6 Application Center - apk file upload fails

三世轮回 提交于 2019-12-24 22:14:10
问题 When attempting to upload our apk file, the server responds back with simply "File HelloWorld.apk file not uploaded" Nothing is logged in trace.log in relation to this upload, so not able to see any type of log message to diagnose further. How do you enable logging for this? Is there a timeout, or file upload size limit? If so, how/where do you change that? The HelloWorld.apk file size is 5.6MB 回答1: There is indeed a filesize limit, but it is imposed by MySQL by default (1MB). If you are

Simulate Access disable feature in Worklight , when worklight server itself is down.

自闭症网瘾萝莉.ら 提交于 2019-12-24 22:07:04
问题 I am trying show end users maintainence window such as "we are down please try later" and disable the application but my problem is what if my worklight server itself is down and not reachable and i cannot use the feature provided by worklight console, Is there a way i make my app talk to a different server which returns back the below json data when a app is disabled , can i simulate this behaviour is this possible. json recieved on access disabled in worklight :- /*-secure- {"WL

IBM Worklight - Which features a Native app cannot use?

删除回忆录丶 提交于 2019-12-24 21:28:46
问题 I have a pure native application and wanted to integrate with the worklight (using the Worklight Native SDK). Which of the below features the native application can not use? Unified SMS/Push Notifications Remote Disable Remote Notify Adapters Authentication framework Direct Update JSON Store 回答1: A Native application that uses the Worklight SDK does not support: Direct Update This feature is meant for updating web resources; this feature is currently supported only in Hybrid apps. JSONStore