Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

[BUG] Use location permission instead of nearby devices on older android versions #9

Open
gege-d opened this issue Aug 24, 2023 · 2 comments

Comments

@gege-d
Copy link

gege-d commented Aug 24, 2023

Describe the bug
On older android versions where nearby devices permission is included in location permission setup gets stuck.

To Reproduce
Steps to reproduce the behavior:

  1. Install app on e.g. android 8.1
  2. Click on grant permissions
  3. Will only ask for file access
  4. Still on setup screen

Expected behavior
Ask for location permission.

Smartphone (please complete the following information):

  • Device: Motorola Moto g4 plus
  • OS: Android
  • Version 8.1

Additional context
I think nearby devices permission was invented in android 11 or 12.

@gege-d gege-d changed the title Use location permission instead of nearby devices on older android versions [BUG] Use location permission instead of nearby devices on older android versions Aug 24, 2023
@moseoridev
Copy link
Owner

I know there is a bug in permission handling in older android versions. Let me investigate this a little further.

@gege-d
Copy link
Author

gege-d commented Sep 1, 2023

I was able to fix this, I forked your repository. I don't really want to open a PR because my code is quite messy and it does not ask for enabling GPS (which is required on those Android versions). You can take a look at it, this would also solve #16 and the comments in #7 with Android 11 or older.

@gege-d gege-d mentioned this issue Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants