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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -