Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "keyID" when using APNs push service

Usually there are 3 info I need to provide, to use Apple APNs: key, keyId, teamId, like here.

I understand key (pem file location) and teamId, but where do I find keyId? Is this somewhere in https://developer.apple.com ? Is this the bundle ID?

enter image description here

like image 475
János Avatar asked Nov 15 '16 22:11

János


People also ask

What is APNs and how it works?

An Access Point Name (APN) a allows device's network to connect to the internet. With the APN settings in place, your device builds a connection to a carrier's gateway. Part of this process involves the carrier using a defined APN network to choose the assigned IP address(s) and security settings where applicable.

What protocol does APNs use?

0, HTTP/2 is the default protocol for connections to APNs. This means that all mobile device management (MDM) communication, such as remote commands, configuration profiles, applications, and push notifications, is handled by the HTTP/2 protocol.

Does APNs key expire?

No. APNs Auth Key will never expire as Apple suggests. It is now a more preferred way to handle Push Notifications than using APNs Certificate.


1 Answers

key: 'apns.p8',   // Path to the key p8 file keyId: 'ABCDE12345', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/authkey/) teamId: 'ABCDE12345', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/) 

You can find more on : https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/

like image 144
Dheeraj Singh Avatar answered Oct 05 '22 23:10

Dheeraj Singh