Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS swift How to create .p8 file?

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

like image 500
Kushal Maniyar Avatar asked Jun 19 '17 13:06

Kushal Maniyar


People also ask

What is a .p8 file?

A P8 file contains source code written in PICO-8, which is a language used to program 8-bit retro-style games that can be played with the PICO-8 virtual fantasy gaming console.

What is the use of p8 file in IOS?

p8 Apple Push Notifications service (APNs) is created in the Apple developer account “keys” section. it is useful for handling the push notification for All bundle Id that is registered in developer account & there is no issue of expiry.


1 Answers

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.

like image 199
Krunal Avatar answered Oct 03 '22 21:10

Krunal