Skip to content

Commit

Permalink
Updated permission docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Jun 27, 2024
1 parent a9076c6 commit 9cfa357
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 75 deletions.
29 changes: 9 additions & 20 deletions docs/flutter/v2/how-to-guides/install-the-sdk/integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,19 @@ flutter pub upgrade

### Android

Camera, Recording Audio and Internet permissions are required. Add them to your AndroidManifest.xml.
Add below permissions to your AndroidManifest.xml file if you intend to use the following features:

```xml
<uses-feature android:name="android.hardware.camera"/>
<!-- Required for devices above android 12 for disabling mute while receving the call-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />

<uses-feature android:name="android.hardware.camera.autofocus"/>
<!--Required for android 14 and above -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />

<uses-permission android:name="android.permission.CAMERA"/>

<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>

<uses-permission android:name="android.permission.RECORD_AUDIO"/>

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />

<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- This is required if the application uses foreground service for android 14 and above-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
```

### Update target Android version
Expand Down
24 changes: 9 additions & 15 deletions docs/flutter/v2/quickstart/audio-room-quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,21 @@ permission_handler:

Please follow the below instructions to test the app for the android target platform:

1. Allow recording audio and internet permissions by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).
1. Allow application to use below features by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).

<br />

```xml section=androidPermissions
<!-- Required for devices above android 12 for disabling mute while receving the call-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<!--Required for android 14 and above -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- This is required if the application uses foreground service for android 14 and above-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
```

2. Add minimum SDK version (`minSdkVersion 21`) in "android/app/build.gradle" file (inside "defaultConfig").
Expand Down
29 changes: 9 additions & 20 deletions docs/flutter/v2/quickstart/hls-quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,21 @@ video_player:

Please follow the below instructions to test the app for the android target platform:

1. Allow camera, recording audio and internet permissions by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).
1. Allow application to use below features by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).

<br />

```xml section=androidPermissions
<uses-feature android:name="android.hardware.camera"/>
<!-- Required for devices above android 12 for disabling mute while receving the call-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<uses-feature android:name="android.hardware.camera.autofocus"/>
<!--Required for android 14 and above -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- This is required if the application uses foreground service for android 14 and above-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
```

2. Add minimum SDK version (`minSdkVersion 21`) in "android/app/build.gradle" file (inside "defaultConfig").
Expand Down
29 changes: 9 additions & 20 deletions docs/flutter/v2/quickstart/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,32 +82,21 @@ permission_handler:

Please follow the below instructions to test the app for the android target platform:

1. Allow camera, recording audio and internet permissions by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).
1. Allow application to use below features by adding the below snippet to the `AndroidManifest.xml` file (at the application tag level).

<br />

```xml section=androidPermissions
<uses-feature android:name="android.hardware.camera"/>
<!-- Required for devices above android 12 for disabling mute while receving the call-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<uses-feature android:name="android.hardware.camera.autofocus"/>
<!--Required for android 14 and above -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- This is required if the application uses foreground service for android 14 and above-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
```

2. Add minimum SDK version (`minSdkVersion 21`) in "android/app/build.gradle" file (inside "defaultConfig").
Expand Down

0 comments on commit 9cfa357

Please sign in to comment.