ykasidit / bluetooth_gnss

Bluetooth GNSS app on Google Play Store
https://play.google.com/store/apps/details?id=com.clearevo.bluetooth_gnss&hl=en&gl=US
GNU General Public License v2.0
63 stars 19 forks source link

Logging doesn't work (Android11) unless re-set manually #26

Open grinapo opened 2 years ago

grinapo commented 2 years ago

This may be strongly related to #16 (which seemed to be resolved). Right now it works this way:

  1. enable log directory
  2. a dir selector pops up, select dir
  3. accept permission from android
  4. connect to BT and logging works. disconnect at the end, exit.

  5. next time the program remembers enabled log directory and it's directory, also "propbably" remembers the permission
  6. after BT connect there is no logging, the display shows "no data" for all three log related status lines.

  7. logging can be restored the following way, but have to be repeated at every start:
  8. disconect (or start app)
  9. switch off logging
  10. switch on logging, select parent dir, select dir, accept permissions, and do as from step one.

May it be that the permission grant isn't remebered somehow?

ykasidit commented 1 year ago

hello,

thanks for the detailed issue report

ok, please help test withl new app apk from https://github.com/ykasidit/bluetooth_gnss/releases/tag/v1.0.41 then go to settings > enable logging (untick and re-tick if already enabled earlier) and try again - now it is using a api call to persist the permission (issue was that the permission wont be granted from android to the same folder on next runs)