Authenticate on android using deep link and GodotFirebase plugin #333
Replies: 5 comments 3 replies
-
Thank you for opening this discussion. |
Beta Was this translation helpful? Give feedback.
-
Anyone else looking at this, in 4.2 |
Beta Was this translation helpful? Give feedback.
-
In 4.2 your Android Manifest will get overwritten so the IntentFilter will be missing so the above won't work unless you use a Plugin; see here. Not sure how to do that yet. |
Beta Was this translation helpful? Give feedback.
-
Got this going by making an addons
Also the metadata tag in the manifest seemed to stick (wasn't overwritten):
My plugin.cfg is like this:
My plugin.gd is like the following with
and the
Please note that while this worked, I'm new to it so there could be some mistakes here. |
Beta Was this translation helpful? Give feedback.
-
Any update? |
Beta Was this translation helpful? Give feedback.
-
We have already managed to add the deep link in godot using the singleton plugins:
GODOT PLUGIN
You can put it on the side of
GodotApp.java
in android/build/src/com/godot/game or build as a plugin if you want;
FIREBASE HOSTING AND AndroidManifest.xml
you can use firebase hosting here, use one of those links like project.web.app
And don't forget to add it to the URI in google auth
You will also need to add to AndroidManifest.xml :
More Information here
And also need this:
after , if you are going to do it as a plugin, you need to modify com.godot.game
Now on firebase hosting you will need to modify the index.html for this:
Remembering to replace https and project.web.app and com.godot.game
according to your check in the manifest
This will force the redirect back to the app.
You will also need to create the .well-known folder and the .well-known/assetlinks.json file
before running firebase deploy
Don't forget to change, if necessary, the package
and to generate the sha256_cert_fingerprints with command:
keytool -list -v -keystore my-release-key.keystore
assetlinks.json:
More information: here
GODOT GDSCRIPT
login
Everything working, beauty!
Beta Was this translation helpful? Give feedback.
All reactions