304
Views
6
Comments
InAppBrowser Plugin on mobile
Question

Hi.

I'm working on an app which requires the inappbrowser cordova plugin. I'm not using the forge component as it doesn't allow additional functionality like capturing URL, and closing the browser.

So, I'm using the inappbrowser for an authentication process. After doing so, once I close the inappbrowser, the page becomes unresponsive.

Any ideas on how to fix this?

Staff
Rank: #353

Hello Saurav.

Do you have any logic after the Inappbrowser window closes? Does it happen no matter the page you open in the Inappbrowser? How are you closing the browser?



Rank: #31803

Hi Cesar,

So the InAppBrowser is being used for an authentication process. The last page it shows, is a landing page along with the access token as a URL parameter. So once the InAppBrowser lands on this page, it extracts the token and closes the InAppBrowser. At this point, the app stops responding. It redirects to the correct page on the app, but none of the buttons or menus work.

I'm closing the InAppBrowser using Javascript [I've tried inAppBrowser.close() and inAppBrowser.hide()], as mentioned in the inAppBrowser documentation.

Staff
Rank: #305

Hello, Saurav,

This is kind of shot in the dark, but have could you try closing the InAppBrowser from the app's side, instead of doing it from the callback page? You can use deep links to trigger a screen redirection, which in turn will run the logic to close the window.

If it does not solve the situation, have you tried debugging your app using Chrome? Through this method, you might be able to understand if the InAppBrowser window was actually closed.

Please let us know if you are able to overcome your situation.

Best regards,

Rank: #2870

Was this ever resolved? I am experiencing the same issue with the InAppBrowser plugin (from Forge). When I close the browser without doing anything in it, the browser closes but then my app is frozen. It does not respond to any touch anymore.

Rank: #1154

Hello Denis

I also faced the same promblem even i redirect from app  to web but from web to app how i will redirect ? how i will come back to my app ?