flutter-plugins
flutter-plugins copied to clipboard
[health: ^8.0.0] - Android device: This app is blocked
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.
- As shown in screenshot below, the restricted scope already approved
- Screenshot below showing on android device for production release:
- 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.
- For iOS only the latest OS is supported.
- For Android, see the OS versions for which Google support security fixes**
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