Cordova inappbrowser doesn't open in new webview on Android -
i have problem cordova inappbrowser plugin (within ionic app, if relevant).
i try open new webview url (for authentication purposes). should new webview, need loadstart
event in original cordova-webapp.
the following code works within ios expected, on android seems open url within same webview (and not in _blank, specified). miss something, or bug?
var browserref = window.open(flatserverurl+'/tokenlogin?redirect=http://localhost/callback', '_blank', 'location=no,clearsessioncache=yes,clearcache=yes'); browserref.addeventlistener('loadstart', function(event) { // url });
system info:
- cordova 4.3.0
- com.ionic.keyboard 1.0.4 "keyboard"
- cordova-plugin-inappbrowser 1.0.1-dev "inappbrowser"
- org.apache.cordova.console 0.2.13 "console" org.apache.cordova.device
- 0.3.0 "device"
tested on nexus 4 android 5.1.1 , 2 genymotion android emulators (4.4.4 , 5.0.1)
Comments
Post a Comment