Skip to content

Android Advanced Features

If your Email Service Providers (ESP) wraps links in your emails with their own domain, you can tell the MovableInk SDK to also handle those links.

To do this , you can pass a list of domains that you would like the sdk to handle:

 MIClient.registerDeeplinkDomains(
    listOf("example.io", "example.com")
 )

Setting content onto the clipboard after deeplinking

If you want to copy content to the users clipboard after resolving a deeplink, for example, you deeplink the user to a product to add to their cart with a coupon code. You can add that coupon code onto your URL and it'll automatically be copied onto the users clipboard for easy access.

By default, the SDK will look for the mi_pv query parameter, but you can configure this in the SDK if you want to use a different parameter name or an array of them if you have multiple use cases.

You can add your value to an MI Link, where CODE is the value that will be copied the clipboard:

https://mi.example.com/p/rpm/1234567890/url?url_sig=ASDFGHJKL&mi_pv=CODE"

You can also add it to your clickthrough URL as well:

https://example.com/products/12345?mi_pv=CODE

If you need to use a different key, you can tell the SDK about it:

 MIClient.validPasteboardValues(listOf("coupon_code"))

Now the sdk will search for that key. If you have an array of keys, the first one that's found in the URL will be used.

mi_pv will always take prescedence over any custom keys