iOS 建立遠距推播 App (三) p8 Key 申請

iOS 建立遠距推播 App (三) p8 Key 申請
要使用 iOS 的 APNs 服務在傳送推播訊息時,需先申請 token 才能使用,
以下為最簡單的申請方式.

(1) 到 Apple Developer 主頁中,Certificates, IDs & Profiles 區域有一個 Keys 選項
https://developer.apple.com/account/resources/authkeys/list
點選 Keys 旁 + 號新增.

(2) Key Name : 依個人需求填寫 ,Apple Push Notifications service 勾選

(3) 確認內容後,點選右方 Register


(4)產生並下載完成的 Key.

(5) 預設檔名為 AuthKey_******* : *******為 Key 的 ID,之後傳送推播時會用到,若有改檔名,需先另外記好.