Search code examples
iosobjective-capple-push-notificationsdevicetoken

device send what unique device certificate to APNS


i hava a question for APNs create Device Token. device token will change so it must have something to make that happened.

when device login APNS to ask device token what kinds of values it send ? for example :(phone number , time,Device Version)

can anyone helps?thank!


Solution

  • The device sends its certificate to APNS.

    Service-to-Device Connection Trust

    APNs establishes the identity of a connecting device through TLS peer-to-peer authentication. (Note that the system takes care of this stage of connection trust; you do not need to implement anything yourself.) In the course of this procedure, a device initiates a TLS connection with APNs, which returns its server certificate. The device validates this certificate and then sends its device certificate to APNs, which validates that certificate.

    ...

    APNs generates a device token using information contained in the unique device certificate. The device token contains an identifier of the device. It then encrypts the device token with a token key and returns it to the device.

    Source