i facing problem push notifications in ios.
my app receives silent push notifications containing identifier. identifier used fetch data remote server local notification created.
as far i'm aware, if user has force-quit app (i.e. double tapping home button , swipe closing app) silent push notification not passed onto didreceiveremotenotification method in appdelegate class [1] [2], preventing app doing kind of processing.
i have done fair amount of research handling situation mentioned above. however, unable find definitive answer , hoping me out or point me in right direction.
tldr: should when user has force-quit app, still need process silent notification?
further information:
app needs support ios8+.
the notification payload
if target app isn’t running when notification arrives, alert message, sound, or badge value played or shown. if app running, system delivers notification app delegate nsdictionary object.
previously in ios 7 , before, once user force-quit app, not able run , background tasks @ all, including location monitoring, push notification handling content-available:1
etc.
however problem such behavior not documented. reason may change in new ios update , apple doesn't want nail coffin early. in ios 8, pushkit
introduced , supposed able deal force-quit scenario. please check tutorial details: https://zeropush.com/guide/guide-to-pushkit-and-voip