亚马逊 sns(推送通知)不发送到 IOS 应用程序 [英] Amazon sns (push notification) does not send to IOS application

查看:34
本文介绍了亚马逊 sns(推送通知)不发送到 IOS 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近app收不到通知,android端正常,ios端失败

Recently the app can not receive notification, the android side works fine but the ios one has fail

所以这是我的尝试:

1) generate token from apple apn service
2) create the endpoint at amazon backend
3) publish the message at amazon backend
4) it does not receive message and the endpoint will go to disabled after a while.

我检查了以下内容:

1) try serveal ios device , including iphone/ ipad/ipod touch also the same result
2) checked the secret key/ platform arn it is matched
3) created another platform ARN but still the same.

那么,我应该继续往哪个方向调试,例如是推送通知证书吗?我应该检查编码的哪一部分,因为它以前有效,但最近才失败.

So , what direction should I continue to debug , e.g. is the push notification cert ? which part of coding should I check, as it works before but only fail recently.

非常感谢.

推荐答案

如果 SNS 端点在一段时间后被禁用,则意味着您的 APNS 证书有问题.您是否错误地将沙箱证书用于生产,反之亦然?你有正确的证书和私钥组合吗?请参阅 http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html 了解更多信息.

If the SNS endpoint is disabled after a while, that means your APNS certificate has some issue. Do you mistakenly use a sandbox certificate for prod, or visa versa? Do you have the right certificate and private key combo? See http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html for more information.

这篇关于亚马逊 sns(推送通知)不发送到 IOS 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆