Skip to content

Commit

Permalink
Merge pull request #669 from hectoruiz/feature/add_access_media_locat…
Browse files Browse the repository at this point in the history
…ion_permission

Feature/add access media location permission
  • Loading branch information
zoontek authored Dec 11, 2021
2 parents d409ba8 + c506c80 commit 2c47837
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Add all wanted permissions to your app `android/app/src/main/AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
Expand Down Expand Up @@ -444,6 +445,7 @@ PERMISSIONS.ANDROID.ACCEPT_HANDOVER;
PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION;
PERMISSIONS.ANDROID.ACCESS_COARSE_LOCATION;
PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION;
PERMISSIONS.ANDROID.ACCESS_MEDIA_LOCATION;
PERMISSIONS.ANDROID.ACTIVITY_RECOGNITION;
PERMISSIONS.ANDROID.ADD_VOICEMAIL;
PERMISSIONS.ANDROID.ANSWER_PHONE_CALLS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public Request(boolean[] rationaleStatuses, Callback callback) {
return "ACCESS_COARSE_LOCATION";
if (permission.equals("android.permission.ACCESS_FINE_LOCATION"))
return "ACCESS_FINE_LOCATION";
if (permission.equals("android.permission.ACCESS_MEDIA_LOCATION"))
return "ACCESS_MEDIA_LOCATION";
if (permission.equals("com.android.voicemail.permission.ADD_VOICEMAIL"))
return "ADD_VOICEMAIL";
if (permission.equals("android.permission.ACTIVITY_RECOGNITION"))
Expand Down
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="com.android.voicemail.permission.ADD_VOICEMAIL" />
<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
Expand Down
1 change: 1 addition & 0 deletions src/permissions.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const ANDROID = Object.freeze({
ACCESS_BACKGROUND_LOCATION: 'android.permission.ACCESS_BACKGROUND_LOCATION',
ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION',
ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',
ACCESS_MEDIA_LOCATION: 'android.permission.ACCESS_MEDIA_LOCATION',
ACTIVITY_RECOGNITION: 'android.permission.ACTIVITY_RECOGNITION',
ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL',
ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',
Expand Down

0 comments on commit 2c47837

Please sign in to comment.