Redirect to a specific page after receiving push notification


#1

Hello there, is there a way with ionic to bring the user to a specific page or tab when opening the app through the notification?

I send the push, the smartphone is in standby and the user accesses the app tapping on the notification just arrived. Actually the app opens it index page, but I want it opens a destination page chosen by notification.


#2

Many of the Push Notifications (like Pushwoosh and others) allow you to specify some JSON as custom data in the push notification. The JSON doesn’t get displayed but it does give you a way to pass in something that you could use to do a $state.go(…) with in the beforeEnter event of your view that’s displayed when index.html loads for the first time.