iOS 8.1.2 Remote Notification Issue When App Is In The Background - ios

I am having issues with processing push notifications in the background on iOS 8.1.2, specifically on the iPhone.
So basically, when I send a push notification to my iPad (running iOS 8.1.2), the method application:didReceiveRemoteNotification:fetchCompletionHandler: always gets called whether my app is running in the foreground or suspended in the background. However on my iPhone (also running iOS 8.1.2) the method only gets called when my app is in the foreground.
Has anyone experienced this problem before, or maybe know the solution?
FYI, my app already has the remote-notifications background mode enabled and I have added content-available = 1 to the notification payload. I am also sending the push notifications on a production environment.

Related

iOS remote notification type

Is there any apns push that can wake application up, do something in background and keep silence?
I found two solutions, but still not perfect:
Background notification. It can wakes app up in the background and gives it time to do something, but Apple doesn’t guarantee the delivery and it can't work after device is rebooted
UNNotificationServiceExtension. It can wakes app up and do something in the background, even if the device is rebooted. But, it can't be silent.
Our flow on iOS was:
Receive remote notification
Download data from server
Determine whether to notify from the content of the data
In iOS 12, our solution is PushKit, but it has some restrictions in iOS 13 now, so we have to make some changes.
Could anyone give me some advice, please? Thanks.

iOS 11 CloudKit Record changes notifications not received in Single App or Guided Access Mode

In iOS 11, no CloudKit record change notifications are received when the app is in Single App Mode (SAM) or Guided Access Mode (GAM).
The foreground app would be receiving silent notifications just fine and updating the UI, but once I put it in GAM or SAM, didReceiveRemoteNotification is not called (neither the background method nor the older foreground-only method).
I have an iOS 9 iPad in Single App Mode (SAM) that receives all the CloudKit notifications, and I remember my iOS 10 iPad also worked, so this is an iOS 11 issue.
I wonder if Apple is disabling push notifications in general if a device is in SAM or GAM?
This appears to be fixed in the newest iOS 11.2.5 beta 4. Will wait for the GM release of 11.2.5. Thanks!

After upgrade to iOS 11, iOS App not receiving APNS message when in Background

After upgrading iOS device to IOS 11 Beta version, my app has stopped receiving APNS message when it is in background. It does receive the message when it is in foreground. As per the device logs, APNS messages are being delivered to the device and are available in the notification center.
Has anyone experienced this issue?
This seems to be the global thread to jump onto. Not resolved, but has to do with iOS11 throttling / no-delivery of notifications in certain circumstances. Actually a lot of circumstances.
Very painful, as we depend on the delivery of silent pushes when app is active.
Silent pushes not delivered to the app on iOS 11

iOS silent notifications for killed apps after device restart

According to the documentation silent notifications are processed by the delegate application(_:didReceiveRemoteNotification:fetchCompletionHandler:) also when the app is in "Not Running" state. This behavior does not apply if the app was force-quitted by the user.
But the documentation mentions that if the device has been restarted after a force-quit, the notification will trigger again the app launch on the device.
Excerpt from the documentation:
... However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.
Can anyone confirm this to be working (maybe with earlier iOS versions)?
My experience (using iOS 10.x) is that if the app was force-quitted the app won't be restarted even after (multiple) device reboot.

iOS silent push notification only works when connected to xcode

I have an odd issue.
I recently updated my Xcode to 6.1.1 to make a change to an app I previously released with Xcode 5 (working great). Now for some reason with the new Xcode when I test my background silent push notification it only completely works when I have my iPhone connected to my Mac?
What the app does is when it gets a silent push the app retrieves data from a server. I added the default sound to the silent push for testing, and I've confirmed that the app does get the push but it does not connect to the server to get the new data. But if I plug in the lightning cable to my mac everything works great, gets data from server etc.
I'm not sure what to do? Any ideas or direction is greatly appreciated.
Thanks!
I got no problem to send silent push to my app, even if the app is not connected to Xcode BUT you have to notice that silent push notification is being delivered only if your app is running in the background. If you force quit your app using double tap on iPhone home button, the notification is ignored.
It is probably an Apple rule to let user completely kill an app and stop any outgoing/incoming connection

Resources