Push Notifications are not working in iOS Devices, token undefined

I looked through this issue on the tutorials but didn't found anything that solves my problem.

I've made the an application and added the development/production push notification certificate for iOS, but when I send a push from appery.io site, it gives me status "Error" with the following error "Device Token has a length of [9] and not the required 64 bytes! ", I checked the DB token value appears to be undefined.

Furthermore, in the database only one device is added, if I try the app in another iPhone it gives me success registration but no device is added to the DB, only accepts one row and the token value appears as "undefined" as well.

Looking forward for a reply. Thanks
1 person has
this problem
+1
Reply