OGeek|极客世界-中国程序员成长平台

标题: ios - azure-notificationhubs-无法上传沙盒证书 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 22:25
标题: ios - azure-notificationhubs-无法上传沙盒证书

我正在 Xamarin.iOS 上集成推送通知系统。我已经浏览过 Azure 提供的文档:xamarin notification hubs ios push notification apns get started

但是,当我尝试将 SSL 证书从 Apple 上传到 Azure 门户时,发生了错误。

{"error":{"message":"SubCode=40000. Failed to validate credentials with APNS. 
  A call to SSPI failed, see inner exception...TrackingId:bac2701d-0185-453a-8ad8-43936dcaa6c9_M4SN1_M4SN1_G3,
 TimeStamp:3/11/2019 4:23:18 AM","code":"BadRequest"}}

是的,只有在我选择 Sandbox 时才能重现该错误。 对于生产,可以上传相同的证书。 这很奇怪,我很确定证书是开发的,而生产 SSL 证书是空的。

有人可以帮忙吗?非常感谢您。



Best Answer-推荐答案


我从昨天开始遇到同样的问题。 我发现的唯一替代方法是通过使用“ token ”方式将 Azure 通知中心连接到 APNS 来解决错误/问题。

  1. 在您的 Azure 门户 > 通知中心 > Apple (APNS) 中,单击“身份验证模式”下的“ token ”
  2. 填写如下表格(这里写的ID和Token不是真实数据) enter image description here

如果您不熟悉在 this documentation 的第一部分之后检索这些信息有帮助。 将指令转置到 Azure 通知中心非常简单。

希望对你有帮助。

关于ios - azure-notificationhubs-无法上传沙盒证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55113107/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4