Moussa
Moussa

Reputation: 851

How to show a dialog box randomly in application

i was wondering if someone could tell me how to show an alert dialog box that has a "rate this app" button, i want the dialog to show, for example every week or even just once. Any help will be appreciated

Upvotes: 1

Views: 676

Answers (1)

luanjot
luanjot

Reputation: 1176

You can store somewhere (maybe in the database) the date and time of the last time the user saw the alert in the app and check if enough time has passed since then.

If the last time that the alert was shown was more than three days ago, you show the alert, if it is less than three days, you don't.

Upvotes: 1

Related Questions