Skip to content

When connectedDevice and microphone are declared at the same time #354

@toyfind

Description

@toyfind

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" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions