[
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16618202#comment-16618202
]
ASF GitHub Bot commented on CB-7179:
------------------------------------
rafaelberrocalj commented on issue #271: CB-7179 (iOS): Add WKWebView support
for iOS
URL:
https://github.com/apache/cordova-plugin-inappbrowser/pull/271#issuecomment-422186721
Everything looks good and works fine.
One thing i've notice is that the window.alert is not blocking/waiting:
Android: show first alert and stop everything untill i click 'ok' then
inappbrowser open and second alert block everything untill i click 'ok'.
iOS: show first alert then inappbrowser open and the second alert is behind
the inappbrowser.
Same behavior happens when using events (loadstart/loadstop).
Android: ok
iOS: alert is behind inappbrowser
Example (after deviceready):
```
window.alert('test');
var iap = cordova.inAppBrowser.open('url');
window.alert('another test');
iap.addEventListener('loadstart', function(){
alert('loadstart')
});
iap.addEventListener('loadstop', function(){
alert('loadstop')
});
```
config.xml
```
<plugin name="cordova-plugin-inappbrowser"
spec="https://github.com/dpa99c/cordova-plugin-inappbrowser#CB-7179" />
<plugin name="cordova-plugin-wkwebview-engine" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
```
Build with phonegap-version=cli-8.0.0
Android Phonegap Version = 7.0.0
iOS Phonegap Version = 4.5.4
This might be some error or this behavior is expected?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [InAppBrowser][iOS 8] Update to support WKWebView
> -------------------------------------------------
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: cordova-plugin-inappbrowser
> Environment: iOS 8
> Reporter: Shazron Abdullah
> Priority: Major
>
> support dual use with UIWebView
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]