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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -