Skip to content

Commit

Permalink
Merge pull request #1721 from goodprofy/main
Browse files Browse the repository at this point in the history
[ios] fix array resolve in request permission
  • Loading branch information
jennantilla authored Aug 15, 2024
2 parents 68cd99e + 0d9e0ef commit c7638f3
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 @@ -286,7 +286,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 c7638f3

Please sign in to comment.