-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug (Capacitor Browser): browserFinished | browserPageLoaded does not return anything #3044
Comments
This is not a bug, they don't return anything on any platform, so tagging as feature request. Issues tagged with feature request are closed but tracked for👍 reactions to gauge interest. Would be good to know what do you expect them to return, but the native API is very limited, so there is not really a lot of things to return. |
In the return we should get changed url so we can use it. |
That's not provided by SFSafariViewController nor by Chrome Custom Tabs that the plugin uses, so not really possible. |
Ok thanks Man to inform. |
I would like to have same features in this capacitor plugin like we have in cordova in-app browser |
As I said, it's not possible because this plugin uses SFSafariViewController on iOS and Chrome Custom Tabs, and while it has some advantages over using a webview (what InAppBrowser plugin uses), it also has some limitations, like not being able to know the urls you are loading, or not being able to inject javascript or css. This is by design because Apple and Google thing those features affect security and privacy and the focus of those components is precisely improving the security and privacy. So if you need those features, keep using cordova's InAppBrowser plugin or create a Capacitor plugin that uses a webview to load the content. |
okay i get it. thank you for explanation |
If not returning anything is the expected behavior, then the docs should not show |
I couldn't agree more. Please fix the documentation. I wonder how many people were misled because of this. |
removing the labels since this feature is not going to be possible due to the limitations of the native components used byt the plugin (SFSafariViewController on iOS and Chrome Custom Tabs on Android) as they prioritize security vs functionality. If people need that information they'll have to use cordova-plugin-inappbrowser or create a capacitor plugin that uses a webview, but SFSafariViewController and Chrome Custom Tabs don't provide that information, so we can't neither. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
npx cap doctor
output:Affected Platform(s)
Current Behavior
This event doesnt return anything in callback
Expected Behavior
It should return something
Sample Code or Sample Application Repo
Reproduction Steps
Other Technical Details
npm --version
output: 6.9.0node --version
output: v10.16.3pod --version
output (iOS issues only):Other Information
The text was updated successfully, but these errors were encountered: