onnela-lab / beiwe-android

Beiwe is a smartphone-based digital phenotyping research platform. This is the Beiwe Android app code. The Beiwe2 app is also available on the Google Play store to use with open source builds of the Beiwe backend.
https://www.beiwe.org/
BSD 3-Clause "New" or "Revised" License
26 stars 16 forks source link

Increase Target SDK from 29 to 30 #62

Closed zagorsky closed 1 year ago

zagorsky commented 1 year ago

Google Play currently requires apps to target Android SDK level 30. Upgrading from SDK 29 to 30 involves several changes, but I think the only significant one that affects Beiwe is that the Background Location Permission becomes harder to request. The googlePlayStore and onnelaLabServer build variants of the app were requesting background location access, but I don't think they were using them, because the GPS listener runs in the foreground service, and therefore doesn't need background location permissions. So I figured it would be easier to just remove background location permissions entirely. I tested the googlePlayStore variant of the app for a day, and still got excellent GPS coverage.

biblicabeebli commented 1 year ago

Oof, ok, I guess we will see what becomes of location data.