ibm-mobilefirst

receive GCM push without WLClient::connect()

北城余情 提交于 2019-12-11 03:21:33
问题 Can we WLPush::subscribe() without WLClient::connect() ? Background I'm working on an Android native application (offline version - App can work in case of no Internet) using the IBM Worklight framework, and I am implementing push notification. As I understand, we need WLPush::subscribe() in order to get the notification. But we cannot directly invoke the subscribe() method, it has to be in the Callback OnReadyToSubscribeListener . The listener will be invoked once connection is established.

Declaration of <!DOCTYPE html> does not work with Ionic's ion-nav-view in IBM MobileFirst

安稳与你 提交于 2019-12-11 03:11:00
问题 I am a beginner in using IBM MobileFirst with Ionic to build hybrid mobile apps. Currently, I am able to build and run my application in the MobileFirst Console simulator, emulator, as well as in an Android mobile device. However, all these can work well only when I remove the declaration of <!DOCTYPE html> . If <!DOCTYPE html> is included, ion-nav-view does not work. I referred to the Ionic-based IBM MobileFirst Starter Application samples. In the example, ng-view is used instead of ion-nav

Not able to load image from android internal memory using Cordova file system api

随声附和 提交于 2019-12-11 02:51:53
问题 Develop web app from Android using Worklight 6.2 (Cordova 3.4) I am not able to load image using Cordova file system api: function onFileSystemSuccess(fileSystem) { var filePath = "UserSignature/SignatureImage.png"; fileSystem.root.getFile(filePath, {create: true}, function gotFileEntry(fileEntry){ fileEntry.file(function gotFile(file){ var reader = new FileReader(); reader.onloadend = function(evt) { alert("Read as data URL"); document.getElementById("config_SignatureImg").src = evt.target

Is it possible to have all the adapter configuration in one file in IBM MFP

我怕爱的太早我们不能终老 提交于 2019-12-11 02:48:52
问题 I am using JavaScript HttpAdapter in my maven project. I have a situation where my customer expects to have more than one HttpAdapter as part of the adapter.xml file. This is something that I have not tried before. Is it possible to have more than one adapter configuration in a single file? Does IBM MFP adapter support this? If yes, please share your thoughts. Thanks, Janarthanan 回答1: my customer expects to have more than one HttpAdapter as part of the adapter.xml file. You can't have an

IBM Worklight - AppCenter app missing Plugin 'com.ibm.mobile.InstallerPlugin'

喜夏-厌秋 提交于 2019-12-11 02:32:06
问题 I'm having the same problem as this user. I've built the IBM Worklight AppCenter client application using eclipse (AppCenter -> Run As -> Build All Environments) opened it in xcode (iphone -> Run As -> Xcode project) and run the app in the iphone emulator via xcode. After I enter my Worklight server credentials in the app (username, password, server, port, context) a "Loading" message is displayed and the app ceases functioning. I've debugged through the app's javascript and traced the

IBM Worklight - Error while trying to deploy application/adapter

我的未来我决定 提交于 2019-12-11 02:15:11
问题 I have created a database using the Phpmyadmin (xampp server). Database name = 'database' Username = 'user' Password is empty. When I tried to change the worklight.properties file, it says some Poolable connection error: [ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Project not initialized at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:110) at com.ibm.ws

Does Mobilefirst provide a provision to access web services directly?

瘦欲@ 提交于 2019-12-11 01:50:23
问题 I am developing a native android app on MobileFirst platform. Does MobileFirst provide any code to connect to a web service instead of going through adapters? This is basically only for Native Android development and not for Hybrid app. 回答1: The MobileFirst SDK only provides what is required to work with features provided by MobileFirst, such as connecting to various backends using Adapters with the added benefit of the MobileFirst security framework, and other features. If you have a need to

Worklight Adapter override adapter xml

瘦欲@ 提交于 2019-12-11 00:59:39
问题 Worklight 6.1 Once an adapter is deployed is it possible programmatically from within an adapters procedure to override the and that was previously defined in the adapters xml? Thanks 回答1: In all Worklight releases up to and including the recently released IBM MobileFirst Platform Foundation 6.3 (formerly Worklight), once a JavaScript or Java adapter has been deployed it becomes an object that is stored in memory. It is therefore not possible to alter the backend URL properties that were

IBM Worklight - iOS 7 status bar overlaps app's HTML

谁说我不能喝 提交于 2019-12-11 00:17:03
问题 In my application, the top of the HTML is half way into status bar. I have a button in that section that is now impossible to click. I don't know why it would do this. I have the standard viewport line ("width=device-width"). Any ideas? Or how to adjust it? 回答1: Apart from the steps given by Idan above, you can try using one preference in iOS which hides the statusbar. Try adding the following method to your app's root view controller: (BOOL)prefersStatusBarHidden { return YES; } Or you can

IBM Worklight 6.0 - Adapter with basic auth doesn't update auth header if client logs out/in

喜你入骨 提交于 2019-12-11 00:08:34
问题 I have a Worklight v6.0 application using adapter-based authentication. The adapter is an HTTP adapter that calls a backend REST service using Basic Auth. There is no session or cookies between the adapter and the backend service. In my Adapter descriptor, I have set the cookiePolicy to IGNORE_COOKIES. Each request from the adapter to the backend is authenticated with the basic auth header on that request. Each of the adapter's procedures has connectAs set to: endUser. <?xml version="1.0"