Skip to content

Commit ebe82bc

Browse files
committed
chore: Update BG recording docs.
1 parent 4ed9d69 commit ebe82bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/bg_recording.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ Add the following the manifest in `android/app/src/main/AndroidManifest.xml`:
1717
android:foregroundServiceType="microphone"
1818
android:exported="false" />
1919
</application>
20+
```
2021

21-
A notification is added to conform to Android requirements.
22+
When starting recording, you need to enable the service explicitly by setting the following in the given config:
23+
```dart
24+
RecordConfig(
25+
...,
26+
androidConfig: AndroidRecordConfig(service: AndroidService(title: 'Title', content: 'Content...'))
27+
);
2228
```
2329

30+
A notification is added to conform to Android requirements if service is started.
31+
2432
## iOS
2533

2634
Add the following in `ios/Runner/info.plist`:

0 commit comments

Comments
 (0)