IBM Support

PI30969: WL.JSONSTORE.INIT HANGS UNTIL APP IS TAKEN TO BACKGROUND AND BACK TO FOREGROUND (PRESS HOME AND COME BACK) DUE TO CORDOVA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • On some devices with certain Android versions, calling
    WL.JSONStore.init will unpredictably halt sometimes until the
    app is taken to the background (e.g., clicking the Home button)
    and then back into the foreground. This is ocurring because,
    when JSONStore calls cordova.exec to execute a native plugin,
    Cordova is not always flushing the message queue properly that
    sends the plugin result from native to JS, but pushing the app
    to the background and reopening it forces a flush of this queue.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Any hybrid Android applications that use JSONStore, or       *
    * potentially any other Cordova plugin.                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * There is a problem with Cordova, where the success or        *
    * failure events from Android do not get sent to Javascript,   *
    * so the application stops waiting for the callbacks to be     *
    * called, but since the events are not triggered, it will not  *
    * happen. Sometimes the event queue can be forced to be        *
    * flushed by putting the application in the background (for    *
    * example, hitting the Home button), then coming back to the   *
    * application. This problem happens only for some Android      *
    * devices with certain Android OS versions, and is             *
    * unpredictable.                                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • The necessary fixes were applied to Cordova and after applying
    this fix, and rebuilding the application, it works correctly.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI30969

  • Reported component name

    WL/MFPF CONSUME

  • Reported component ID

    5725I4301

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-12-04

  • Closed date

    2015-01-13

  • Last modified date

    2015-01-13

  • 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

    WL/MFPF CONSUME

  • Fixed component ID

    5725I4301

Applicable component levels

  • R610 PSY

       UP

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

Document Information

Modified date:
17 October 2021