Questions
Android Deep Links cause infinite redirect loop when app is launched
3 months ago by Thomas Cannon
On Android, navigating through a Deep Link causes an infinite loop, where:
- The original URL is clobbered, and the fallback redirect URL (
us-central1-gonative-demos.cloudfunctions.net...) is attempted to load - That URL does not load correctly, leading to an infinite loop
The domain has been correctly configured for Deep Linking, as confirmed by:
- The Deep Link opening the native app in the emulator
- Median's Deep Linking Validator: https://median.co/docs/deep-linking-validator
- Google's own Statement List Generator and Tester: https://developers.google.com/digital-asset-links/tools/generator
As far as I can see, this is a bug in Median's Deep Link AppLinksActivity handler and the redirect detection code. If I'm missing something, please let me know!
- Gist with (scrubbed) appConfig.json , snippet of where Median kicks off the infinite loop, debug logging: https://gist.github.com/tcannonfodder/0b57b405c608b687ae5202a72fa955fb
- Screencast showing the infinite loop: https://www.youtube.com/watch?v=s8tQAjn8AOI