Skip to content
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

Mobile deep link #813

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

adamski
Copy link

@adamski adamski commented Dec 8, 2020

Add support for "deep links" on iOS and Android.

Following the existing pattern on desktop platforms, where a link from a website registered with an app will end up calling JUCEApplication::anotherInstanceStarted with the URL of the link that opened the app.

On iOS it was necessary to replace the (now deprecated) applicationDidFinishLaunching with applicationDidFinishLaunchingWithOptions.

I also added support for "Custom URL Schemes" on iOS via openURL but this is untested.

On Android I have hijacked the PushNotifications class which deals with intents to check for a VIEW intent which has the BROWSABLE category. See https://developer.android.com/training/app-links/deep-linking

@adamski
Copy link
Author

adamski commented Dec 9, 2020

Please note - on iOS this requires the "Associated Domains" capability to be set. So this should really be added to Projucer as part of the addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant