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.