Created
July 14, 2021 14:10
-
-
Save qichuan/2f5148eb3ada0ed51beff693671fe7e2 to your computer and use it in GitHub Desktop.
android_location_request_background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Request background permission | |
ActivityCompat.requestPermissions( | |
this@MainActivity, | |
arrayOf(Manifest.permission.ACCESS_BACKGROUND_LOCATION), | |
REQUEST_BACKGROUND_ONLY_PERMISSIONS_REQUEST_CODE | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment