本文介绍了什么是“keyID"?使用APNs推送服务时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通常我需要提供 3 个信息才能使用 Apple APN:key、keyId、teamId
,例如
解决方案
key: 'apns.p8',//关键 p8 文件的路径keyId: 'ABCDE12345',//p8 文件的密钥 ID(可在 https://developer.apple.com/account/ios/authkey/获得)teamId: 'ABCDE12345',//您的 Apple 开发者帐户的团队 ID(可在 https://developer.apple.com/account/#/membership/获得)
您可以在以下位置找到更多信息:https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/
Usually there are 3 info I need to provide, to use Apple APNs: key, keyId, teamId
, like here.
I understand key
(pem file location) and teamId
, but where do I find keyId
? Is this somewhere in https://developer.apple.com ? Is this the bundle ID?
解决方案
key: 'apns.p8', // Path to the key p8 file
keyId: 'ABCDE12345', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/authkey/)
teamId: 'ABCDE12345', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/)
You can find more on : https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/
这篇关于什么是“keyID"?使用APNs推送服务时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!