File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ extern NSString *const RNCRemoteNotificationReceived;
14
14
15
15
typedef void (^RNCRemoteNotificationCallback)(UIBackgroundFetchResult result);
16
16
17
- #if !TARGET_OS_TV && !TARGET_OS_UIKITFORMAC
17
+ #if !TARGET_OS_TV
18
18
+ (void )didRegisterUserNotificationSettings : (UIUserNotificationSettings *)notificationSettings ;
19
19
+ (void )didRegisterForRemoteNotificationsWithDeviceToken : (NSData *)deviceToken ;
20
20
+ (void )didReceiveRemoteNotification : (NSDictionary *)notification ;
Original file line number Diff line number Diff line change @@ -184,11 +184,11 @@ + (UNNotificationCategory *)UNNotificationCategory:(id)json
184
184
#else
185
185
@interface RNCPushNotificationIOS () <NativePushNotificationManagerIOS>
186
186
@end
187
- #endif // TARGET_OS_TV / TARGET_OS_UIKITFORMAC
187
+ #endif // TARGET_OS_TV
188
188
189
189
@implementation RNCPushNotificationIOS
190
190
191
- #if !TARGET_OS_TV && !TARGET_OS_UIKITFORMAC
191
+ #if !TARGET_OS_TV
192
192
193
193
/* *
194
194
* Type deprecated in iOS 10.0
@@ -288,7 +288,7 @@ @implementation RNCPushNotificationIOS
288
288
return formattedResponse;
289
289
}
290
290
291
- #endif // TARGET_OS_TV / TARGET_OS_UIKITFORMAC
291
+ #endif // TARGET_OS_TV
292
292
293
293
RCT_EXPORT_MODULE ()
294
294
@@ -297,7 +297,7 @@ - (dispatch_queue_t)methodQueue
297
297
return dispatch_get_main_queue ();
298
298
}
299
299
300
- #if !TARGET_OS_TV && !TARGET_OS_UIKITFORMAC
300
+ #if !TARGET_OS_TV
301
301
- (void )startObserving
302
302
{
303
303
[[NSNotificationCenter defaultCenter ] addObserver: self
@@ -688,7 +688,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
688
688
}
689
689
}
690
690
691
- #else // TARGET_OS_TV / TARGET_OS_UIKITFORMAC
691
+ #else // TARGET_OS_TV
692
692
693
693
RCT_EXPORT_METHOD (onFinishRemoteNotification:(NSString *)notificationId fetchResult:(NSString *)fetchResult)
694
694
{
@@ -774,6 +774,6 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
774
774
return @[];
775
775
}
776
776
777
- #endif // TARGET_OS_TV / TARGET_OS_UIKITFORMAC
777
+ #endif // TARGET_OS_TV
778
778
779
779
@end
You can’t perform that action at this time.
0 commit comments