且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重复的 Apple APNS 推送通知?

更新时间:2023-12-03 16:44:04

你能重现这个问题吗?如果它不是生产服务器,您应该尝试向通知添加标识符.还要检查用户是否在您的数据库中没有多次登录.例如.使用 Twitter、Facebook 和密码等,并且都具有相同的设备令牌.

Are you able to replicate this issue? You should try and add identifiers to notification if it's not a productions server. Also check if user doesn't have mutiple logins in your database. For eg. With twitter, Facebook and password etc and all have same device token.

前一段时间遇到了类似的问题,我发现这些用户在他们的手机上除了最终版本之外还有多个版本的 Beta iOS 固件,这导致 Apple 服务器多次向同一设备 ID 发送相同的通知.

Had a similar issue some time back and digging deep I found that these users had multiple editions of beta iOS firmware on their phone beside final version and this was causing apple servers to send same notification to Same device ID mutiple times.

有些博客有针对消费者的说明,而我们能做的却很少.

Some blogs have instructions for consumers out there and very litte we could do.