You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The canMockLocation implementation for Android only checks to see if another app is installed which requests the android.permission.ACCESS_MOCK_LOCATION permission. It does not check to see if that permission is granted. I believe this can be accomplished using the requestedPermissionsFlags field of the PackageInfo object (seen here: https://developer.android.com/reference/android/content/pm/PackageInfo#requestedPermissionsFlags). Could we see an enhancement to either 1) always confirm that the permission is granted before returning true, or 2) allow for passing in a flag to indicate that the permission must be granted?
The text was updated successfully, but these errors were encountered:
The
canMockLocation
implementation for Android only checks to see if another app is installed which requests theandroid.permission.ACCESS_MOCK_LOCATION
permission. It does not check to see if that permission is granted. I believe this can be accomplished using therequestedPermissionsFlags
field of thePackageInfo
object (seen here: https://developer.android.com/reference/android/content/pm/PackageInfo#requestedPermissionsFlags). Could we see an enhancement to either 1) always confirm that the permission is granted before returning true, or 2) allow for passing in a flag to indicate that the permission must be granted?The text was updated successfully, but these errors were encountered: