简体   繁体   中英

How to send a test deep link in urban airship

Im having issues trying to find out how to send a test deep link message via urban airship.

In my production urban airship account I can clearly see a section where i can create messages with deep links:

在此处输入图片说明

But in my development urban airship account there is no section to add this deep link message - the only access I have is to a basic test harness like below:

在此处输入图片说明

Do you not have access to the deep linking options for a reason? Im assuming I could even send a deep link by modifying the raw payload - but i cant see any docs on this.

Can someone point me into the right direction in regards to this - would be much appreciated.

You need to pre-configure a deeplink for it to appear as an option (both in production and test). To do so go to the Settings (at the bottom of the left panel) and then Configuration. Make sure that in the "Composer configuration" "Landing Page, Deep Link, URL, and Add Tags" is ON. Under the Deep link tab press "News deep link". The name is what will appear later on in the message composer and the url is what information you'll want to send to the app through the notification. Read more bout it here: http://docs.urbanairship.com/user-guide/message-composer.html#configure-deep-links

For the iOS implementation read this: http://docs.urbanairship.com/topic-guides/ios-deep-linking.html#customizing-the-deep-link-action

You can also add the 'extra' param in the payload on the 'Test Push' page ( https://go.urbanairship.com/apps/.../test/push/#ios ). UA uses the key "^d" for deeplinks:

{
    "audience": {
        "device_token": "..."
    },
    "notification": {
        "alert": "Test",
        "ios": {
            "extra": {"^d":"..."},
            "badge": 0
        }
    },
    "device_types": [
        "ios"
    ]
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM