dronetag / drone-scanner

Multi-platform mobile application for receiving Remote ID information broadcasted by nearby UAVs, compatible with ASTM F3411, ASD-STAN prEN 4709-002 standards
149 stars 29 forks source link

Feature: background tasks, location permission explanation #51

Closed matejglejtek closed 1 year ago

matejglejtek commented 1 year ago

Add a dialog explaining why we need location permission for BT scanning.

We found out that we need users to select "while using the app" option when they are asked for location permission so background scan would work. Moreover, location will be required by the library after (PR18). More explanation is in Jira issue comments.

The new dialog is shown before every location request. When user denies location once, system request is then not shown. Unfortunately, we cannot say if user already denied the permission, so dialog is shown every time and If user already dismissed the permission, he can go to app settings using the button.

On the first app start, show all the permission dialogs after the showcase ends.

This will work with current flutter-opendroneid master but the master does not require loc for bt scan so without location it will behave like it scans but no data are outputed. Bump library after (PR18) is merged.