File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
android/src/main/java/com/zoontek/rnpermissions Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ Add all wanted permissions to your app `android/app/src/main/AndroidManifest.xml
190190 <uses-permission android : name =" android.permission.RECORD_AUDIO" />
191191 <uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
192192 <uses-permission android : name =" android.permission.SEND_SMS" />
193+ <uses-permission android : name =" android.permission.USE_FULL_SCREEN_INTENT" />
193194 <uses-permission android : name =" android.permission.USE_SIP" />
194195 <uses-permission android : name =" android.permission.UWB_RANGING" />
195196 <uses-permission android : name =" android.permission.WRITE_CALENDAR" />
@@ -821,7 +822,9 @@ Open application / alarms / notifications / fullscreen settings (default to `app
821822> - If a choice is not available, it fallbacks to ` application ` settings
822823
823824``` ts
824- function openSettings(type ? : ' application' | ' alarms' | ' notifications' | ' fullscreen' ): Promise <void >;
825+ function openSettings(
826+ type ? : ' application' | ' alarms' | ' fullscreen' | ' notifications' ,
827+ ): Promise <void >;
825828```
826829
827830``` ts
@@ -846,7 +849,6 @@ canScheduleExactAlarms()
846849 .catch (() => console .warn (' Cannot check exact alarms scheduling setting' ));
847850```
848851
849-
850852#### canUseFullScreenIntent (Android)
851853
852854Check if your app can use full screen intent.
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ object RNPermissionsModuleImpl {
6767 setAction(Settings .ACTION_REQUEST_SCHEDULE_EXACT_ALARM )
6868 setData(Uri .parse(" package:${packageName} " ))
6969 }
70- Build .VERSION .SDK_INT >= Build .VERSION_CODES .O && type == " notifications" -> Intent ().apply {
71- setAction(Settings .ACTION_APP_NOTIFICATION_SETTINGS )
72- putExtra(Settings .EXTRA_APP_PACKAGE , packageName)
73- }
7470 Build .VERSION .SDK_INT >= Build .VERSION_CODES .UPSIDE_DOWN_CAKE && type == " fullscreen" -> Intent ().apply {
7571 setAction(Settings .ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT )
7672 setData(Uri .parse(" package:${packageName} " ))
7773 }
74+ Build .VERSION .SDK_INT >= Build .VERSION_CODES .O && type == " notifications" -> Intent ().apply {
75+ setAction(Settings .ACTION_APP_NOTIFICATION_SETTINGS )
76+ putExtra(Settings .EXTRA_APP_PACKAGE , packageName)
77+ }
7878 else -> Intent ().apply {
7979 setAction(Settings .ACTION_APPLICATION_DETAILS_SETTINGS )
8080 setData(Uri .parse(" package:${packageName} " ))
Original file line number Diff line number Diff line change 2929 <uses-permission android : name =" android.permission.READ_MEDIA_IMAGES" />
3030 <uses-permission android : name =" android.permission.READ_MEDIA_VIDEO" />
3131 <uses-permission android : name =" android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
32- <uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
3332 <uses-permission android : name =" android.permission.READ_PHONE_NUMBERS" />
3433 <uses-permission android : name =" android.permission.READ_PHONE_STATE" />
3534 <uses-permission android : name =" android.permission.READ_SMS" />
3635 <uses-permission android : name =" android.permission.RECEIVE_MMS" />
3736 <uses-permission android : name =" android.permission.RECEIVE_SMS" />
3837 <uses-permission android : name =" android.permission.RECEIVE_WAP_PUSH" />
3938 <uses-permission android : name =" android.permission.RECORD_AUDIO" />
39+ <uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
4040 <uses-permission android : name =" android.permission.SEND_SMS" />
41+ <uses-permission android : name =" android.permission.USE_FULL_SCREEN_INTENT" />
4142 <uses-permission android : name =" android.permission.USE_SIP" />
4243 <uses-permission android : name =" android.permission.UWB_RANGING" />
4344 <uses-permission android : name =" android.permission.WRITE_CALENDAR" />
Original file line number Diff line number Diff line change @@ -1591,7 +1591,7 @@ PODS:
15911591 - React-logger (= 0.78.2)
15921592 - React-perflogger (= 0.78.2)
15931593 - React-utils (= 0.78.2)
1594- - RNPermissions (5.3 .0):
1594+ - RNPermissions (5.4 .0):
15951595 - DoubleConversion
15961596 - glog
15971597 - hermes-engine
@@ -1921,7 +1921,7 @@ SPEC CHECKSUMS:
19211921 ReactAppDependencyProvider: 4893bde33952f997a323eb1a1ee87a72764018ff
19221922 ReactCodegen: 99ea3536c05be3c18d0c517acb56b5a6d726fc7b
19231923 ReactCommon: 865ebe76504a95e115b6229dd00a31e56d2d4bfe
1924- RNPermissions: bd077ca458aa4203078bbff9f55feabdeb6d480c
1924+ RNPermissions: b4698a8907a7503237437dd31f1cccafead36c7a
19251925 RNVectorIcons: bd818296a51dc2bb8c3bd97a3ca399df1afe216d
19261926 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
19271927 Yoga: e14bad835e12b6c7e2260fc320bd00e0f4b45add
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-permissions" ,
3- "version" : " 5.3 .0" ,
3+ "version" : " 5.4 .0" ,
44 "license" : " MIT" ,
55 "description" : " An unified permissions API for React Native on iOS, Android and Windows" ,
66 "author" :
" Mathieu Acthernoene <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type Contract = {
1818 ) : Promise < Record < P [ number ] , PermissionStatus > > ;
1919 checkNotifications ( ) : Promise < NotificationsResponse > ;
2020 openPhotoPicker ( ) : Promise < void > ;
21- openSettings ( type ?: 'application' | 'alarms' | 'notifications ' | 'fullscreen ' ) : Promise < void > ;
21+ openSettings ( type ?: 'application' | 'alarms' | 'fullscreen ' | 'notifications ' ) : Promise < void > ;
2222 request ( permission : Permission , rationale ?: Rationale ) : Promise < PermissionStatus > ;
2323 requestLocationAccuracy ( options : LocationAccuracyOptions ) : Promise < LocationAccuracy > ;
2424 requestMultiple < P extends Permission [ ] > (
You can’t perform that action at this time.
0 commit comments