https://www.youtube.com/watch?v=bKiwNfNqKAc
/Scripts/Editor/AppleBuildPostprocessor
- automatically adds xcode capabilities. TO CHANGE associated domain name./Plugins/Android/AndroidManifest.xml
- TO CHANGE android:scheme and android:host based on the url you want to use./Scripts/DeepLinkHandler.cs
- basic handling of deeplink URLs. You basically have to treat them as strings.
Put apple-app-site-association
on the same hosting as your website. Make sure the URL schema is the one you use for your web domain.
Make a web page with one button that open's the needed URL.
It will try open the app using the Deeplink, otherwise it will open the app store. On Google we have to open the store manually. iOS should automaticall open App Store.
JS Code for the button:
tryOpen = ()=> {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (userAgent.match(/iPhone|iPad|iPod/i)) {
window.location = "https://artlink.app/app.html" + deepLinkQuery;
} else {
window.location = "colorfulcoding://colorfulcoding.com" + deepLinkQuery;
setTimeout(function () {
window.location = "https://play.google.com/store/apps/details?id=com.colorfulcoding.artlink";
}, 3000);
}
};