File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
SimulatorRemoteNotifications Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,15 @@ - (void)listenForRemoteNotifications {
53
53
} else if (![dict isKindOfClass: [NSDictionary class ]]) {
54
54
NSLog (@" SimulatorRemoteNotification: message error (not a dictionary)" );
55
55
} else {
56
- if ([self .delegate respondsToSelector: @selector (application:didReceiveRemoteNotification:fetchCompletionHandler: )]) {
57
- [self .delegate application: self didReceiveRemoteNotification: dict fetchCompletionHandler: ^(UIBackgroundFetchResult result) {}];
58
- }
59
- else if ([self .delegate respondsToSelector: @selector (application:didReceiveRemoteNotification: )]) {
60
- [self .delegate application: self didReceiveRemoteNotification: dict];
61
- }
56
+ #ifdef __IPHONE_7_0
57
+ if ([self .delegate respondsToSelector: @selector (application:didReceiveRemoteNotification:fetchCompletionHandler: )]) {
58
+ [self .delegate application: self didReceiveRemoteNotification: dict fetchCompletionHandler: ^(UIBackgroundFetchResult result) {}];
59
+ }
60
+ #else
61
+ if ([self .delegate respondsToSelector: @selector (application:didReceiveRemoteNotification: )]) {
62
+ [self .delegate application: self didReceiveRemoteNotification: dict];
63
+ }
64
+ #endif
62
65
}
63
66
});
64
67
dispatch_source_set_cancel_handler (input_src, ^{
You can’t perform that action at this time.
0 commit comments