Skip to content

Commit

Permalink
Merge pull request #313 from react-native-webrtc/android11_support
Browse files Browse the repository at this point in the history
Android 11 permission support
  • Loading branch information
manuquentin authored Nov 11, 2020
2 parents 95d8662 + 8f2489e commit 5d5a876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.wazo.callkeep">

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"
android:maxSdkVersion="29" />
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class RNCallKeepModule extends ReactContextBaseJavaModule {
private static final String E_ACTIVITY_DOES_NOT_EXIST = "E_ACTIVITY_DOES_NOT_EXIST";
private static final String REACT_NATIVE_MODULE_NAME = "RNCallKeep";
private static final String[] permissions = { Manifest.permission.READ_PHONE_STATE,
Manifest.permission.CALL_PHONE, Manifest.permission.RECORD_AUDIO };
Manifest.permission.CALL_PHONE, Manifest.permission.RECORD_AUDIO, Manifest.permission.READ_PHONE_NUMBERS };

private static final String TAG = "RNCK:RNCallKeepModule";
private static TelecomManager telecomManager;
Expand Down

0 comments on commit 5d5a876

Please sign in to comment.