Skip to content

Commit

Permalink
[ios] fix array resolve in request permission
Browse files Browse the repository at this point in the history
  • Loading branch information
goodprofy committed Jul 5, 2024
1 parent 47faaad commit 0d9e0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTOneSignal/RCTOneSignalEventEmitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 0d9e0ef

Please sign in to comment.