Skip to content

Commit 3e69440

Browse files
committed
Added support for checking if lockScreen and notificationCenter settings are enabled (1.3.0)
1 parent cb6e76d commit 3e69440

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ReactNativePushNotificationIOS.re

+10-1
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,21 @@ type permissions = {
195195
"alert": bool,
196196
"badge": bool,
197197
"sound": bool,
198+
"lockScreen": bool,
199+
"notificationCenter": bool,
198200
};
199201

200202
type requestPermissionsOptions;
201203
[@bs.obj]
202204
external requestPermissionsOptions:
203-
(~alert: bool=?, ~badge: bool=?, ~sound: bool=?, unit) =>
205+
(
206+
~alert: bool=?,
207+
~badge: bool=?,
208+
~sound: bool=?,
209+
~lockScreen: bool=?,
210+
~notificationCenter: bool=?,
211+
unit
212+
) =>
204213
requestPermissionsOptions;
205214

206215
// multiple externals

0 commit comments

Comments
 (0)