flutter_foreground_task icon indicating copy to clipboard operation
flutter_foreground_task copied to clipboard

When connectedDevice and microphone are declared at the same time

Open toyfind opened this issue 6 months ago • 0 comments

When connectedDevice and microphone are declared at the same time, the foreground service cannot be started normally after obtaining Bluetooth permissions. It must be started normally after obtaining microphone permissions. What is going on?

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
<!-- foregroundServiceType: microphone -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
<!-- foregroundServiceType: dataSync -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
		<service 
			android:name="com.pravera.flutter_foreground_task.service.ForegroundService"
		android:foregroundServiceType="connectedDevice|microphone|dataSync"
			android:stopWithTask="true"
		android:exported="false" />

toyfind avatar Jul 24 '25 12:07 toyfind