umair13adil / simple_beacons_flutter

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

Functionality limited dialog box #34

Closed yossefEl closed 3 years ago

yossefEl commented 3 years ago

First of all thanks a lot for making this plugin and share it with the community!

Can anyone tell me how to remove this dialog ..

Screenshot_2020-12-10-17-58-51-117_app.myUIR.Android.jpg

umair13adil commented 3 years ago

@yossefEl This issue is identified in v1.0.18. I am working on its fix. A fix will be released today for this.

yossefEl commented 3 years ago

Thank you so much @umair13adil

umair13adil commented 3 years ago

@yossefEl 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);
    }
mingjunsiek commented 3 years ago

@umair13adil Is there anyway to not have this disclosure message at all? It is still showing up on the latest version.

umair13adil commented 3 years ago

@mingjunsiek To do that call this on init:

await BeaconsPlugin.clearDisclosureDialogShowFlag(true);