Skip to content

Commit

Permalink
RCTOneSignalEventEmitter.m - fix NSNumber boolean representation
Browse files Browse the repository at this point in the history
  • Loading branch information
aharonphytech committed Aug 12, 2024
1 parent 68cd99e commit 8cad6de
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 @@ -287,7 +287,7 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body {
rejecter:(RCTPromiseRejectBlock)reject) {
[OneSignal.Notifications requestPermission:^(BOOL accepted) {
resolve(@[@(accepted)]);
} fallbackToSettings:fallbackToSettings];
} fallbackToSettings:[fallbackToSettings boolValue]];
}

RCT_EXPORT_METHOD(registerForProvisionalAuthorization:(RCTResponseSenderBlock)callback) {
Expand Down

0 comments on commit 8cad6de

Please sign in to comment.