umair13adil / simple_beacons_flutter

A flutter plugin project to range & monitor iBeacons.
Apache License 2.0
35 stars 42 forks source link

App rejection - Android #28

Closed dariocavada closed 3 years ago

dariocavada commented 3 years ago

My App was rejected with this message:

Prominent disclosure not found Your app must display a prominent disclosure through a pop-up alert before your app’s location runtime permission. Based on our review, a prominent disclosure did not appear before the runtime permission.

The Beacon Plugin needs the PERMISSION_REQUEST_BACKGROUND_LOCATION and so:

Your app must display a prominent disclosure through a pop-up alert before your app’s location runtime permission. Based on our review, a prominent disclosure did not appear before the runtime permission.

Please add a prominent disclosure before the runtime permission.

Remember, your prominent disclosure must:

I've seen some documentation on the altbeaconlibrary website:

https://altbeacon.github.io/android-beacon-library/requesting_permission.html

and also on google developer:

https://developer.android.com/training/permissions/requesting

Schermata 2020-11-03 alle 11 34 07

And other docs for permission.

https://support.google.com/googleplay/android-developer/answer/9799150 https://support.google.com/googleplay/android-developer/answer/9888170/ https://support.google.com/googleplay/android-developer/answer/9888170#location-permissions https://support.google.com/googleplay/android-developer/answer/9799150

Do you have any solution for this problem ?

umair13adil commented 3 years ago

The solution is one provided by AltBeacon, this must be added in the plugin for Android.

dariocavada commented 3 years ago

Any news on that ?

umair13adil commented 3 years ago

@dariocavada 'BACKGROUND_LOCATION' permission is removed from the plugin project but can be added by the developer in their project. Also, the code to show 'Prominent disclosure' is added just as provided by AltBeacon library. It will only run for Android projects with minSDkVersion 29. So, it shouldn't be added for projects running under that SDK version.

dariocavada commented 3 years ago

Thank you