Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QLocationPermission and background location in Android - 6.8.0

QLocationPermission and background location in Android - 6.8.0

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 86 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Justin Steventon
    wrote on last edited by
    #1

    I sometimes need background location for my Android app. However, if I have already requested (and been granted) non-background location, then it does not prompt and denies.

    So this always denies without prompt if regular location permission was previously granted:

        auto permission = QLocationPermission();
        permission.setAccuracy(QLocationPermission::Precise);
        permission.setAvailability(QLocationPermission::Always);
        qApp->request...
    

    My guess is that the implementation mixes location and background location logic. While the Android UI does combine these concepts, they are actually entirely separate permissions.

    Thanks!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved