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
190
190
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
191
191
<uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
192
192
<uses-permission android : name =" android.permission.SEND_SMS" />
193
+ <uses-permission android : name =" android.permission.USE_FULL_SCREEN_INTENT" />
193
194
<uses-permission android : name =" android.permission.USE_SIP" />
194
195
<uses-permission android : name =" android.permission.UWB_RANGING" />
195
196
<uses-permission android : name =" android.permission.WRITE_CALENDAR" />
@@ -821,7 +822,9 @@ Open application / alarms / notifications / fullscreen settings (default to `app
821
822
> - If a choice is not available, it fallbacks to ` application ` settings
822
823
823
824
``` ts
824
- function openSettings(type ? : ' application' | ' alarms' | ' notifications' | ' fullscreen' ): Promise <void >;
825
+ function openSettings(
826
+ type ? : ' application' | ' alarms' | ' fullscreen' | ' notifications' ,
827
+ ): Promise <void >;
825
828
```
826
829
827
830
``` ts
@@ -846,7 +849,6 @@ canScheduleExactAlarms()
846
849
.catch (() => console .warn (' Cannot check exact alarms scheduling setting' ));
847
850
```
848
851
849
-
850
852
#### canUseFullScreenIntent (Android)
851
853
852
854
Check if your app can use full screen intent.
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ object RNPermissionsModuleImpl {
67
67
setAction(Settings .ACTION_REQUEST_SCHEDULE_EXACT_ALARM )
68
68
setData(Uri .parse(" package:${packageName} " ))
69
69
}
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
- }
74
70
Build .VERSION .SDK_INT >= Build .VERSION_CODES .UPSIDE_DOWN_CAKE && type == " fullscreen" -> Intent ().apply {
75
71
setAction(Settings .ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT )
76
72
setData(Uri .parse(" package:${packageName} " ))
77
73
}
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
+ }
78
78
else -> Intent ().apply {
79
79
setAction(Settings .ACTION_APPLICATION_DETAILS_SETTINGS )
80
80
setData(Uri .parse(" package:${packageName} " ))
Original file line number Diff line number Diff line change 29
29
<uses-permission android : name =" android.permission.READ_MEDIA_IMAGES" />
30
30
<uses-permission android : name =" android.permission.READ_MEDIA_VIDEO" />
31
31
<uses-permission android : name =" android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
32
- <uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
33
32
<uses-permission android : name =" android.permission.READ_PHONE_NUMBERS" />
34
33
<uses-permission android : name =" android.permission.READ_PHONE_STATE" />
35
34
<uses-permission android : name =" android.permission.READ_SMS" />
36
35
<uses-permission android : name =" android.permission.RECEIVE_MMS" />
37
36
<uses-permission android : name =" android.permission.RECEIVE_SMS" />
38
37
<uses-permission android : name =" android.permission.RECEIVE_WAP_PUSH" />
39
38
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
39
+ <uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
40
40
<uses-permission android : name =" android.permission.SEND_SMS" />
41
+ <uses-permission android : name =" android.permission.USE_FULL_SCREEN_INTENT" />
41
42
<uses-permission android : name =" android.permission.USE_SIP" />
42
43
<uses-permission android : name =" android.permission.UWB_RANGING" />
43
44
<uses-permission android : name =" android.permission.WRITE_CALENDAR" />
Original file line number Diff line number Diff line change @@ -1591,7 +1591,7 @@ PODS:
1591
1591
- React-logger (= 0.78.2)
1592
1592
- React-perflogger (= 0.78.2)
1593
1593
- React-utils (= 0.78.2)
1594
- - RNPermissions (5.3 .0):
1594
+ - RNPermissions (5.4 .0):
1595
1595
- DoubleConversion
1596
1596
- glog
1597
1597
- hermes-engine
@@ -1921,7 +1921,7 @@ SPEC CHECKSUMS:
1921
1921
ReactAppDependencyProvider: 4893bde33952f997a323eb1a1ee87a72764018ff
1922
1922
ReactCodegen: 99ea3536c05be3c18d0c517acb56b5a6d726fc7b
1923
1923
ReactCommon: 865ebe76504a95e115b6229dd00a31e56d2d4bfe
1924
- RNPermissions: bd077ca458aa4203078bbff9f55feabdeb6d480c
1924
+ RNPermissions: b4698a8907a7503237437dd31f1cccafead36c7a
1925
1925
RNVectorIcons: bd818296a51dc2bb8c3bd97a3ca399df1afe216d
1926
1926
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
1927
1927
Yoga: e14bad835e12b6c7e2260fc320bd00e0f4b45add
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-permissions" ,
3
- "version" : " 5.3 .0" ,
3
+ "version" : " 5.4 .0" ,
4
4
"license" : " MIT" ,
5
5
"description" : " An unified permissions API for React Native on iOS, Android and Windows" ,
6
6
"author" :
" Mathieu Acthernoene <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type Contract = {
18
18
) : Promise < Record < P [ number ] , PermissionStatus > > ;
19
19
checkNotifications ( ) : Promise < NotificationsResponse > ;
20
20
openPhotoPicker ( ) : Promise < void > ;
21
- openSettings ( type ?: 'application' | 'alarms' | 'notifications ' | 'fullscreen ' ) : Promise < void > ;
21
+ openSettings ( type ?: 'application' | 'alarms' | 'fullscreen ' | 'notifications ' ) : Promise < void > ;
22
22
request ( permission : Permission , rationale ?: Rationale ) : Promise < PermissionStatus > ;
23
23
requestLocationAccuracy ( options : LocationAccuracyOptions ) : Promise < LocationAccuracy > ;
24
24
requestMultiple < P extends Permission [ ] > (
You can’t perform that action at this time.
0 commit comments