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 1f657724d714a2100d68451b90a3cb872c6b9b45..c070d13f5e4ba8f6461ce76379d92b45ac880712 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-notifications", - "version": "1.1.23", + "version": "1.1.24", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "author": "Lidan Hifi ", "license": "MIT",