I have already followed below setting
http://docs.urbanairship.com/platform/ios.html#push
and also can receive push notifications but cannot get any delegate to be called when the app is in the background - receivedBackgroundNotification is not called.
-Here's our code:
(void)receivedBackgroundNotification:(NSDictionary *)notification fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
// App received a background notification
NSLog(@"receivedBackgroundNotification fetchCompletionHandler");
// Call the completion handler
completionHandler(UIBackgroundFetchResultNoData);
}
Comments
5 comments