Polantaris commented on issue #571: 'beforeload' event can only fire once in an InAppBrowser session URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/571#issuecomment-591540269 It's not resetting the current InAppBrowser instance at all. The functionality I implemented works perfectly fine one time, and only one time within the InAppBrowser instance. The beforeload callback is triggered, and the functionality works fine. If you do not close or redirect the InAppBrowser instance as a result of the beforeload callback, all event hooks die completely. That's not proper flow in any circumstance. I cannot see how this is intended functionality. There's no excuse for the hooks to die off. Either the InAppBrowser should refresh itself if it can't keep the hooks alive (which in my opinion would make beforeload entirely useless, as the entire point of the call is to stop a redirect before it even starts), or it shouldn't let the hooks die at all. In my scenario, everything I want to do with the beforeload event is done as I wanted it to be done. The problem is that after I return from the beforeload hook, if the end result of the beforeload function wasn't to then load a URL anyway, Cordova stops listening to all events from the InAppBrowser. In fact, it doesn't listen to anything at all, and all links in the instance fail to work from then on.
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
