The inspiration for this method comes from Firebase's getInitialMessage. It is a good way to accomplish deep-linking from a Push Notification.
For example, I want to send a push notification to the users of a chatroom, that a new message was posted. I would also like for my users to be navigated to that chatroom when they tap on the notification. With this implementation, I can add data that can be used by my app to do the navigation, in the Push Notification message inside the data part of it.
The inspiration for this method comes from Firebase's
getInitialMessage
. It is a good way to accomplish deep-linking from a Push Notification.For example, I want to send a push notification to the users of a chatroom, that a new message was posted. I would also like for my users to be navigated to that chatroom when they tap on the notification. With this implementation, I can add data that can be used by my app to do the navigation, in the Push Notification message inside the
data
part of it.TLDR; Send this message via pusher:
And you can get it if the user opens the app by tapping on the notification:
We already use this patch in our production app, it would be nice to switch back to the official version