iOS swift How to create .p8 file?

Kushal Maniyar picture Kushal Maniyar · Jun 19, 2017 · Viewed 22.3k times · Source

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?enter image description here

Answer

Krunal picture Krunal · Jun 19, 2017

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.

enter image description here

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

enter image description here

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

enter image description here

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.