Can't use PersistentConnection logger to debug push notifications
| Originator: | IMGroxx | ||
| Number: | rdar://12605604 | Date Originated: | 30-Oct-2012 07:50 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone/iPod Touch | Product Version: | iOS 6.0 |
| Classification: | Reproducible: |
Summary: Installing the PersistentConnectionLogging mobile configuration to debug push notifications does not create relevant log files. I am running an iPod Touch 4th gen, with a normal release of iOS 6.0. Steps to Reproduce: 1) Follow steps described in tech note 2265 under "Observing Push Status Messages" to enable logging for iOS: https://developer.apple.com/library/ios/#technotes/tn2265/_index.html (in summary, install the PersistentConnectionLogging.mobileconfig, reboot the device, exercise app, watch logs) Expected Results: Log lines from an "apsd" process. A PersistentConnection log (or multiple) should have been created and logged to. The documentation is not specific, but it appears that this should create a folder and multiple log files. Actual Results: No logs of any kind by "apsd" process, no PersistentConnection logs, and multiple warning-level logs which state that the log could not be created (repeated multiple times in a row each) of three different kinds (that I have noticed). The complete log after a reboot is attached, but example lines are: 1) Oct 30 19:40:14 [removed device name] passd[194] <Warning>: Unable to open logging file '/var/mobile/Library/Logs/PersistentConnection/com.apple.passd-passd-APSClient.log' 2) Oct 30 19:31:51 [removed device name] syncdefaultsd[183] <Warning>: Unable to open logging file '/var/mobile/Library/Logs/PersistentConnection/com.apple.syncdefaultsd-syncdefaultsd-APSClient.log' 3) Oct 30 19:31:50 [removed device name] SpringBoard[65] <Warning>: Unable to open logging file '/var/mobile/Library/Logs/PersistentConnection/com.apple.springboard-SpringBoard-APSClient.log'
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
It is working!
Even though the provisioning is not signed correctly, using it does enable push notification logging. Let iTunes pull the crash logs from the device syncing it and check out the log files under
~/Library/Logs/CrashReporter/MobileDevice//PersistentConnection/
The Signing Certificate is expired.
The root cause should be the PersistentConnectionLogging.mobileconfig (at the page https://developer.apple.com/library/ios/#technotes/tn2265/_index.html) is expired.
While you install the mobileconfig file, you can see the file is Not Verified, click the more detail at the bottom, then you can see the signing certifiate is expired at 2012/5/2.
So we need Apple to provide a new signed PersistentConnectionLogging.mobileconfig to get the log work.