60706: Invalid Push Token
MESSAGING
ERROR
This error occurs when you register an iOS device for push notifications and the PushToken value is empty or not a valid APNs device token. When you create an apn Binding, use the device token returned by iOS as the Binding Address.
- The app sent an empty
PushTokenvalue when it tried to register the device. - The app converted the APNs device token incorrectly. On iOS 13 and later, parsing
[deviceToken description]can produce an invalid token string. Build the token as a hexadecimal string from the raw bytes instead. - The app tried to create the Binding before iOS finished registering for remote notifications and returned a device token.
- The app's push configuration does not match the app build that generated the token, such as a bundle identifier mismatch.
- Wait until iOS successfully registers for remote notifications, then submit the returned device token when you register the device.
- For
apnBindings, send the APNs device token as the BindingAddress. Do not send an empty string, placeholder value, or a token from another push provider. - Convert the iOS
deviceTokenfrom bytes to a hexadecimal string. Do not rely on[deviceToken description]on iOS 13 and later. - Confirm that your Apple push setup uses an explicit bundle identifier that matches the bundle identifier in Xcode, then register the device again with a fresh token from that app.