Android 11

Android 11

Location Permissions

If your app targets Android 11:

  • Like Android 10, you need location permission called ACCESS_BACKGROUND_LOCATION to allow location information even if the app is in the background.

  • If you request a foreground location permission and the background location permission at the same time, the system ignores the request and doesn’t grant your app either permission.

Location authorization changes

  • The user-facing permissions dialog contains an option called Only this time. If the user selects this option in the dialog, your app is granted a temporary one-time permission.

     

  • The system dialog doesn’t include the Allow all the time option. Instead, users must enable background location on a settings page

 

 

  • Auto-reset permissions from unused apps

    • If your app targets Android 11 or higher and isn’t used for a few months, the system protects user data by automatically resetting the sensitive runtime permissions that the user had granted your app.

    • Related Articles

    • Android 12

      Intro Android 12 introduced new features and behaviors, from permissions to security, that affect directly the NAO® SDK. All the changes are described on Android 12’s documentation. NAO® SDK Release 21.02 (v4.10.x) will still work as expected with ...
    • Android

      NAOMAPSDK is a mobile map tool that allows developers to integrate indoor maps into Android and iOS applications using map data from NAO Cloud. This SDK simplifies the process of adding indoor mapping functionality to mobile apps, making it easier ...
    • Android 9

      Android 9 (API level 28) introduces a number of changes to the Android system. The following behavior changes apply to all apps when they run on the Android 9 platform, regardless of the API level that they are targeting. All developers should review ...
    • Android 8

      Android 8.0 (API level 26) introduces behavior changes as well as new features and APIs. The key changes that impact NAO SDK are Android background execution limits. If you are using NAO SDK only in a user-app interactive way, there will not be much ...
    • Android 10

      Device Location If your app targets Android 10 (API level 29) or higher: App cannot access the location unless said app is in the foreground. This feature is enabled by default . There is, however, a new location permission called ...