ibm-mobilefirst

lose weight for MobileFirst Platform exported apps

坚强是说给别人听的谎言 提交于 2019-12-08 09:56:31
问题 While developing with IBM MobileFirst studio I've found that after building iOS/Android environment and generated native projects, even a blank app (e.g a quite simple Hello World Android app which do not use any native functionality), will take size more than 4Mb which is much larger than a real native exported Android apk file. So are there any unused resources that can be deleted or other things we can do so that we can lose weight in the final exported apps? Another detail, the classes

Is there any way to launch one application from another application in android and ios using worklight 6.2 or phonegap hybrid applications?

爱⌒轻易说出口 提交于 2019-12-08 09:37:28
问题 I want to launch one application that already installed in my device from another application by some action like clicking on a button. I want to implement this both in android and ios applications as I am developing worklight hybrid application. I want to know whether this is feasible in hybrid applications using IBM worklight or phonegap. Let me know if any other information is needed on this. 回答1: Yes. You can implement Cordova plug-in(s) that will do this. See user documentation on

Worklight Hybrid application with a colored background displays a white line at the bottom

蹲街弑〆低调 提交于 2019-12-08 09:10:49
问题 Worklight Hybrid application with a colored background displays a white line at the bottom in IOS 7.1. The same problem of https://www.ibm.com/developerworks/community/blogs/worklightsmobileplayground/entry/ios_7_1_is_around_the_corner?lang=en I'm using Worklight version 6.1.0.00-20131126-0630 , but it did not fix the problem reported the above. 回答1: As mentioned, Worklight 6.1.0.1 fixes the bottom white strip in iOS 7.1. 回答2: I upgraded from 6.1.0 to 6.1.0.1, and the problem was solved. 来源:

Unable to resolve superclass of Lcom/worklight/androidgap/WLDroidGap

大兔子大兔子 提交于 2019-12-08 07:59:38
问题 When I play with Getting Started exercise "Using Worklight API in native Android applications", I get failed to connect to worklight server from native Android page, and error messages below: Unable to resolve superclass of Lcom/worklight/androidgap/WLDroidGap; (435) Link of class 'Lcom/worklight/androidgap/WLDroidGap;' failed Could not find method com.worklight.androidgap.WLDroidGap.getWLConfig, referenced from method com.worklight.common.WLUtils.checkIfMediaFile VFY: unable to resolve

IBM Mobile First - mfpdev-cli Installation Failure

半世苍凉 提交于 2019-12-08 06:54:42
问题 I have issue while installing npm mfpdev-cli (IBM Mobile First CLI). I am using node v 6.11.2 npm v 5.4.1 I am unable to install mfpdev-cli. I am getting the below error: Error message: npm ERR! path /Users/divya/Desktop/MFP/mdo-windows-support/package.json npm ERR! code ENOPACKAGEJSON npm ERR! errno -2 npm ERR! syscall open npm ERR! package.json ENOENT: no such file or directory, open '/Users/divya/Desktop/MFP/mdo-windows-support/package.json' npm ERR! package.json npm can't find a package

IBM Worklight 6.1 - How to display a prompt dialog? [closed]

余生长醉 提交于 2019-12-08 06:47:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . It was able to display a prompt box in common resources ("preview as common resources"), but it is not working in the Android Emualtor. What is the reason? 回答1: Have you tried using Cordova's navigator.prompt? For example, in common\main.js: function wlCommonInit() { navigator.notification.prompt( 'Please enter

IBM Worklight - How to use Custom Server URL?

霸气de小男生 提交于 2019-12-08 06:44:39
问题 When you install a Worklight application onto an iPhone, in the settings there's a parameter "Custom Server URL" you can use to change the Worklight Server the app is to connect to. I was wondering if there's such a parameter you can change on the fly on an Android device as well, or do I have to redeploy the application every time I want to change the server? I was also wondering if it's possible to disable this feature? I'm thinking in a production scenario I probably don't want my users to

What does connectAs=“endUser” actually do?

故事扮演 提交于 2019-12-08 06:40:44
问题 The Worklight documentation refers to an attribute within the element of an adapter's XML file called connectAs="endUser" . It says that this means that: The connection to the back end is created with the user’s identity. Only valid if a user realm has been identified in the security tests for this procedure. However, what does this actually mean in terms of the HTTP connection that is performed from the adapter to the back-end HTTP server? How does it affect, for example, the JSESSIONID? 回答1

IBM Worklight 6.1- [ERROR ] FWLSE0020E and [ERROR ] FWLSE0117E

混江龙づ霸主 提交于 2019-12-08 06:38:25
问题 I'm using worklight 6.1 for my mobile app project. Why do I get this error message when preview in Eclipse? Error message: [ERROR ] FWLSE0020E: Ajax request exception: The application 'example' with version=1.0 does not support the android environment [project example] [ERROR ] FWLSE0117E: Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0069E: An internal error occurred during gadget request [project example]The application 'example' with version=1.0 does not support the

Adding native code to an existing Worklight hybrid app

夙愿已清 提交于 2019-12-08 06:37:40
问题 I have a worklight hybrid app running on android and I wanted to add some functionality to call into a native android library that isn't currently provided via worklight or cordova. My understanding is I'll need to create a cordova plugin to do this. Creating the cordova plugins seems pretty straight forward given the steps explained in the Getting started tutorial. The one hang-up I have is when I go to create the Java class to implement the plugin. The tutorial says "Start by creating a