Pushkit not calling delegate methods upon reception
| Originator: | |||
| Number: | rdar://20166597 | Date Originated: | 15-Mar-2015 04:36 PM |
| Status: | Open | Resolved: | |
| Product: | PushKit | Product Version: | |
| Classification: | Reproducible: |
Summary: Our PushKit notifications are normally running without a problem, but occasionally notifications suddenly stop being received by the app and all notifications we send to the app disappear, until we quit the app and restart it by hand. From then on, any subsequent notifications are being received, but the ones that disappeared are never seen again. In short we never see the delegate being called in this situation: `pushRegistry:didReceiveIncomingPushWithPayload:forType:` When the problem is present I manage to restart to be notified again, when I change the phone's connectivity. Indeed when I disable/enable wifi on the device and I see the delegate being magically called again. Also I don't know if it's related but I've notifications on battery related events in my app (UIDeviceBatteryLevelDidChangeNotification), and when I'm stuck with the PushKits not being forwarded to my app, the delegate is immediately called again when battery related events are sent by the system. Steps to Reproduce: Could not find a way to easily reproduce the issue. Expected Results: `pushRegistry:didReceiveIncomingPushWithPayload:forType` Should be normally called Actual Results: `pushRegistry:didReceiveIncomingPushWithPayload:forType` is not called Version: iOS 8.1.2, iOS 8.2 Configuration: Any iPhone but but tests are on iPhone 6 & 6 Plus (WiFi & Cellular)
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!