ios - didReceiveRemoteNotification fetchCompletionHandler is not getting called in background for silent push -


so have added didreceiveremotenotification delegate handle silent push notification

- (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo fetchcompletionhandler:(void (^)(uibackgroundfetchresult))completionhandler

this method should invoked in background update content before notifying user, user can open application , presented new content immediately.

but method never getting called in background. have tried debug issue no success. surprisingly method getting called if app in foreground , able check content-available update ui.

can please me issue why didreceiveremotenotification:fetchcompletionhandler not getting called in background ?

enable 'remote notifications' in 'background modes' of 'capabilities' tab in xcode.

for more information see link

hope helps.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -