最近,该应用程序无法收到通知,android端运行良好,但ios 1却失败了。
以下是我的尝试:
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.那么,我应该继续调试哪个方向,例如推送通知证书吗?我应该检查编码的哪一部分,因为它以前工作过,但最近才失败。
非常感谢。
发布于 2015-06-06 05:23:52
如果SNS端点在一段时间后被禁用,这意味着您的APNS证书有一些问题。您是错误地使用沙箱证书来刺激,还是相反?您有正确的证书和私钥组合吗?有关详细信息,请参阅http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html。
发布于 2015-11-27 06:41:33
过程获取privateKey.p12
要获得privateKey.p12,请下载APN(沙箱)证书并将其安装在krychain中。然后打开密钥链访问并展开证书,然后选择开发人员帐户持有人的名称(它将具有密钥和种类的图标为“私钥”),现在右键单击帐户持有人名称,然后单击导出(如果您想要输入密码文件,或者将其保留为空),则名称为privatekey.p12,并将其存储在桌面上。
根据需要选择消息格式,然后输入消息,然后单击“发布消息”。
发布于 2019-02-13 12:38:27
作出如下回应:如果您是从安卓消费,使用GCM或ios使用APNS_SANDBOX
$sns = AWS::createClient('sns');
$message = json_encode(['default' => '', 'APNS_SANDBOX' => json_encode($data), 'GCM' => json_encode(['data' => $data])]);
$sns->publish([
'TargetArn' => $arn,
'Message' => $message,
'MessageStructure' => 'json'
]);https://stackoverflow.com/questions/30679032
复制相似问题