-
-
Notifications
You must be signed in to change notification settings - Fork 234
how can we close the inappbrowser when have detect redirect to another page? #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
on iOS you can call the close() function. On Android you cannot close it as far as I know. |
@krini but how to detect specific url that inappbrowser is currently in ? |
You can not. If you close it, it is probably because you know the flow is done e.g. by polling a status endpoint. |
But that is very weired to hit a endpoint and keep checking if its successful or not. In case if the journey inapp browser is a bit long then it will be expensive operation to keep polling |
Is there a way to close the in app browser on android automatically. I just want to close it programmatically. Here is a code snippet.
|
No, this line of code On android the browser should be closed in the browser window and not from the app. |
@krini So, there isn't a way to close the in-app browser programmatically rather than having to close it manually. |
If you are in control of the page in inappbrowser you can close it from there, not from the app code on Android. Maybe you can solve it with a deeplink back to your app - however I didn't succeed in doing this. |
how can we close the inappbrowser when have detect redirect to another page?
The text was updated successfully, but these errors were encountered: