flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[health: ^8.0.0] - Android device: This app is blocked

Open tajjacob opened this issue 2 years ago • 0 comments

Hi all,

Need help on this issue as shown in screenshot: This app is blocked.

I know this issue related to Google Cloud Console but I really need someone who has experienced this issue to help me solve this.

For the context, I'm using health plugin to get steps, distance and calories data from Google Fit and Apple Health. Everything working fine in ios device but in android device I got this issue when I'm published to production.

  • On Google Cloud console, the app is already got verified.

image

  • As shown in screenshot below, the restricted scope already approved

image

  • Screenshot below showing on android device for production release:

image

  • This is the data types use in my app.
    bool requested = await health.requestAuthorization(
      [
        HealthDataType.ACTIVE_ENERGY_BURNED,
        HealthDataType.STEPS,
        (GetPlatform.isAndroid)
            ? HealthDataType.DISTANCE_DELTA
            : HealthDataType.DISTANCE_WALKING_RUNNING,
      ],
      permissions: [
        HealthDataAccess.READ,
        HealthDataAccess.READ,
        HealthDataAccess.READ,
      ],
    );

Device / Emulator and OS

Please complete the following information for each phone and/or emulator you're experiencing this bug on:

  • Device: Android devices

NB: Bugs pertaining to old devices/OS versions will likely not be fixed.

Describe the bug

  • Refer to above

To Reproduce

  • not available

Expected behavior

  • No pop-up dialog "this app is blocked"

Actual behavior

  • pop-up dialog "this app is blocked" appeared when user connect to Google Fit

Screenshots

  • Refer to above

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.1, on macOS 14.1.2 23B92 darwin-arm64, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.83.1)
[✓] VS Code (version 1.85.0-insider)
[✓] Connected device (7 available)
[✓] Network resources

• No issues found!

Additional information

  • The android user already registered for Google Fit

tajjacob avatar Dec 14 '23 03:12 tajjacob