10

I'm trying to test out the silent push notification and I notice that my Iphone (IOS 8) can only receive silent notifications when my device is connected to Xcode. While it is unplugged, I can only receive one silent push in probably 5-10 tries. This only happen to IOS 8 because I have another phone which is running on IOS 7 and not even a single silent push is missed. Anyone face the same issue ?

More details: If the phone is connected to power source, I'm able to get silent push notifications perfectly...

10
  • Hey Steven, did you find an answer to this issue? I am running into a similar situation with and iPhone5 + iOS8 and it seems that is related to power management. Does not happen in iPhone 4s iOS7.1. Have you had any luck?
    – izk
    Commented Feb 20, 2015 at 17:01
  • Did you find an answer to this issue? I'm running into the same problem where the silent notification will not work unless I'm running the application via Xcode to my device.
    – Sandy D.
    Commented Mar 3, 2015 at 16:45
  • Me too. It's wired. What's the difference between connecting to Xcode and unconnecting...
    – Robasan
    Commented Mar 18, 2015 at 11:23
  • My problem is that device can receive silent notifications. But application:didReceiveRemoteNotification:fetchCompletionHandler: is not called.
    – Robasan
    Commented Mar 18, 2015 at 11:42
  • When I run the app with connecting to Xcode, application:didReceiveRemoteNotification:fetchCompletionHandler: is called. It's very wired.
    – Robasan
    Commented Mar 18, 2015 at 11:43

4 Answers 4

1

I have encountered similar issue. If my iPhone connects to the Xcode, it can be woken up successfully by silent push notification. However, if it disconnects to the Xcode, silent push notification can ONLY be received without being woken up to perform background fetch.

The root cause for my case is that I turned off the "Background App Refresh" on my device. ("Settings > General" > "Background App Refresh")

After I turn it on, my iPhone can work as expected again.

Good Luck!

1

Seems like you are using Debug certificate while interacting with APNs from the server side. And it only works while a device is in the debug mode.

For untethered push notification handling, you need to use Release certificate.

This article would give a better understanding on using certificates with APNs: https://quickblox.com/developers/How_to_create_APNS_certificates

0

Sounds like a network issue to me. Are you sure that the PNs are actually delivered to your phone?

You could disable cellular radio (PNs are always delivered over cellular data even if on wifi) and use, e.g., tcpdump in promiscuous mode on your local wifi in order to see if there's anything coming in. Just look for packets from 17.x.x.x. Apple warned us they'd rate limit silent PNs, maybe that's the issue here (while that wouldn't really explain why it works while your phone is plugged in).

2
  • Thanks for the reply, yes, I'm sure that it is delivered to my phone while it's connected to Xcode or power source. I've added a LocalNotification into didReceiveRemoteNotification:fetchCompletionHandler to present a local notification the moment I receive a silent push. Also, when this method is called, it will also report some information back to the server via HTTP and therefore I can track by tailing my server log.
    – Steven
    Commented Jan 31, 2015 at 1:24
  • Not network issue. iOS receive silent push notification and display it. But application:didReceiveRemoteNotification:fetchCompletionHandler: is not called without power source.
    – Robasan
    Commented Mar 18, 2015 at 11:57
0

I know this questions is old but, according to Apple documentation, receiving and processing of silent push notifications depends on the conditions of the system, so I think that because you have a power supply, device will not throttle the delivery of notifications. Here is what Apple says:

Important

The system treats background notifications as low-priority: you can use them to refresh your app’s content, but the system doesn’t guarantee their delivery. In addition, the system may throttle the delivery of background notifications if the total number becomes excessive. The number of background notifications allowed by the system depends on current conditions, but don’t try to send more than two or three per hour.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.