How to stop the user from using the app when the status is set to disabled/lost/stolen in IBM Mobilefirst console - ibm-mobilefirst

I am using a native Android and IOS app which connects to Mobilefirst server. The app is connecting to MFP server for App authenticity and for creating user identity(Adapter authentication).
Now when I went console/devices
I see status specific to device which contains Active, Lost, Stolen, Expired and Disabled.
And under installed apps I see status Enabled and disabled. I see Certificate Serial Number value being No certificate. Do I need to add anything to get this certificate will this matter to enable or disable the status of the app.
My question is how do I use these features in Native apps?

You start by reading the documentation. You can go ahead and start reading here: http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.monitor.doc/monitor/c_device_mgmt.html
It has nothing to do with programming so I'm not going to write anymore about this in Stack Overflow (it is too much to cover anyway).

Related

MobieFirst v7.1 Application Center not sending push notifications to devices

We are implementing the GCM Push notification for app updates on AppCenter Client app
We have setup the following values in the server configuration
jndiName="ibm.appcenter.gcm.signature.googleapikey value="***"
jndiName="ibm.appcenter.push.schedule.period.unit" value="seconds"
jndiName="ibm.appcenter.push.schedule.period.amount" value="40"
And our app is still not receiving push notifications from GCM,
is there anything additional in the AppCenter Client to modify to enable this feature?
we have already set the config.json file gcmProject attribute with the GCM project number and rebuilt the apk accordingly.
the logs don't show any exceptions and no registered devices are available for push notification update
This type of question does not fit StackOverflow, which is meant for programming-related questions. Please open an IBM PMR (support ticket) to address this kind of server configuration question.

Mobile First Platform Appcenter access from Mobile

I Create the IBM Appcenter Installer for Iphone and deployed into the Appcenter and I access the appcenter console from the Mobile.
http://Honstname:9080/appcenterconsole/installers.html I am able to see the new installer(IBM App Center), When I click the install I am getting the error called.
cannot install application because the certificate is not valid.
I download the IOS enterprise development certificate from the developer.apple.com, I don't know where I can install this certificate in server or?, if mobile means how can I gave this certificate to every customer.
Please correct me if I am wrong.
For iOS, you must setup the server with SSL support.
There are too many steps to detail here, so it is based for you to review the full set of instructions in the following user documentation topic: https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/appcenter/c_ac_ssl_config.html%23configuringsecuresocketslayerssl

IBM Worklight Offline Support

we have an app which uses JSONStore to support offline, if device is offline and user submit data it stores it offline, now when device is online and when user login to the app it sync with server and submit all data to server.
the question is, Is it possible when device comes online then my offline data sync with server without user open my app ?
Does worklight support that? Or I have to do something else?
please advice
Like Idan said, Worklight does not support this, but depending on the OS, it could support it.
For instance, on Android, you could use BroadcastReceivers to detect changes in network connectivity, and execute an action when it happens, regardless of whether your app is closed or not.
Here is the API for the receiver: http://developer.android.com/reference/android/content/BroadcastReceiver.html and here is a SO answer explaining how to use it to detect WiFi connectivity: https://stackoverflow.com/a/22626736/2245921 So you can modify this BroadcastReceiver to run the sync code that you would normally do if your app was already open.
If you are using any other platform (iOS, Windows) there might be an equivalent that you can use.
Also, keep in mind that if you are doing a hybrid application, you can create your own Cordova plugin to execute native code from Javascript. Here is the documentation on how to do so: http://cordova.apache.org/docs/en/3.5.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide

Worklight - Unable to Download App - "App Center" could not be installed at this time

I code sign the IBM AppCenter client for iOS using my Enterprise Certificate. I used a unique bundle identifier and provisioning profile for the same. The OTA installation works fine in most of the iOS devices.
In few devices iPhone5S powered with iOS 7.1.1, it fails to download and install and gives the error message "Unable to Download App" - App Center could not be installed at this time". I have checked the Code Signing properties in my codebase. Every thing looks fine. Note sure why this fails in few devices and works fine in most of the devices.
There could be multiple reasons:
as Idan said already, iOS 7.1 requires SSL (https) with a real SSL certificate, that is, self signed certificates don't work. Application Center must run on a server that has a CA authorized SSL certificate that matches the server URL. Earlier versions of iOS did not have this restriction.
the app might not be provisioned for the device. This depends on your provisioning profile. Development profiles are limited to preregistered devices. If you are able to side-load the app on the same device, the provisioning profile must be correct. Typically, when the provisioning profiles is wrong, the app appears to be downloaded to ca 75% and then the failure occurs.
the Apple server to validate the provisioning profile is not reachable. This happens seldom and is normally not specific to a device. This can only explain occasional random failures to install the app, but it cannot explain when an app fails always on the same device.
there might be a connection problem between the Application Center server and the device. In this case, you don't see the download to go to 75% but it stops earlier in the download process. In Worklight 6.1, the Application Center uses resumable downloads, hence a temporary connection problem should normally get resolved automatically. But it can be a permanent connection problem on specific devices. In order to check whether it is a connection problem, you could open the Worklight AppCenter Console on the device inside Safari and try to download any app binary ... The resulting network traffic is similar to the one that occurs during installation.
I hope this helps!

IBM Worklight 6.0 - Busy indicator remains displayed in AppCenter client

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?
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 compiled correctly, note that the native folder of the application center client worklight project contains native code (a cordova plugin) that needs to be present in order for the application to run properly. If this is the problem you are facing, the cordova log will tell you that the plugin named 'com.ibm.mobile.InstallerPlugin' is missing.