bug: DeepLinks not redirect back to App
See original GitHub issueBug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 2.2.1
@capacitor/core: 2.2.1
@capacitor/android: 2.2.1
@capacitor/electron: 2.2.1
@capacitor/ios: 2.2.1
Installed Dependencies:
@capacitor/electron not installed
@capacitor/cli 2.2.0
@capacitor/core 2.2.0
@capacitor/ios 2.2.0
@capacitor/android 2.2.0
[success] Android looking great! 👌
Found 5 Capacitor plugins for ios:
cordova-plugin-browsertab (0.2.0)
cordova-plugin-compat (1.2.0)
cordova-plugin-deeplinks (1.1.1)
cordova-plugin-inappbrowser (4.0.0)
ionic-plugin-deeplinks (1.0.20)
[success] iOS looking great! 👌
Platform(s)
IOS
Current Behavior
We are using cmotion/ionic-keycloak-auth. Opens Keycloak in BrowserTab for redirecting its Using DeepLinks. After Login Success it should close the browser and save the token in the storage. Android works perfect. In Ios the DeepLink is not fired, **App.addListener(‘appUrlOpen’ ** gets called.
i have setup all URL Scheme`s if i delete them Safari tells me about unknown URL.
Expected Behavior
Browser Close after Successfull login
Code Reproduction
Install cmotion/ionic-keycloak-auth and try to login with IOS
Other Technical Details
npm --version
output: 6.14.6
node --version
output: v12.11.0
pod --version
output (iOS issues only): 1.9.3
Additional Context
I already posted directly in cmotion github but doesnt get an answer https://github.com/coding-motion/ionic-keycloak/issues/8
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:27 (1 by maintainers)
Top Results From Across the Web
Deeplink isn't correctly redirect if the app is already opened
Deeplink is redirected correctly if the app wasn't opened before. However, if the app exists in memory, the app is coming to the...
Read more >Universal link failing to redirect to app occasionally after OAuth
The redirect back to our app from the authenticating app is achieved by the calling of a universal link, this should always redirect...
Read more >Deep links do not open the app - Branch Help
Deep links do not open the app ; Make sure you are clicking on a deep link (e.g. https://example.app.link/fzmLEhobLD ) ; Make sure...
Read more >A complete guide to mobile app deep linking | Adjust
Default deep links only direct users to an app if it's already installed. If the app is not installed, the link can't reach...
Read more >Universal links in iOS. Last day I was asked to integrate deep…
If not, the web URL (which can be a simple redirect to the App Store) is ... The error “Add the associated Domains...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Because deep link event ‘appUrlOpen’ did not fire in some special cases as described above we now use cordova-plugin-inappbrowser:
With InAppBrowser you can clear the cache on each session, hide the URL bar, customize colors and more. You could even remove deep links completely: InAppBrowser provides the possibility to read the current URL with the ‘loadstop’ event, where you can process the Keycloak login redirect URL params. Since using InAppBrowser everything works like expected and setup without deep links is much simpler.
I found I could fix the problem of the appUrlOpen not firing by changing
App.addListener('appUrlOpen', (data: AppUrlOpen) => {
toCapacitor.Plugins.App.addListener('appUrlOpen', (data: AppUrlOpen) => {