1 min readSep 22, 2017
That’s a very good point. I wanted to keep this short, avoiding too much details. But you’re absolutely right: with only this code it will be shown over and over to the users once they match the condition.
Options to prevent that are:
- Local: flag in shared preferences
- Firebase: track a new event when the user sees the dialog and use it as part of the remote config condition for displaying it. So users who has see the dialog once won’t see it again.
Anyone can think of a better one?