简体   繁体   中英

Open the particular page on click the pushwoosh notification

I am using the cordova based pushwoosh plugin in my ionic app. It is used for getting push notification. When I click the push notification it is open the app in home.html view but I want to some other page like contact.html. So how can I achieve this?

You can use Custom data feature in Pushwoosh.

  1. Custom Data in Pushwoosh
  2. Using Custom Data

Custom data feature would do the trick. It allows to send a "key":"value" pair (please see screenshot attached) for application to process when user taps on the notification. 在此处输入图片说明

For instance, in our Android demo application (you can download it in Google Play), you can change the background color with the following custom data: { "r" : "0 - 255", "g" : "0 - 255", "b" : "0 - 255" }

Ref: https://community.pushwoosh.com/questions/751/open-a-page-inside-the-app-after-receiving-app-phonegap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM