简体   繁体   中英

APNS Change Notification Messages

I can receive push notification by APNS. I want to change this notification messages according to devices. For example i send "Hello username" messages to 2 devices. The first devices username is "Jack" and other ones username is "Jon". I want to show notification "Hello Jack" in devices 1 and show "Hello Jon" in device 2. Is that possible ?

you need to make relation with userName and device token at server side. When user(iOS client) sends device token to register it you need to store device token with user name. When you are sending payload to apns from server make the changes basis on device user name.

在将这些消息发送到相应设备之前,您必须在服务器上配置这些消息。

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