iOS swift How to create .p8 file?

耗尽温柔 提交于 2019-12-10 14:13:09

问题


I am working with Pushy Notification where I need to register with the p8 file. So how can I create that p8 file from developer account?


回答1:


Follow these steps:

Generate an APNs Auth Key
Open the APNs Auth Key page in your Developer Center and click the + button to create a new APNs Auth Key.

In the next page, select Apple Push Notification Authentication Key (Sandbox & Production) and click Continue at the bottom of the page.

Apple will then generate a .p8 key file containing your APNs Auth Key.

Download the .p8 key file to your computer and save it for later. Also, be sure to write down the Key ID somewhere, as you'll need it later when connecting to APNs.

Send Push Notifications

Ref: APNS (Configure push notifications)

Important: Save a back up of your key in a secure place. It will not be presented again and cannot be retrieved later.




回答2:


First login Apple developer a/c. Go to Keys option, click + button

Than on next page, enter valid Name, check Push notification option and click, click continue, click download button, It will download .p8 file.



来源:https://stackoverflow.com/questions/44631803/ios-swift-how-to-create-p8-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!