ibm-mobilefirst

Worklight Adapters - Java vs JavaScript

泪湿孤枕 提交于 2019-12-13 00:34:17
问题 Is there any drawback to having the JavaScript Worklight adapters calling Java code? Is there a performance hit, or any caveats? The reason I ask, is that 1) I'm much more familiar with Java than JavaScript, and 2) Java is so much more powerful than JavaScript. I'm tempted to just have the adapter always call a Java class to do all the work, but I'm just concerned there might be some reasons I shouldn't. 回答1: Using Java inside of your adapters is meant as "an extension of the adapter function

IBM Worklight 6.0 - Busy indicator remains displayed in AppCenter client

拥有回忆 提交于 2019-12-12 22:30:30
问题 After successfully building the AppCenter client application and launching it in an iOS device, my problem is that when I enter my Worklight Server credentials, the server URL and the port and with or without the applicationcenter context, the loading progress keeps running... How to solve this issue? 回答1: I agree with Idan, first thing to do is to run the application center client on the iOS emulator and look at the device logs. I have seen the loading never ending when the client was not

configuring worklight with eclipse

假装没事ソ 提交于 2019-12-12 22:15:17
问题 I'm configuring my eclipse with the worklight with this steps while doing that i'm getting the above error as shown in the image. 回答1: 1) Worklight is pretty specific to which editions and versions of eclipse are known to work. Running with other editions or versions can lead to unpredictable results. For the current version of IBM Worklight Studio (v6.2), which is on Eclipse Marketplace, double check to ensure you have: Eclipse IDE for Java EE Developers Juno SR2 (4.2.2), Kepler SR1 (4.3.1),

IBM Worklight - Filesize of the generated Android project's .apk

天大地大妈咪最大 提交于 2019-12-12 20:06:32
问题 I am developing app on Worklight 6.1 version and it contains default common folder which is being created by worklight itself while creating the project. As I am testing size of apk for Android environment , it gives 2.2MB. Size should be very small because till now I haven't added my files in the project. My question is why the size is big when creating the default app with worklight as you can say Hello Worklight project. Size should be in KB. So let me know whether worklight is adding any

IBM Worklight 5.0.5.2 - How to change the Android package name

孤者浪人 提交于 2019-12-12 19:25:22
问题 In worklight it seems that the android package name is set by the varible ${packageName} . Where is this variable set? And how can I change it? Right now the default seems to be com.applicationName . In the app im working on, this package name already exists in Google Play, so I would like to change it to com.corperationName.applicationName . I know I can do this via Ant during Android project compilation, but I was wondering if there was somewhere within Worklight I can do this. 回答1: I was

Can't retrieve user roles

江枫思渺然 提交于 2019-12-12 18:24:37
问题 I am trying to return a list of roles back to a mobile client device from the WL server In the createIdentity method of my LoginModule I added the following code HashMap<String, Object> customAttributes = new HashMap<String, Object>(); customAttributes.put("AuthenticationDate", new Date()); Set<String> groups = new HashSet<String>(); groups.add("Managers"); groups.add("Users"); UserIdentity identity = new UserIdentity(loginModule, USERNAME, "Fred Flintstone", groups, customAttributes,

MobileFirst 8.0 Cordova CLI Interface not found in app preview (MAC)

雨燕双飞 提交于 2019-12-12 18:18:46
问题 I have successfully started the server, registered the app and deployed all adapters. However, whenever I call the command: mfpdev app preview The CLI is responding with the following message: [BS] Serving files from: ./platforms Error: The Cordova command-line interface is not installed on your system path. Of course I have previously checked that Cordova is available, by using cordova -v (I am gettint '6.1') What could be the problem? I'm using OSX El Capitan 10.11.3 Update: mfpdev info

Bluemix Push Notification service not working anymore?

柔情痞子 提交于 2019-12-12 18:15:46
问题 I have a native iOS Swift app talking to a Node.js Bluemix backend with MobileFirst services (AMA, Cloudant, Push iOS 8), which worked well for over a month. A few days ago I noticed that I could no longer register new devices from the iOS app (IMFPushClient.sharedInstance().registerDeviceToken() responded with a 404). I knew that changes had been made recently to the MobileFirst services ( e.g. the various push services were merged into one), so I figured I should rebind those services. This

MFP CLI cannot build-deploy project initially created with MFP Studio

不打扰是莪最后的温柔 提交于 2019-12-12 17:32:37
问题 Problem Context : We initially created a MFP hybrid project with the iOS environment using MFP Studio plugin for Eclipse. We have this project under source control (Git on DevOps). Some team members in our team are doing iOS development for this project and since they are not familiar with Eclipse, they are wanting to use the CLI instead. Other developers in the same team will continue to use Studio since they are writing Java code for the MFP adapters and want to leverage the capabilities

How to achieve interaction between Native and Hybrid Applications in Worklight?

瘦欲@ 提交于 2019-12-12 16:56:15
问题 I will start with explaining the use case I am trying to implement. I have two different applications: Native android application, and Worklight-based hybrid application The use case starts with opening native android application. On a particular event I am opening the Hybrid application with some parameters. In the Hybrid application, I am getting the passed parameters in the native side it, and now I want to use that data in the webview of the application (JavaScript, HTML). How can I