Deeplink plugin allows processing of Android application links that enable direct navigation to requested app content.
For iOS version, visit https://github.com/cengiz-pz/godot-ios-deeplink-plugin .
Follow instructions on the following page to create a custom Android gradle build
Follow instructions on the following page to associate your Godot app with your website:
There are 2 ways to install the Deeplink
plugin into your project:
Steps:
Deeplink
plugin in Godot EditorDownload
buttonChange Install Folder
setting pointing to your project's root directoryIgnore asset root
checkbox checkedInstall
buttonPlugins
tab of Project->Project Settings...
menu, in the Godot EditorSteps:
Plugins
tab of Project->Project Settings...
menu, in the Godot EditorDeeplink
nodes to your scene per URL association and follow the following steps:
Deeplink
node
scheme
host
path prefix
scheme
, host
, and path prefix
must all match for a URI to be processed by the app
path prefix
empty to process all paths in host
deeplink_received
signal
url
, scheme
, host
, and path
data from the signalget_link_url()
-> full URL for the deeplinkget_link_scheme()
-> scheme for the deeplink (ie. 'https')get_link_host()
-> host for the deeplink (ie. 'www.example.com')get_link_path()
-> path for the deeplink (the part that comes after host)is_domain_associated(a_domain: String)
-> returns true if your application is correctly associated with the given domain on the tested devicenavigate_to_open_by_default_settings()
-> navigates to the Android OS' Open by Default
settings screen for your applicationadb shell
command can be used to simulate app links as follows:
$> adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://www.example.com/mydata/path"
If your game is not handling your deeplinks, then make sure to revisit the Android Export and Prerequisites sections.
adb logcat
is one of the best tools for troubleshooting unexpected behavior
$> adb logcat | grep 'godot'
on Linux
adb logcat *:W
to see warnings and errorsadb logcat *:E
to see only errorsadb logcat | grep 'godot|somethingElse'
to filter using more than one string at the same time#> adb.exe logcat | select-string "godot"
on powershell (Windows)Also check out:
https://docs.godotengine.org/en/stable/tutorials/platform/android/android_plugin.html#troubleshooting
Developed by Cengiz
Original repository: Godot Android Deeplink Plugin