IBM Support

PH21347: IONIC 4 APPS BUILT WITH PRODUCTION CONFIGURATION FAIL DURING MFPINITIALIZATION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Product components impacted: Cordova / Ionic SDK
    Affected mobile development environments: iOS
    and Android
    Mobile Devices Operating Systems impacted: iOS and
    Android
    User roles impacted: End-users
    Distribution:
    NA
    Versions affected: 8.0
    
    Ionic 4 applications built with
    production configuration ( ionic cordova build android --prod )
    fails during the initialization of the MobileFirst plugin.
    This happens in both
    the iOS and Android environments.
    
    The following error is seen in the JavaScript console of a
    browser debugger
    
    bootstrap failed to inject script
     failed to load resource:
    the server responded with a status of 404() static_app_props.js
    -file is missing
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Developers of mobile apps on Ionic 4                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Ionic 4 applications built with production configuration (   *
    * ionic cordova build android/ios --prod ) fails during the    *
    * initialization of the MobileFirst plugin.                    *
    * This happens in both the iOS and Android environments.       *
    *                                                              *
    * The following error is seen in the JavaScript console of a   *
    * browser while debugging.                                     *
    * bootstrap failed to inject script failed to load resource:   *
    * the server responded with a status of 404()                  *
    * static_app_props.js -file is missing                         *
    *                                                              *
    * This issue is caused due to optimization/hashing of JS files *
    * which happens whenever the application is built using        *
    * production configuration.                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • This APAR fixes the MFP Plugin initialization failures in the
    Ionic 4 apps built using production configuration. This fix is
    applicable for both iOS and Android mobile environments.
    
    The MobileFirst plugin for Cordova can now work with the Ionic 4
    hashed builds.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH21347

  • Reported component name

    MOBILE1ST PLATF

  • Reported component ID

    5725I4301

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-01-23

  • Closed date

    2020-02-04

  • Last modified date

    2020-02-04

  • 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

    MOBILE1ST PLATF

  • Fixed component ID

    5725I4301

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"800","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 February 2020