ibm-mobilefirst

IBM Worklight v6.0 - Error while adding an application to the Mobile Test Workbench

ⅰ亾dé卋堺 提交于 2019-12-02 11:11:10
I have a Worklight app, created an apk file from it. Created a Test Project. Adding the apk file to the workbench, it has an error saying: Application xxx.apk cannot be imported; it is either an invalid one or it contains specific features that are not supported. Try opening the .log file for the worklight workspace. I saw an error saying that for the Rational Test Workbench to work, I need to use JDK and not JRE. The solution that solves my problem is as follow: In the workspace, go to Window > Preferences Expand Java > Installed JREs Add a new JDK and ticky mark it Open the xxx.ma file You

IBM Worklight 6.1 - “Ecma Error: TypeError: Cannot call property <function> in object”

寵の児 提交于 2019-12-02 10:53:01
问题 I'm trying to run the Java in Worklight Adapters example from the worklightadapterproject smaple project, but I am facing an error when trying to invoke a procedure: { "errors": [ "Ecma Error: TypeError: Cannot call property addTwoIntegers in object [JavaPackage com.worklight.customcode.Calculator1]. It is not a function, it is \"object\". (C%3A%5CWorklightLab%5Cworkspace%5CWorklightAdaptersProject%5Cadapters%5CCalculatorAdapter\/CalculatorAdapter-impl.js#9)" ], "info": [ ], "isSuccessful":

MobileFirst 7.1 Progurd getting Error return code 1

大兔子大兔子 提交于 2019-12-02 10:43:46
I'm using mobilefirst 7.1 environment in eclipse. I just create sample hybrid application and add android environment. then i take unsigned apk at the time i'm getting below error. kindly help me for this. Thank you :) Progurd-project.txt # To enable ProGuard in your project, edit project.properties # to define the proguard.config property as described in that file. # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in ${sdk.dir}/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the ProGuard

IBM Worklight 6.0 - Mobile Test Workbench - Instrumentalized iOS App Error

醉酒当歌 提交于 2019-12-02 10:34:55
I’ve got a problem with my instrumentalized iOS App for the Mobile Test Workbench iOS-Client. After adding the necessary environments (IPhone and Android) and building the app with worklight, I wanted to test my app with the Mobile Test Workbench. The instrumentalization with rtwBuildXcode.sh succeeded and the app was uploaded to the simulator (with the script-parameter simu). But when the script uploads the app to the local mobile test workbench instance there is the following error: WorkbenchTest: this application is not a supported WorkLight one. Please consider using IBM Rational Test

IBM Worklight - How to customize an app after creating its .api/.apk?

佐手、 提交于 2019-12-02 10:12:06
I wish to distribute my enterprise Worklight application to many different clients. Basically what I want to do is give my customer the .ipa and .apk files of the Worklight app so that they may upload them onto their own Application Center. The problem is that each application needs to be slightly different in that there are different URLs they must refer to as well as some other properties such as text. I was wondering if there's a way to have my ipa/apk read from a properties that my client could change on their own without having to rebuild the ipa/apk? EDIT for clarification: The

Can we get the app version and IP address info using worklight api?

泄露秘密 提交于 2019-12-02 10:10:41
In my worklight hybrid app, I want to get two info: app version (the version the end-user sees in the various App Stores or in the device) IP address How can I do it? IP address: The Worklight Hybrid application does not have any IP address. The client (the app...) connects to the Worklight Server. The IP address you set the client to connect to is set in application-descriptor.xml as the value of worklightServerRootURL . If you mean that you're actually looking for the device IP address, you can get this using WL.Device.getNetworkInfo . App version: Like with the IP address, the "version" of

submitAdapterAuthentication not working

流过昼夜 提交于 2019-12-02 10:06:49
问题 I have been trying to do a specific operation once I receive the submitAdapterAuthentication from the challenge handler and I could not do any operation because my code it does not even compile through it. I am using the submitAdapterAuthentication in one method of my angular service. The method looks like this: login: function (user, pass) { //promise var deferred = $q.defer(); //tempuser tempUser = {username: user, password: pass}; userObj.user = user; checkOnline().then(function (onl) { if

What does the cookiePolicy adapter parameter do in Worklight 6.1+?

一世执手 提交于 2019-12-02 10:04:23
The Worklight 6.1 InfoCenter refers to a cookiePolicy parameter which can be set on an HTTP adapter. It mentions four possible values, but doesn't go into details about what they do. Is it safe to assume they all preserve cookies they are returned from the back-end HTTP service? How does that relate (if at all) to the JSESSIONID cookie that may be shared between the Worklight server and any back-end server? Do all calls from that adapter share the same cookie state, or does it depend on the security realm being used? The cookiePolicy parameter in a HTTP adapter defines the way the adapter's

MobileFirst App Diagnostic

那年仲夏 提交于 2019-12-02 09:56:20
How can I disable the APP DIAGNOSTIC screenshot after the occurrence of an error ? It appears selecting it on an error POPUP in the app itself. This app is hybrid and based on MobileFirst 7.1. There is no flag to remove the 'Details' button that appears in the pop-up that leads to this Diagnostics table. I believe you should be able to override the dialog all-together and provide your own by using the onConnectionFailure property in the initOptions.js file. You should have there the following snippet // # The callback function to invoke in case application fails to connect to MobileFirst

Worklight 6.2 migration tool error

a 夏天 提交于 2019-12-02 09:54:33
I am working on migrating data from WL 5.0.6.2 to 6.2. While doing that I encountered problems running data migration tool. Background: Approach: we export the WRKLGHT table from 5062 DB to an intermediate DB for data migration so the running DB is not affected. DBs: 1. schema: proj its storing 5062 runtime data, upgrade-worklight-506-60-oracle.sql, upgrade-worklight-60-61-oracle.sql upgrade sql are executed. 2. schema: proj6 its blank DB at first, "create-worklightadmin-oracle.sql" is executed to prepare WLADMIN tables. WL Project existing: 1. wlProj its the app running on 5062 WL server 2.