OvalMoney / react-native-fitness

A React Native module to interact with Apple Healthkit and Google Fit.
MIT License
344 stars 68 forks source link

RESULTS.UNAVAILABLE on android 9 #78

Closed StarksJohn closed 3 years ago

StarksJohn commented 3 years ago

Authorization is successful on Android 10, but on Android 9, the result returned by check(PERMISSIONS.ANDROID.ACTIVITY_RECOGNITION) is RESULTS.UNAVAILABLE,

I have added these 2 permissions ,Does anyone know the reason ?

StarksJohn commented 3 years ago
WechatIMG918
Francesco-Voto commented 3 years ago

Hi @cham1985 . In android 9 you should ask runtime permissions. probably that is the reason. You have to add this check before. Anyway we are planning to insert this check on our side.