didReceiveRemoteNotification:fetchCompletionHandler not being called when app is in background and not connected to Xcode

前端 未结 10 1707
别那么骄傲
别那么骄傲 2020-11-28 04:27

I\'ve a very strange problem, I implemented:

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchComp         


        
10条回答
  •  天命终不由人
    2020-11-28 05:17

    To use Background Push Download in iOS application development, here are some important points which we need to follow…

    1. Enable UIBackgroundModes key with remote-notification value in info.plist file.

    2. Then implement below method in your AppDelegate file.

      application:didReceiveRemoteNotification:fetchCompletionHandler

    More Details:ios-7-true-multitasking

提交回复
热议问题