Skip to content
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

App pauses in the background #243

Open
KkatieJ opened this issue Dec 3, 2024 · 2 comments
Open

App pauses in the background #243

KkatieJ opened this issue Dec 3, 2024 · 2 comments

Comments

@KkatieJ
Copy link

KkatieJ commented Dec 3, 2024

Pardon a noob, but i've had some issues with my code and the plugin past versions 1.2.19 I think, but not sure we had this specific issue.
My app is using capacitor, this summer we updated to capacitor 6 and also lifted SDK target version to 34, so we were forced to also update this plugin, while I face similar issue on iOS I'll focus on android for now, and try my best to explain it, I need to open an external app, do a specific action after which my app listens for url changes and if it encounters an url containing a specific keyword it modifies the return url to point back to my app, but what I am encountering now is that it seems to pause my app before the url has changed to the url that contains the required keyword, thus the process that I am trying to do just fails and I'm navigated to chrome because it tries to open the url that was caught last insead of the one that should point back to my app.
It succesfully catches the first three url changes but pauses right before the fourth one that would trigger the if block that modifies return URL to point back to our application.
logcat specifically shows that App paused which previously did not happen.
Has anyone encountered a similar issue? Maybe someone has any ideas what has changed?

@KkatieJ
Copy link
Author

KkatieJ commented Jan 5, 2025

So, I finally managed to look into it a bit more, the method I am using is openWebView() and this is the code that is the issue, since there is no preventDeeplink option for openWebView, this is what's breaking my app, which I see was brought in with this change:
4b820e1

image

@KkatieJ
Copy link
Author

KkatieJ commented Jan 5, 2025

Still need to test stuff for iOS, since I am facing the same issue on that platform as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant