ibm-mobilefirst

How can we trace push notifications being sent to the Apple APNS server from IBM MobileFirst 7.0?

浪子不回头ぞ 提交于 2019-12-10 23:59:47
问题 We are having some issues with push notifications being sent from an IBM MobileFirst 7.0 server to Apple's APNS server. Specifically, the push notifications seem to be sent successfully from the MobileFirst adapter, but never arrive at the target device. How can we trace this interaction? 回答1: You can use the trace string com.ibm.pushworks.server.notification.*:com.ibm.pushworks.server.notification.apns.*=all to trace the inner mechanics of the push notification mechanism on the MobileFirst

IBM Worklight: Upload application to Worklight Server / App Store

巧了我就是萌 提交于 2019-12-10 22:37:43
问题 With Direct Update, the mobile application can be automatically update with a new version of the web resources. In order to update the native resource, a new version of application must be uploaded to application store. Consider the case that I have an update for my Worklight app with both native and web resources code update which has already been in application store. Questions: Is the following a correct way to update the app? Step 1. Package the app in .ipa / .apk (with native + web code)

How to add Java classes to a Worklight adapter when using CLI

无人久伴 提交于 2019-12-10 21:05:11
问题 I am trying to add Java classes to my adapter as described in the tutorial Using Java in Adapters. However, I am trying to do that from the CLI. When I do: wl create WLProject cd WLProject wl add adapter copy the Java class (Calculator1.java) to server/java/com/worklight/customcode wl start The build process fails and no war file is created; When I do: wl create WLProject cd WLProject wl add adapter wl start copy the Java class (Calculator1.java) to server/java/com/worklight/customcode wl

IBM Worklight 6.0 - Worklight Console does not show up after installing WL 6.0 server on Liberty profile - Error 500

混江龙づ霸主 提交于 2019-12-10 19:32:06
问题 IBM Worklight 6.0 is installed on a Liberty Profile 8.5.5 with a mySQL db. While deploying the application and trying to access the Worklight console the below error is encountered on console Error 500: javax.servlet.ServletException: Filter[authenticationFilter]: Could not find required filter class - com.worklight.core.auth.impl.AuthenticationFilter.class 回答1: In your server.xml you need to make sure that your worklight-jee-library.jar is in the application classloader. <application id=

Disable text selection on input fields

做~自己de王妃 提交于 2019-12-10 17:20:08
问题 I am developing a Hybrid application using IBM Worklight, HTML5, CSS3 and javascript. Is there any possible way to disable text selection on input fields? I have a username and password field on the screen and want to disable the user from selecting text within the input fields. Also, copy paste should be disabled. Thanks 回答1: There is an answer already on SO for selecting that will probably give you what you need: Prevent element from taking part in text selection There are also answers on

IBM Worklight/MobileFirst 6.x/7.0 - “Code object is not signed at all.” error with buildtime.sh script

吃可爱长大的小学妹 提交于 2019-12-10 16:44:23
问题 I am having an error when uploading my Worklight Application into iTunes. The application validation fails with the following error: Invalid Signature. Code object is not signed at all. The binary at path [MyApp.app/buildtime.sh] contains an invalid signature. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any

Output delayed from Cordova Plugin

大城市里の小女人 提交于 2019-12-10 13:28:49
问题 I've written a Cordova plugin to download a file and save it in the data folder. Everything is working fine except for the return value. I would like to display a progress bar and need to get the current progress. Here's the relevant part from my code: while ((readed = is.read(buffer)) > 0) { fos.write(buffer, 0, readed); totalReaded += readed; int newProgress = (int) (totalReaded*100/fileSize); if (newProgress != progress) { progress = newProgress; PluginResult res = new PluginResult

How to implement HTTPS Adapter by IBM Worklight?

久未见 提交于 2019-12-10 12:22:53
问题 I'm building an Worklight adapter that send HTTPS request to server. With a web browser like Firefox, I can send request by adding exception but I don't know how to do it in Worklight adapter. Question: what are steps to implement it? Thanks for any help. 回答1: Changing http to https is simple, you need to update protocol and port elements in adapter's XML file. But if you're talking about making a request to backend protected by a self-signed certificate you need to implement this - IBM

IBM Worklight 6.0 - “WebWorks SDK source file was not found” error

…衆ロ難τιáo~ 提交于 2019-12-10 12:17:28
问题 I am using Worklight 6 on Mac OS, and I installed WebWorks SDK 2.3.1.5. I have got some issues with WEBWORKS_HOME environment variable, that I fixed after reading IBM Worklight - Mac - "'WEBWORKS_HOME' environment variable is undefined" Now I am having the error WebWorks SDK source file was not found. Make sure to set it in application-decsriptor.xml: Replace it with path to WebWorks SDK When I try to build the Blackberry app. When I check my application descriptor, I only see <blackberry10

IBM Worklight 6.1 - Is it possible to create a Challenge Handler in native class instead of JavaScript?

醉酒当歌 提交于 2019-12-10 11:57:49
问题 We are writing a Hybrid application mixed with Native pages in worklight 6.1 for ios . We are now implementing security features on adapter-side and I have read the documentation for it from Adapter Based Authentication. My problem is that our login module is implemented in a fully native page and I would like to also implement the challenge handler over there. How can this be achieved? 回答1: You can write challenge handlers in native by following the Worklight iOS native APIs (http://ibm.co