Open alpha2048 opened 11 months ago
I already set this, is something wrong?
android:foregroundServiceType="camera|microphone|phoneCall"
The problem is this line which should be using the legacy stopForeground(boolean) method on Android 6 to maintain backwards compatibility.
I have an existing PR react-native-webrtc#742 to fix the current implementation unrelated to this.
I could amend it to also support the legacy API, but there are other issues you may run into with really old Android versions (e.g. checkIsInManagedCall
[requires](https://developer.android.com/reference/android/telecom/TelecomManager#isInManagedCall()) Android 8+).
I think only add Build.VERSION.SDK_INT > Build.VERSION_CODES.N
condition like flutter callkeep.
according to this line, Android 7 or below don't support Foreground Service.
Bug report
[ ] I've checked the example to reproduce the issue.
Reproduced on:
Description
According to Crashlytics, This crash is occurring on Android 6.
stopForeground
requires Android7 or higher.Steps to Reproduce
reportEndCallWithUUID
Versions
Logs