diff --git a/RNNotifications/RNNotifications.m b/RNNotifications/RNNotifications.m index 844d8e242e007a210c13a60379dc671580f4b4d7..571b103ff2741b1294666e366d0eb06a1c0b8770 100644 --- a/RNNotifications/RNNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -636,14 +636,7 @@ RCT_EXPORT_METHOD(cancelAllLocalNotifications) RCT_EXPORT_METHOD(isRegisteredForRemoteNotifications:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { - BOOL ans; - - if (TARGET_IPHONE_SIMULATOR) { - ans = [[[UIApplication sharedApplication] currentUserNotificationSettings] types] != 0; - } - else { - ans = [[UIApplication sharedApplication] isRegisteredForRemoteNotifications]; - } + BOOL ans = [[[UIApplication sharedApplication] currentUserNotificationSettings] types] != 0; resolve(@(ans)); } diff --git a/package.json b/package.json index 26976c31fbb38bd29d6ea01664f61230d36adec8..4f3b9577e0668d25257a7ef5549305352a430117 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-notifications", - "version": "1.2.51", + "version": "1.2.52", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "author": "Lidan Hifi ", "license": "MIT",