Worklight 6.0 - Steps to fix IBM App Center for iOS8? - dojo

I am using IBM Worklight 6.0 with December 14th fix.
I am trying to use IBM App Center client for iOS8.
I have seen multiple discussions about this issue:
IBM Worklight Application Center iOS unresponsive to touch events
IBM App center not working for iOS8
I copied the project from my server, where the fix is installed, and built for iOS, but when I inspect the mobile App, I can see that the application is using Dojo 1.9.0.
> dojo.version.toString();
"1.9.0 (29469)"
I can see that the IBM App Center mobile client does not use Dojo Toolkit, but includes a dojo.js file (with a size of 1.2MB).
My question is : What are steps to build IBM App Center for Worklight 6.0, knowing that the fix is installed (Both Worklight studio and server)?
Do I need to manually change dojo.js file with a newer version? if yes, where can I find such file?

The AppCenter installation contains an Application Center Installer application project.
This is a Worklight project with the iPhone environment. The app that is generated from it is the Installer application that you need to install on a device, and from which the user will then install any subsequent applications distributed via Application Center.
Make sure you are using the provided Worklight project; there are no additional changes to be done to to project (other than using your own bundleId, ...).
It could be that you are missing the Dojo library in your workspace?
You can generate it by creating a new Worklight project and application using the Dojo wizard in Studio.

When you received the fix, it contains a new project for IBM app centre.
You need to get this project and import it to your Eclipse Environment and rebuild the IBM app centre (APK and IPA) files.
You have to redeploy these files to IBM app centre console and re-download them on your iOS8 devices.
I believe the iOS8 fix starts from version V6.2, and we have downloaded fix v6.2.0.1.
So, I'm not sure about V6.0.
Please verify with IBM.

Related

where i can get cordova based MobileFirst Appcenter Project which should supports MobileFirst8 server?

i need IBM app center project so i can make my changes in there. The one i have is mobilefirst version that is devloped using MF SDK7.1. So i'm unable to use Mobilefirst8 server, especially push notification for the Appcenter app.Please provide me your suggestions on implementing Push notificaiton for this app. Note: i don't have MobileFirst Server 7.0.
Yes, you can use the installer app that is part of 7.x and it should work with 8.0 as well. MFP 8.0 Application center also ships the installer app and that will be the latest one.
Also, there is pure Cordova based installer app and you can directly take it to the Android studio and work there.

Which version of the App Center is latest? Either Codova based or IBM MobileFirst?

IBM provides two ways to generate the App Center Mobile Client. Either using their own MobileFirst Project or Cordova Project.. Among them which is the latest version? What is the latest version of .apk that IBM provides? Whether the .apk is built using native android?
(IBMApplicationCenter.apk file is in the directory ApplicationCenter/installer)
Your Question : IBM provides two ways to generate the App Center Mobile Client. Either using their own MobileFirst Project or Cordova Project
Answer: Pure Cordova based is a new one. So, with this there is no dependency on Worklight studio. You can build the project using android studio.

MobileFirst Version Mismatch

FWLSE3210W: Environment: android of application BBQ version 1.0 has
been deployed with a different version of the native MobileFirst SDK.
Direct updates will no longer be available for existing clients with
other versions of the MobileFirst SDK. To continue to use direct
updates, increment the app version, publish it to the public app
store, deploy to the server, and (optionally) block/notify older
versions of the app to enforce customers to upgrade to the new version
from the app store.
I am seeing the above warning again and again. And it doesnt seem to be related to the version difference between my worklight studio and worklight server.
I have created a MobileFirst Project in MobileFirst 6.3.
I have a remote MobileFirst 6.3 server.
When I deploy the iphone wlapp file first through the worklight console it goes through successfully but when I deploy the android wlapp file of the same app, it shows me the above warning and similar thing happens when I upload the android wlapp file first no issue but when iphone wlapp file is uploaded it shows the warning. Could someone tell me what this warning really is?
This is a false-positive warning message that you can safely ignore.
If you'd like it gone you can also download the latest MobileFirst Platform Foundation 6.3 iFix from IBM Fix Central where it has been fixed.

Worklight v6.2 - Android Cordova Plug-in

Has anyone tried the "Android - Adding native functionality to Hybrid Application using Apache Cordova plug-in" feature in v6.2 ?
I'm trying to use a 3rd party library on the client side and wanted to understand where to put the plug-in java class in the project. The documentation shows a java package (src) structure whereas the best I can find is normal folders in the android native folder.
Thanks.
The reason you see these as "regular" folders is likely because you are look at the Worklight project rather than the generated Android project.
Worklight project\apps\your_app\android\native\ ... will look as folders because they are indeed just folders.
Once you build your Worklight application (containing an Android environment), an Android project will be generated. In it, you will see the folders as packages, etc.
A Worklight project and application structure is explained in earlier training modules:
Creating your first Hybrid Worklight application
Previewing your application on Android
So, you should place your Java Class file in Worklight project\apps\your_app\android\native\src\com\package_name\ ...
Note about Cordova plug-ins in Worklight: depending on the plug-in this may not be possible to use as some plug-ins require using the Cordova plugman, which is not yet supported in Worklight.

How do I install the Worklight mobile client application into the Application Center

I am running the Worklight Server v5.0.0.3 Redhat Enterprise Linux 5.8 64b BYOL image in the iBM SmartCloud Enterprise. I can install apk files into the App Center from Worklight Studio on my laptop.
I now want to install one of these apps from the App Center to my smartphone. To do that I first need to install the Worklight mobile client application into the App Center. The file is opt/IBM/Worklight/ApplicationCenter/installer/IBMApplicationCenter.apk.
But how do I actually install it? If I click on "Add Application" in the App Center it will search on my laptop drive, not on the server drive in the cloud.
Is there a way for me to install it on the WL Server, or do I actually have to download it to my laptop and then install it from there?
Sounds to me like you did not read the IBM Worklight Application Center documentation...
Note that the below instructions are for the Application Center in Worklight 5.0.6.x, but they should be fairly similar in 5.0.0.3 as well with some minor differences.
The documentation for v5.0.0.3 is available in this zip file.
Here's a quick explanation:
There is an app called "App Center" (the IBMApplicationCenter.apk you've mentioned)
You upload it to the Application Center console - make sure to tick the "installer" checkbox in the upload form
You do the same for your ready Worklight apps (the .apk produced after generating it in Eclipse) - do not tick the 'installer' checkbox
Now you need to install the "App Center" app on your device.
Once that's done you should have a list of apps available to install on your device from within the "App Center" application.
I do, though, strongly suggest that you upgrade to the latest version of Worklight; many fixes have been done in all aspects, including Application Center.