Search code examples
androidcordovaibm-mobilefirst

Getting an alert: "Gap_init:2" in Android device


Dojo version :1.10.3 (ae6be82)
Java 7
MobileFirst platform Studio 7.0.0.00-20150907-1450
Os:Ubuntu 14.4(64 bit)

After applying iFix 7.0.0.0 MFPF-StudioP2-IF201509071450.zip our adapter calls are failing, it is not connecting to the server. There is no error printed in console.log or messages.log nor trace.log.

The app is working fine in browser preview but getting an alert gap_init:2 in device.

Note: I recreated android environment and rebuild


Solution

  • Edit: This is in fact not related to the Android Emulator, but to previewing the Android environment in the MobileFirst Console's MBS. This happens due to a regression and is taken care of in APAR PI50036 CORDOVA "GAP_INIT:2" ERROR WHEN PREVIEWING ANDROID IN MBS.


    I am unable to confirm this.

    The claim was that a new application fails to properly load, with Cordova-related errors.

    I have used a newer iFix than yours: IBM MobileFirst Platform Studio 7.0.0.00-20151001-0721, created a new project and application, added the Android environment, built the project and launched it in the Android Emulator (using Android 5.0.1) - the application successfully loaded without any errors.

    I suggest for you to login to IBM Fix Central with your customer credentials and download the latest available 7.0 iFix, and try again.