Has anybody integrated deeplink.me into mobile game on iOS and Android? I’m trying to follow official documentation, but it concerns native development, while we need Unity integration, so handlers are to be in managed code. Are there any examples how to use this or another service for deep linking? Probably Facebook SDK?
The functionality we need is the following. Customer faces deep link like mygame://some/section in his Twitter or Facebook friend’s post, or another web page. When user taps the link, he 1) launches the application; 2) proceeds to target screen depending on URI; 0) or proceeds to landing page in browser or App Store as fallback when application is not installed.
To handle custom URI schemes there’s no way around writing a native plugin. However, all you need is the code provided in the documentation. So for Android just compile a jar file containing just an activity that sends a message to Unity and put the compiled jar in Unity’s plugins folder. Of course you have to register your custom URI scheme in an AndroidManifest.xml file so your activity is actually launched when that URI is called.
In the SendMessage call you would pass the URI as string to one of your Unity scripts.
Personally i can’t help you with iOS as i don’t have a mac nor an iXX* device. However it should be quite similar according to the documentation.
use ur schema as “android-app” in manifest file . internally Mobile OS reads the manifest file … when the particular app in Phone matches the schema and package name it will perform the option which is specified in intent activity.