Navigine/Indoor-Navigation-Android-Mobile-SDK-2.0

Crashing demo App without request permissions

novseje opened this issue · 3 comments

Describe the bug
When App runs first it crashes.
Error:

java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.

If move requestPermissions() upper then App work.

requestPermissions(new String[]{
                        Manifest.permission.ACCESS_FINE_LOCATION,
                        Manifest.permission.ACCESS_COARSE_LOCATION,
                        Manifest.permission.READ_EXTERNAL_STORAGE,
                        Manifest.permission.WRITE_EXTERNAL_STORAGE
                },
                PERMISSION_REQUEST_FINE_LOCATION);

Smartphone (please complete the following information):

  • Device: Moto Z2 Force
  • OS: Android 8.0.0

Thank's for reply. We will adapt this app for Android with version below 10.0 next release

Fixed. Can you try new version of app and lib?

Yes, fixed.