A fix is available
APAR status
Closed as program error.
Error description
On Android Gingerbread and Android Jelly Bean versions, MobileFirtst Platform Foundation Cordova application will hang on the splash screen. Logcat will print out an error in bootstrap.js from cordova-plugin-mfp for "Uncaught TypeError: Illegal Constructor" Error occurs on 'mfpready' in bootstrap.js where the Event constructor in JavaScript is not supported in those older versions of Android.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * Users with Cordova Android apps running on Gingerbread or * * Jelly Bean * **************************************************************** * PROBLEM DESCRIPTION: * * On Android Gingerbread and Jelly Bean, the JavaScript * * 'Event' constructor is not supported in those old versions * * of Android. * * One of the files used to fire an event in a MobileFirst * * Platform Foundation with Cordova application uses this * * constructor. When the event doesn't * * get initialized, no event fires, and so the application just * * hangs on the splashscreen. The solution is to use the old * * way of handling events, * * document.createEvent('Event'). This method is supported in * * the older Android versions and also runs fine on the more * * recent ones. * **************************************************************** * RECOMMENDATION: * * - * ****************************************************************
Problem conclusion
Android Gingerbread and Jelly Bean should be able to fire the event and move to the main screen. After installing the iFix, rebuild the application.
Temporary fix
Comments
APAR Information
APAR number
PI47494
Reported component name
MFPF/WORKLIGHT
Reported component ID
5725I4301
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-08-24
Closed date
2015-08-27
Last modified date
2015-08-27
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
MFPF/WORKLIGHT
Fixed component ID
5725I4301
Applicable component levels
R710 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
17 October 2021