Skip to content

Commit

Permalink
Adding coarse location to the permission request for Android 10+ #2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed Nov 10, 2022
1 parent 8f6305f commit adac631
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ import androidx.core.content.ContextCompat

/** Helper to ask camera permission. */
object GeoPermissionsHelper {
private val PERMISSIONS = arrayOf(Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION)
private val PERMISSIONS = arrayOf(
Manifest.permission.CAMERA,
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.ACCESS_FINE_LOCATION
)

/** Check to see we have the necessary permissions for this app. */
fun hasGeoPermissions(activity: Activity): Boolean {
Expand Down

0 comments on commit adac631

Please sign in to comment.