Google fit permission check returns true even when disconnected

210 Views Asked by At

So I use the following to check if google fit has established a connectiong

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
        (ContextCompat.checkSelfPermission(requireActivity(), Manifest.permission.ACTIVITY_RECOGNITION)
                == PackageManager.PERMISSION_GRANTED)
    }

I'm running android 11 (so above Q). I've gone into the google fit app, and disconected the app, but this is still returning true.

0

There are 0 best solutions below