开发者

Filtering Apple Push Notification

I got APNS working perfectly, after many issues with SSL.

Now, I was wondering how I can filter the notifications sent to the devices. I have to do it server-side, or client-side (app) ?

For example, a S开发者_如何学运维occer app that sends the latest game scores to the registered devices. By default, my device shows all notifications sent by APNS (all scores). What if I want to receive only Real Madrid scores, because I'm a Real Madrid fan?

I keep APNS sending all scores, and I implement the filter in client, or I have to filter in the server side, sending specific payloads to specific devices?


Definitely the server side. Apple specifically state that sending large numbers of notifications to devices that don't want to receive them (either not relevant, or push not enabled etc) - is a bad practice.

Not to mention - if your volume picks up in terms of userbase, you don't want to flatline your link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜