URL Scheme
Handle secure user redirection back to your app after ZBD OAuth login using a custom URL scheme.
To enable the ZBD app to redirect back to your game after the user connects via the ZBD app,we need to know your game’s URL scheme. If you’ve already set this up, please share it with your ZBD contact. If this is your first time setting it up, don’t worry. The process is straightforward, though it differs slightly between iOS and Android.
For iOS:
In Unity, go to :
Build Settings
Player Settings
Other Settings
Supported URL Schemes
and add your app’s URL scheme there. Replace appname
with the name of your game.
For example: bitcoinbash
For Android:
You’ll need to declare your URL scheme in your AndroidManifest.xmlfile. In Unity, go to:
Build Settings
Player Settings
Publishing Settings
Enable Custom Main Manifest, then edit the manifest to include an intent filter for your URL scheme.
the AndroidManifest.xml
file is located in Assets/Plugins/Android
. in the <activity>
section.