-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Using custom URLs within InAppBrowser #42
Comments
The plugin doesn't have an API for handling custom URL yet (such as WKURLSchemeHandler for iOS)! @override
void shouldOverrideUrlLoading(String url) {
if (url.startsWith("myapp://gotoThisLink")) {
// launch myapp here
}
} To launch an App, you can use also my other plugin flutter_appavailability using the |
cool thanks - I will give that a try |
@pichillilorenzo tried to get the shouldOverrideUrlLoading working however the method is never called - even with the option useShouldOverrideUrlLoading set as required. Other overridden methods work fine, e.g. onLoadResource - it's just shouldOverrideUrlLoading that seems broken - any ideas? This is using iOS and latest release v0.5.51. |
Checking Android and shouldOverrideUrlLoading is working OK. |
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Trying to use InAppBrowser and get a URL that redirects to a custom URL (e.g. myapp://gotoThisLink) which if hit using a native browser opens the desired app as expected. However with InAppBrowser the URL fails in onLoadError method with 'unsupported URL' error message. Any ideas how to solve this with InAppBrowser? Thanks
The text was updated successfully, but these errors were encountered: