在我的Apple开发者帐户中,我创建了一个用于在所有应用程序中使用APN的密钥.在创建时,它允许我在完成后下载它.之后,“下载”按钮显示为灰色,我无法再次下载.据推测这是设计的.
任何人都可以告诉我为什么它不允许像证书/配置文件那样第二次下载?
解决方法
您无法重新下载
IOS推送通知身份验证密钥. Apple和您保留并保护的私钥仅保留公钥.
请参阅文档部分Provider-to-APNs Connection Trust.
Token-based provider connection trust: A provider using the
HTTP/2-based API can use JSON web tokens (JWT) to provide validation
credentials for connection with APNs. In this scheme,you provision a
public key to be retained by Apple,and a private key which you retain
and protect.
创建Auth Key时也可以看到警告.
Download and Back Up After downloading your key,it cannot be
re-downloaded as the server copy is removed. If you are not prepared
to download your key at this time,click Done and download it at a
later time. Be sure to save a backup of your key in a secure place.