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

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

问题描述

最近该应用程序无法接收通知,android端工作正常,但ios one失败

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天全站免登陆