isBackgroundLocationEnabled

Checks if background location permission is enabled. This method is only available on Android Q (API 29) and above.

Return

true if background location permission is not granted, false otherwise

Parameters

context

The application or activity context