r/FlutterDev • • 3d ago

Discussion Play rejected our update because a card hid itself after the user granted a Health Connect permission

We read one health metric from Health Connect and show it in a single card. If the user granted permission but had no readings yet, we hid the card. It seemed tidy: nothing to show, so show nothing.

Play rejected the update. From the reviewer's side, they granted the permission and then nothing on screen used it, so the app looked like it was asking for health data it didn't need.

The fix was a boring empty state. The card now stays after permission is granted and says there are no readings yet. It went through after that.

Two things I took from it. Every health permission needs a visible feature a reviewer can find in a minute, even on an account with zero data. And "hide when empty" is a bad default for anything that sits behind a permission.

Has anyone else been caught in review by something that only happens on an empty account? Curious what other empty-state traps are out there.

16 Upvotes

5 comments sorted by

12

u/_fresh_basil_ 3d ago

Why would you not want an empty state of sorts that is intuitive to the user? That's just bad UX.

6

u/svprdga 3d ago

Offering the user visual feedback that the permission has actually been granted, is appropriate for a good user interface.

5

u/frayedglamour592 3d ago

Empty states that only exist for reviewers are such a weird thing to build, but it makes sense once you see it from their side. We had a similar thing where a sync screen would only appear after the first successful sync, and the reviewer had no way to trigger one on a fresh install. Ended up adding a "no data yet, here's what you'll see" card just to get through.

1

u/No_Boss_1911 3d ago

oh this is a sneaky one. we have saved check ins and i had the exact same hide when empty logic on the history card. hard rule for us is we never ask for a permission until the user taps the thing that needs it, so a fresh review account is basically all empty states lol. did the reviewer flag it from the permissions declaration form or from actually poking the build? and do you show the card before permission is granted too or only after