Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11561

wkwebview-engine-localhost prevents JS code to be executed in background

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:

      Description

      When the application is suspended and something causes it to run on background (like when a push notification arrives, or when an action button on the notification is pressed), the JS code that should be called (in the same example, a notification event callback) isn't called immediately, being called only when the app becomes active again (say, by opening the app again). This is way different from the expected, which is what happens when you use the default WebView: as soon as the native part of the code calls the JS code, it executes while in background mode.

      The discussion around this issue started on a [phonegap-plugin-push issue[(https://github.com/phonegap/phonegap-plugin-push/issues/985).

      I can give a lot of details since I've been trying to find this bug for a long time now, but most details would be useless, and a lot of the details qere already posted on the original issue.

      Also, a small app that reproduces this can be generated using instructions on the original issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shazron Shazron Abdullah
                Reporter:
                panaggio Ricardo Panaggio
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: