Send custom key with notification and parse in the app - iOS

I have integrated the SDK and getting push notification to the listenser.

        let config = UAConfig.init()
        config.developmentAppKey = "xx-x-xx-x-x-x-x-x-x-x-x"
        config.developmentAppSecret = "xx-x-xx-x-x-x-x-x-x-x-x"


        UAirship.push().defaultPresentationOptions = [.alert, .badge, .sound]

Next step is I need to send some custom key and value to the notification when it reaches the app and I click on it, it should have listened in the app and to navigate to a particular page according to the key I received.

[In clear I will send an ID like an id: 1234 and it should be parsed when clicked the notification and it should go the page and display the contents in that id]

Didn't find what you were looking for?

New post


1 comment

  • Hi Muralidharan,

    I would recommend against using Custom Key and Values in your app to deep link to a page in your app.

    There is a way to set up your iOS app such that it uses DeepLink URLs.

    Once you set up those URLs in your app, it will be pretty simple to deeplink from a push.

    We have a guide for setting this up in your app in our iOS DeepLinking guide

    Comment actions Permalink

Please sign in to leave a comment.