What are Mobile Deep Links and how they can be used in MOCA?
In the context of mobile apps, deep linking consists of using a uniform resource identifier (URI) that links to a specific location within a mobile app rather than simply launching the app. The notifications that can be sent via the MOCA console allow for URL and HTML content, so you can use Mobile Deep Links in this context.
Deeplinks in iOS:
Configuration for Mobile Deep Links in iOS requires of the Scheme URL definition within the info.plist:
Once you have defined the Scheme URL, you can use the variable name (e.g. fb) to launch the content into a specific location/app. In iOS you are using the openURL application method, thus all security constraints of this method have to be observed (i.e. you cannot use deep links that are not declared in the .plist as this can be used maliciously).
Deeplinks in Android
Mobile Deep Links in Android require that you create an intent filter that contains the elements and attributes in your Android manifest:
It is highly recommended to define the Activity launchMode as "singleTop". You can find more information in the official training resources for Android Developers.
NOTE: It is recommended to use the URL option in the Console to invoke deep links. If you want to use the HTML option, please use this URL so the SDK can intercept the call and make it work as expected on all platforms: <a href=“mocasdk://goto?url=yourdeeplink”>deeplink description</a>.