ionic-team / ionic-team/cordova-plugin-ionic-webview
Window.close or window.location from oauthcallback.html not working for second time.
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
I'm using a cordova-salesforce plugin to authenticate users. First time it is working fine. But when i tried to logout, then try to login again (Without closing the application) , then the application redirected to oauthcallback.html defined in www folder and then the following below code will be used to back again to the app's main dashboard.
` window.opener.dstforce({
detail: window.location.href
});
window.close();`
But somehow it will stuck on the splash screen. When i check the console i got an error 'Service not availble'. This was working fine with old versions of ionic-cordova-webview , and also working with cordova- cordova-plugin-wkwebview-engine 1.1.4.
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.8
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-webview 2.3.1, (and 11 other plugins)
System:
ios-deploy : 1.9.4
NodeJS : v8.4.0 (/usr/local/bin/node)
npm : 5.8.0
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61
Contributor guide
Assessment
This issue has not been assessed yet.