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!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

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

Thanks for your feedback!

thanks-feedback-gif