building ios 10 app using xcode 8 and ibm mobile first platform 7.1 - ibm-mobilefirst

I am building a ios 10 app using xcode 8 and ibm mobile first 7.1. However the app can not connect to the mfp server.
Here is the error code:
Client registration failed with error: {"responseHeaders":{},"status":200,"responseText":"Invalid response when registering application","invocationContext":null}
2016-09-21 10:02:37.753286 [ERROR] [NONE] [/apps/services/api/**********/iphone/init] failure. state: 200, response: undefined
I am under HTTP network.

Your application will not be able to communicate with the back end by using plain HTTP or older SSL/TLS protocols from iOS 9 on-wards. This feature is introduced by Apple and you can find more information about this here.
If you turned off Application transport security feature and still facing this issue means then we require entire client side log and network capture between your client and server in order to debug the issue as this error occurs for multiple reasons.

Related

Error FPWSE1060W to send push notification in ibm mobilefirst 7.0

I am working on native-hybrid App using MobileFirst 7.0. The app use notifications push managed by MobileFirst. Notifications are sent using an MobileFirst adapter. Occasionally we are receiving the following error when sending notifications push:
com.ibm.pushworks.server.notification.gcm.TimeoutQueue W FPWSE1060W: GCM: 1 notifications deleted from the queue GCM-sender-AIzaSyAE because the waiting time is more than 50,000 sec.
Any idea why this error happens?
This error is a known problem that was recently fixed: PI67242 PUSH NOTIFICATION WONT SENT IN ANDROID DEVICES GCM WHEN MAXQUEUE LENGTH IS HIT
The fix for MobileFirst Platform Foundation 7.0 is available starting the build number dated 20160830-0817.
Please head over to IBM Fix Central and download the latest available iFix for MobileFirst Platform Foundation 7.0, which includes this fix and see if your issue is resolved.

400 Bad Request in WLAuthorizationManager.obtainAccessToken MFP8

I got bad request when I tried to register my device at MFP Server by calling WLAuthorizationManager.obtainAccessToken()
400 Bad Request - Invalid request body - JSON mapping failed.
Does anyone know what's the reason or how should I debug it. Is there any chances it caused by updating cordova-plugin-mfp?
I have no problem calling unprotected adapter method.
MobileFirst Foundation 8.0 has had 2 beta releases (you can download beta 2 artifacts from: https://mobilefirstplatform.ibmcloud.com/beta).
There are some compatibility issues between the client SDKs and the MFP Server between the beta releases. In your case, you need to update to beta 2. In the coming release, MobileFirst Foundation 8.0 will be backward compatible so you will be able to use different versions between clients without needing to update the server.

Push notification does not work on mobilefirst platform 7.1 server

We have develop a cross platform app with mobilefirst studio 7.0 and test it on production environment.
It was fine before we upgrade our project with mobilefirst studio 7.1.0.00-201510120-1525 and test it on clean staging server (7.1.0.0 20151012-1525).
It seems that the push notification functionality dedicated on mobilefirst 7.0 did not work properly on production server of mobilefirst platform version 7.1. The source code and configuration file of our mobilefirst push notifcation adapter and configuration files are here.
Inorder to fix the issue, we refer to official push notification tutorial which was documented here.
Surprisingly, although the source project in official tutorial looks fine on development server, it still not work on production server either.
We have test this project using iphone5s with ios 8.4 and HTC 816h phone with android 4.4.2, both of them fail to register push notification service after we login to the HybridEventSource sample application and tap the “Subscribe Notification” button.
The Mobilefirst server logs down internal server error message during the registration process of client devices.
I am wondering how to let the push notification mechanism work again on mobilefirst 7.1?
Either a valid push notification sample code of mobilefirst 7.1 or any fix pack which we do not know is welcomed.
Since we did not authenticate users via mobilefirst server, and devices were connected through vpn to server,
we prefer to have a solution which does not depends on particular mobilefirst server side authentication mechanism.
The server log message generated during this test is in this file.
The log file generated while we run EventSourceNotification app as xcode project is in this file.
For detail system log from ios device, please refer to device log file
And the Log message generated by HTC 816h android 4.4.2 phone is here
Information about our server environment:
Operating system : centos 5.8 linux
Java development kit : Oracle jdk 1.8 update 65 x86-64
Application server : Apache tomcat server 7.0.63
Worklight environment database : oracle database 11g.
Apple push notification service certificate : sandbox version
Well that's kinda suspicious, isn't it?
Since we did not authenticate users via mobilefirst server, and devices were connected through vpn to server, we prefer to have a solution which does not depends on particular mobilefirst server side authentication mechanism.
You are using the push mechanism provided by MFPF but you do not want to go through MFPF? You are required to go through MFPF if you want to use the push mechanism provided by MFPF... What did you mean by the above?
That said, did your DBA examine mf7-1-EventSourceNotifications-catalina.out.log? There are quite a few Oracle-related exceptions there that you should look at.
If you are still unable to resolve it I suggest to open a PMR instead so that the development team will be able to further investigate.

MobileFirst 6.3 iOS CFNetwork SSLHandshake failed (-9824) while server supports TLS1.2

I am getting a "CFNetwork SSLHandshake failed (-9824)" message on my iOS app using MobileFirst 6.3.
Using the following suggestion I can solve the issue, but I don't like it because of vulnerability.
CFNetwork SSLHandshake failed iOS 9
In my Build and Deploy target I have configured my server URL as https and my server supports TLS1.2. Why does it still give this error? The app connects over port 443.
Is it possible to configure MF6.3 to connect in a secure way to my MobileFirst server?
Make to sure the follow the instructions provided in this blog post: How to enable App Transport Security for iOS 9 in IBM MobileFirst Platform Server.
The blog post is exhaustive, so I will not summarize it here...

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.