diff --git a/ios/RCTOneSignal/RCTOneSignalEventEmitter.m b/ios/RCTOneSignal/RCTOneSignalEventEmitter.m index 4221cea4..26a76de3 100644 --- a/ios/RCTOneSignal/RCTOneSignalEventEmitter.m +++ b/ios/RCTOneSignal/RCTOneSignalEventEmitter.m @@ -282,7 +282,7 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body { requestNotificationPermissionResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { [OneSignal.Notifications requestPermission:^(BOOL accepted) { - resolve(@[@(accepted)]); + resolve(@(accepted)); } fallbackToSettings:fallbackToSettings]; }