-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Question: no preventDeeplink for openWebView ? #243
Comments
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: |
Still need to test stuff for iOS, since I am facing the same issue on that platform as well |
it seems to fail when trying to open a custom schema I use, first step works because I use URLs that start with https, but when it seems to reach my custom schema it no longer recognizes it. |
Issue is related to #261 - see infos there. |
I see that migration to Capacitor v7 has already been done before this has been fixed :( |
Did migration to Cap 7 fix that issue for you? @KkatieJ Sad, I think about any other good workaround to communicate with the app without deep links. A possible workaround might be to use postMessage(...) function. But I was not lucky with it yet. Then listening to the message from within the app: |
@MarcelSchuermann I haven't tried yet as I don't think it's related to Capacitor, however, what somewhat helped for my case with iOS was changing the |
Hi @KkatieJ Thanks a lot for your input. I was lucky and could make it work using the postMessage(...) workaround. Hope it helps, wish you good luck! :) |
Can you make a reproduction from that i will be able to help you |
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 (or stop listening for url changes) 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?
The text was updated successfully, but these errors were encountered: