Ios notification push requires a push certificate, which is different from the packaged certificate. Here is a brief introduction to the general process. The following is omitted as part of the process for packaging certificates. I suggest you read this article first. For those interested in ios packaging certificates, see this article
1 Creating an Appid
When creating Identifiers, check the Push Notificaton option;
2 P12 creates a push certificate
In Certificates click ‘+’ Create, Services select push Certificates for different scenarios,”
Apple Push Notification Service SSL (Sandbox) MacOS Apple Push Notification Service SSL (Production) Production environment Apple Push Notification Service SSL (Sandbox & Production common environment, that is, development and Production environment can be usedCopy the code
You are advised to select a common environment. After selecting the App ID that you want to use the push certificate, click the Continue button. Click Choose File to upload the CSR File (certificate request File). After selecting the CSR file, click the Continue button. Certificate request file configuration Click Download file (suffix:. Cer file), double-click the downloaded. Cer file, and it will be automatically imported through the key string. Note: there is a small triangle mark on the left of the valid certificate, which means that the certificate has a corresponding secret key. Remember to close the small triangle mark when exporting. The name of the valid Push certificate is Apple Push Services or Apple Development IOS Push Services. The Apple Push Services name is the universal environment Push certificate. Apple Development IOS Push Services is named after the Development environment Push certificate. In the keystring certificate, click Keystring – Logon – Type certificate on the left, find the certificate you just imported, right-click export. P12 certificate, and set a password for it.
3 The P8 certificate (APNs Auth Key) is created
In the Apple Developer account -Certificates, Identifiers & Profiles, select the Key on the left and click + New. Fill in Key Name, check Apple Push Notifications Service (APNs), and click the Continue button. Click Register button to create successfully, click Download button to Download. Note: can only download once, please keep it safe. The whole process of certificate push is completed. The omitted part has been introduced in detail in the last ios packaging certificate article, so the repeated content will not be described.