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!
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.
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.
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? 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.
Try to move your dictionary entry for view outside of the "aps" dictionary.
{
"aps":
{
"alert": "look at this stuff"
}
"view": "wc1"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With