domoticz / domoticz-android

Domoticz Client Application for Android Devices
104 stars 70 forks source link

Geofence stopped working on Android 10 #559

Closed sammyke007 closed 4 years ago

sammyke007 commented 4 years ago

Hi

Since updating my Oneplus 6 to Android 10, geofencing stopped working. The only available location permission is "when app is opened". The option "always" is gone?

Screenshot_20191111-234250

galadril commented 4 years ago

My devices still didn't received Android 10 update, so its hard to test with just emulators. Ill see if i can arrange a test device for this (but its gonna take more time to fix)

sammyke007 commented 4 years ago

My devices still didn't received Android 10 update, so its hard to test with just emulators. Ill see if i can arrange a test device for this (but its gonna take more time to fix)

Tnx for the quick follow-up! If you need me to try anything, just let me know.

I found this: https://developer.android.com/about/versions/10/privacy/changes Hope it clears out the changes made in Android 10.

galadril commented 4 years ago

Please check on the app settings that the app has no battery restrictions, and auto-start enabled.

Also check if you have disabled the smart power feature> https://oppo.custhelp.com/app/answers/detail/a_id/3597/~/power-saver-features (as it restricts background services)

sammyke007 commented 4 years ago

Screenshot_20191111-233806

Please check on the app settings that the app has no battery restrictions, and auto-start enabled.

Also check if you have disabled the smart power feature> https://oppo.custhelp.com/app/answers/detail/a_id/3597/~/power-saver-features (as it restricts background services)

All of these are 100% disabled. No optimization, no smart battery, ... I have a TADO for controlling my house temperature. The TADO app also uses geofencing to decide the house temperature, and that app is working fine.

galadril commented 4 years ago

Thanks for the info

galadril commented 4 years ago

I think it works a bit better now, and i've added a new permissions needed for android 10... ill push a new build to the beta channel.

To subscribe to the beta channel> https://play.google.com/apps/testing/nl.hnogames.domoticz.premium

sammyke007 commented 4 years ago

Ok, I'll test ASAP and will keep you updated!

sammyke007 commented 4 years ago

Screenshot_20191114-204717 Permissions seem to be ok again, will check actual geofence tomorrow! Tnx!!

sammyke007 commented 4 years ago

Fixed, tnx!