nomaam commented on issue #835: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/835#issuecomment-753490865
> The in app browser does have a `hide` API. See https://github.com/apache/cordova-plugin-inappbrowser#inappbrowserhide for more details. > > Is this not sufficient? I already linked that function in my original post... and described why it is not ideal... On an Android phone there is a physical (hardware) back button, unlike on an iPhone where there is none. A user will expect the physical back button to be functional, otherwise they will most likely get frustrated. Currently the only functions the physical back button can do inside inAppBrowser is go back a page, or exit the inAppBrowser. This is not ideal, as if you want to use the inAppBrowser again you will have to load the page / reasource all over again, which takes a lot of time, plus the user will lose their spot where they left off in the inAppBrowser session. Ideally, the physical back button would call the Cordova .hide function from the Java function I originally posted. Then you could call .show in Cordova Javascript and the user would be able to resume where they left off in the inAppBrowser. Is there any way to directly call the Javascript Cordova .hide inAppBrowser function from within the Java file? Thanks. ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
