Closed dariocavada closed 3 years ago
@dariocavada What is your flutter project's Android minSDKVersion?
The prominent disclosure message is added like this: "Please grant location access so this app can detect beacons in the background." Maybe this message is the reason. I will change it and release another update.
minSdkVersion 24
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
I've updated to the new version but the prominent disclosure message is not working properly. Location permission was already given but this message is still popping up every time I run the app. I tried downgrading to the previous version but for some reason, the prominent disclosure message is still there.
Is there a way for you to let us create our own permission message instead of using the one you created?
@mingjunsiek Yes, that is exactly what I was thinking. I will add a new method for this in the next release (1.19).
awesome, this way, we won't have to rely on your side instead and let us do it our selves.
@dariocavada @mingjunsiek New plugin version v1.0.19 is released, in that this issue is fixed:
if (Platform.isAndroid) {
//Prominent disclosure
await BeaconsPlugin.setDisclosureDialogMessage(
title: "Need Location Permission",
message: "This app collects location data to work with beacons.");
//Only in case, you want the dialog to be shown again. By Default, a dialog will never be shown if permissions are granted.
await BeaconsPlugin.clearDisclosureDialogShowFlag(false);
}
Used the new version for my project, but still rejected from Google Play:
I've compiled and I see the new dialog for permission, but I still have this from Google Play:
Any idea to solve this ?
Maybe using a plugin like this:
https://pub.dev/packages/location_permissions
Features #