Friday, October 30, 2015

iOS Push Notification - Debugging

Since the app is not receiving the valid push notification token from OS, there are a few reasons why the APNS token does not get delivered to the app. One of them is network is blocking the 5223 for inbound and outbound TCP/TLS traffic. 

If still not receiving the notification, we can figure out few things by installing a debug profile at the link below, which will let us give the device level Apple Notification server connection logs


Once installed, please restart the device while connected to Xcode, Once the device powers up and app is launched, we can see the logs in the Xcode console.

In the log, there will be logs from the process “apsd” which will help us analyze what is happening. 


If would prefer to delete the is profile at later point, can do this by navigating to Settings > General > Profiles  Delete APS logging profile. 

References:

No comments:

Post a Comment