Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deep Linking iOS Push Notifications

I'd like to be able to send the viewer to a specific view in the app when they get the push notification, based upon what I send them.

    "aps": {
        "alert": "look at this stuff",
        "view": "wc1"
    }

the view 'wc1' is just a tag in a collection view. So what i'd really like to know is, if the user is deep in my app, and they receive a push notification, how do I send them back to the collection view screen.

I've come across the term deep linking, but not been able to find anything on it thus far. Any direction would be really helpful. Thanks!

like image 604
James Dunay Avatar asked Sep 30 '13 22:09

James Dunay


People also ask

What is a deep link in push notifications?

Deep Links. iOS, Android. Deep linking into a specific location within the app is a very common thing when sending a push notification. There are two options below, the first being easier to setup and the second registers the deep link at the mobile OS level to which can be used for more than notifications.

Can I use a deep link in an iOS app?

You should be able to use the same schema (pre-defined paths for presenting deep linking to a user) as your email or third party deep links. By default, iOS apps can open HTTPS URLs, but not HTTP.

How do I handle open url actions in push notifications?

Push notifications and action buttons may have openUrl actions attached to them. When a URL is specified, the SDK first calls the urlDelegate object specified on your IterableConfig object. You can use this delegate to handle openUrl actions the same way as you handle normal deep links.

What is a deep link?

What is a deep link? Generally, a deep link is a type of link with a custom scheme for taking users to a specific point or content in the app. In our case we want our users to be taken to the details page of our app.


1 Answers

Try to move your dictionary entry for view outside of the "aps" dictionary.

{
    "aps": 
    {
        "alert": "look at this stuff"
    }
    "view": "wc1"
 }
like image 180
Stephen Johnson Avatar answered Sep 27 '22 21:09

Stephen Johnson