2 years ago
#67487
Cate Daniel
Google fit permission check returns true even when disconnected
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.
android
google-fit
google-fit-sdk
google-fit-api
0 Answers
Your Answer