IustinMicu opened a new issue #931: Pressing back button leads to "Webpage not available" error page URL: https://github.com/apache/cordova-android/issues/931 # Bug Report ## Problem Pressing native back button on android leads to "Webpage not available" error page ### What is expected to happen? I expect the back button to either close the application, or to redirect the user to the last visited url, which means opening the in-app browser and load the login page. ### What does actually happen? The Webpage not available error page is displayed, with this message: "The webpage at **file:///android_asset/www/#/dashboard** could not be loaded because: net::ERR_INVALID_RESPONSE" ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> I have an Angular application wrapped in cordova. I use the cordova-plugin-safariviewcontroller plugin to open an in-app browser and navigate to an external login page. After finishing the login process, I use the cordova-plugin-customurlscheme plugin to close the in-app browser and return back to the application (on a landingpage route, which loads a certain Angular component). The problem occurs when I am on this landingpage and I press the native back button. ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> android 8 and android 9 ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> cordova: 9.0.0 cordova-android: 8.1.0 cordova-ios: 5.1.1 cordova-plugin-customurlscheme: 4.4.0 cordova-plugin-safariviewcontroller: 1.6.0 cordova-plugin-whitelist: 1.3.4 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [ ] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org