I am trying to implement a sampling completion block with no luck. Whenever I submit an APN, xcode still complains that it is not implemented. Here is my code
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) { println("2. User Data", userInfo) completionHandler(UIBackgroundFetchResult.NewData) }
and the warning I get in the xcode console is
Warning: Application delegate received call to -application:didReceiveRemoteNotification:fetchCompletionHandler: but the completion handler was never called.
Not sure if I implement the correct syntax here
source share