Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No beacons are found in Andoid 11 smartphones #467

Open
key4625 opened this issue Sep 24, 2021 · 1 comment
Open

No beacons are found in Andoid 11 smartphones #467

key4625 opened this issue Sep 24, 2021 · 1 comment

Comments

@key4625
Copy link

key4625 commented Sep 24, 2021

No beacons are found in Andoid 11 smartphones...

I entered the new permissions arrived with the new version of android but nothing..

Someone can help?
Does this lib working with android 11?

@key4625 key4625 changed the title Problems with Android 11 No beacons are found in Andoid 11 smartphones Sep 24, 2021
@b4oz
Copy link

b4oz commented Oct 21, 2021

With Android 10 and API29+ the plugin will need the following permissions:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

It was also need a service declaration:

<!-- Recommended for Android 9 (API level 28) and lower. -->
<!-- Required for Android 10 (API level 29) and higher. -->
<service
           android:name="org.altbeacon.beacon.service.BeaconService"
           android:foregroundServiceType="location">
</service>

as per https://developer.android.com/training/location/permissions

I would like to suggest that this change request is added as I am not in the position to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants