We are running into an issue with push notification. We are sending alerts to iPad app through apple sand box. From our C# console, it connects to APNS (TCP/IP), authenticates SSL and sends notification. But the device didn't 开发者_JAVA技巧receive anything. Certificate(.pem) generated for development environment and we are sending the notification in ByteArray format. Is there a way to validate the device token?(meaning are we targeting the right device). Also how to retrieve the status through enhanced notification format. Any feedback/suggession would be of great help. Thank you
A couple questions:
- How are you sending the notification in byte array format?
- Isn't the Notification just a string formatted as Json?
A couple things you should be doing:
- Also you can be using the development certificate but in your code you've not set the environment to be sandbox.
- And most importantly you should be using a .p12 file as your certificate not a .pem file.
Hope that helps.
精彩评论