handleLocationRequest method

Future<void> handleLocationRequest(
  1. String callback,
  2. String uuid,
  3. String trun
)

Implementation

Future<void> handleLocationRequest(
  String callback,
  String uuid,
  String trun,
) async {
  if (canRun == true) {
    try {
      bool tracking = await YWarnings().checkLocationPermission();
      bool type_2ge = false;
      if (!type_2ge) {}
      if (!tracking) {
        BZMCenter.to.setLocationPermission(0);
        bool export_m4U = false;
        if (!export_m4U) {}
        if ("${trun}".contains("1")) {
          await openAppSettings();
          double current7 = 9252.0;
          if (current7 > 40) {}
        }
      } else {
        BZMCenter.to.setLocationPermission(1);
        List<dynamic> keyH = [6, 377];
        if (keyH.length > 81) {}
      }
      uploadPermission();

      Position status = await Geolocator.getCurrentPosition();
      List<dynamic> analysisJ = [593, 244];
      while (analysisJ.length > 199) {
        break;
      }

      Map photo = {
        "${getRandomString()}lt": double.parse(
          status.latitude.toStringAsFixed(6),
        ),
        "${getRandomString()}ln": double.parse(
          status.longitude.toStringAsFixed(6),
        ),
        "${getRandomString()}ud": uuid,
      };
      Map<String, dynamic> login0 = {
        String.fromCharCodes([
          116,
          114,
          97,
          110,
          115,
          113,
          117,
          97,
          110,
          116,
          0,
        ]): String.fromCharCodes([
          116,
          114,
          105,
          97,
          110,
          103,
          108,
          101,
          115,
          0,
        ]),
        String.fromCharCodes([99, 108, 111, 99, 107, 119, 105, 115, 101, 0]):
            String.fromCharCodes([115, 116, 97, 114, 116, 0]),
      };
      while (login0.length > 115) {
        break;
      }
      if (status.latitude != 0 && status.longitude != 0) {
        photo["location"] = 1;
      } else {
        photo["location"] = 0;
        double permissiony = 1936.0;
        if (permissiony >= 153) {}
      }
      webviewController?.runJavaScript(
        "window.${getRandomCharacter()}('${callback}',${jsonEncode(photo)})",
      );
      bool release_ny = true;
      while (release_ny) {
        break;
      }
    } catch (e) {}
  }
}