msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

'Nearby Devices' permission is not on by default when upgrading to 0.5.7 version of the ColdChain App #303

Open marthakeezy opened 1 month ago

marthakeezy commented 1 month ago

Describe the bug A clear and concise description of what the bug is. Screenshots are great!

When upgrading to the newest version of the ColdChain App, all permissions should be setup automatically, and the 'Nearby Devices' permission should be on in order to detect the sensors and allow them to connect to the app.

When upgrading to the 0.5.7 version, I noticed that permission is not on by default, which requires a user to go into Settings and toggle the selection.

0.5.6 Default permissions:

photo_2024-06-04 11 51 21

0.5.7 Default permissions:

photo_2024-06-04 11 51 37

To Reproduce Steps to reproduce the behavior:

  1. Upgrade from your version of the app to the 0.5.7
  2. Go into the ColdChain App -> Sensor -> see the error (the screen keeps spinning and the app is unable to detect any sensors)
  3. Go into Settings -> Apps -> mSupply ColdChain -> Permissions
  4. See 'Nearby Devices' is in the 'Not Allowed Category'
  5. To test -> toggle the selection on (allow Nearby Devices), then close the CCA and open again -> navigate to Sensors -> note you are able to connect them again

Expected behavior A clear and concise description of what you expected to happen.

All the permissions necessary to run the app should be on by default :)

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.