CleverTap Push Notification APNs Bad Device Token

Jerry PM
2 min readSep 10, 2021
Source: Author

I get new task for adding new analytic platform to my project. When I testing push notification from Clevertap dasboard I get some bug when send push notification, and this response error clavetap “APNsBadDeviceToken (1)” number in brackets is how much device error in same time.

First you have to make sure the certificate registered is correct, to fixing this bug :
1. Clevertap dasboard https://eu1.dashboard.clevertap.com/
2. Setting -> Channels -> mobile push -> select tab IOS
3. They a recommend to use APNs Auth key

Now test notification with personal user again (segment ->find people) klik send push notification icon in the table below

Source: Author

If notification is success it will be like this image. This doc (https://developer.clevertap.com/docs/ios) will help you understand why this bug is happening or you can check github clevertap (https://github.com/CleverTap/clevertap-react-native/issues/136#issuecomment-794749653)

Source: Author

Note: when events clevertap reach the limit, example 512/512 you can not add new custom event, solution delete custom event in settings/schema /events tab `custom event`.

Source: Author

--

--