This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android 10: need to toggle location permission to see BLE devices

There are many one star reviews for nRF Toolbox on the Android Play Store (not from me!). These one star reviews are from users complaining that the application does not find any BLE devices. The answer from Nordic is that the locate permission needs to be toggled to Deny and then back to Allowed. I have confirmed that this fixes both the nRF Toolbox and our own application. This is OK for a test application but not for the general public.

Questions:

  • Is there a better explanation other than this is Android/Google fault?
  • Is there a programmatic solution to this problem?

Additional information:

1) While Nordic says that this is a Google issue, we have an older application available on the Play Store which does not require us to toggle the permission. This really looks like an issue into the new Nordic SDK framework

2) It seems that the Android apps which do NOT require the toggle have the location permission as:

  • Allow all the time
  • Allow only while using the app
  • Deny

The apps which only have:

  • Allow only while using the app
  • Deny

do require the toggle. 

If we know how to build an app that offers the 3 options that should resolve the problem.

Related