Hi, has anyone managed to implement universal links in their mobile app. Universal links means, you can have a single link that will either open your app or your website, if the app isn't installed. Would love some more info on this?
I've done this successfully (and it's something I'm working on documenting in more depth). Here's an informal write-up for now:
Here are a few videos of iOS (sorry about the styling!)
I had to build my apps locally, because PhoneGap Build apparently doesn’t run “hooks” in plugins when building apps. These hooks are used by the universal link plugin to add “entitlements” to the iOS and Android apps, which register them with the operating system as listeners for certain types of links.
I created the apple-app-site-association and assetlinks.json files somewhat manually. XCode and Android Studio helped with this a bit, but also I think a Mendix module could dynamically generate these using a request handler and some constants.
I modified the DeepLink module (maybe 4 lines of code) to handle the PUT verb. (see StartDeepLink.java:275, 337 my test project)
Android was opening an app multiple times, so I needed to add a preference to my config.xml file: here