cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11561) wkwebview-engine-localhost prevents JS code to be executed in background
Date Mon, 25 Jul 2016 07:17:20 GMT

    [ https://issues.apache.org/jira/browse/CB-11561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391452#comment-15391452
] 

Shazron Abdullah commented on CB-11561:
---------------------------------------

This might be a problem inherent to the WKWebView itself (since you mentioned it was ok in
UIWebView with the same code). This will need to be tested in iOS 10 WKWebView (beta 3 as
of this writing). If it is a problem in the WKWebView component, a bug report should be filed
with Apple so as to (hopefully) get a fix before iOS 10 final is released.

> wkwebview-engine-localhost prevents JS code to be executed in background
> ------------------------------------------------------------------------
>
>                 Key: CB-11561
>                 URL: https://issues.apache.org/jira/browse/CB-11561
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>         Environment: ```
> % cordova --version
> 6.2.0
> % cordova platform ls
> Installed platforms:
>   ios 4.1.1
> [...]
> % cordova plugin ls
> cordova-plugin-app-event 1.2.0 "Application Events"
> cordova-plugin-compat 1.0.0 "Compat"
> cordova-plugin-console 1.0.3 "Console"
> cordova-plugin-device 1.1.2 "Device"
> cordova-plugin-dialogs 1.2.1 "Notification"
> cordova-plugin-file 4.2.0 "File"
> cordova-plugin-file-opener2 2.0.2 "File Opener2"
> cordova-plugin-file-transfer 1.5.1 "File Transfer"
> cordova-plugin-network-information 1.2.1 "Network Information"
> cordova-plugin-secure-storage 2.2.4 "SecureStorage"
> cordova-plugin-whitelist 1.2.2 "Whitelist"
> de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
> phonegap-plugin-push 1.7.4 "PushPlugin"
> ```
>            Reporter: Ricardo Panaggio
>            Assignee: Shazron Abdullah
>              Labels: ios, triaged
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message