Menu

Expand
Rate this page:

Error 52134

Product: Notifications

Error - 52134

Invalid APNs device token

Possible Causes

  • APNs device token format is invalid.
  • Trying to use a development certificate for a production application or vice-versa.

Possible Solutions

  • Make sure you do not modify the device token before providing it to Twilio. If using a command line tool make sure to url-encode the token.
  • Make sure that you are using a development certificate for a development application and a production certificate for a production application.
    • If you are using a traditional certificate, you can tell its environment by looking at the common name field
      • For a development certificate, it will start with: Apple Development IOS Push Services
      • For a production certificate, it will start with: Apple Push Services
    • If you are using a universal certificate, you can use it for both development and production applications. However you have to make sure that you have properly indicated the type of application by setting the sandbox parameter when you create the credential. You can check the sandbox flag of your credential via the REST API.
Rate this page:

Thank you for your feedback!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more