iOS swift 如何创建 .p8 文件? [英] iOS swift How to create .p8 file?

查看:63
本文介绍了iOS swift 如何创建 .p8 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

解决方案

请按以下步骤操作:

生成 APNs 身份验证密钥
在开发者中心打开 APNs Auth Key 页面,然后单击 + 按钮创建一个新的

在下一页中,选择 Apple Push Notification Authentication Key (Sandbox & Production) 并点击页面底部的继续.

Apple 随后将生成一个 .p8 密钥文件,其中包含您的 APNs 身份验证密钥.

.p8 密钥文件下载到您的计算机并保存以备后用.另外,请务必在某处写下密钥 ID,因为稍后连接到 APN 时您将需要它.

发送推送通知

参考:APNS(配置推送通知)<块引用>

重要提示:将您的密钥备份保存在安全的地方.不会再次呈现,以后也无法检索.

I am working with

解决方案

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.

这篇关于iOS swift 如何创建 .p8 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆