android icon indicating copy to clipboard operation
android copied to clipboard

Prompt user for reminder notifications after some condition is met

Open brericha opened this issue 11 months ago • 1 comments

Since the app targets SDK 33 now users need to grant permission for the app to send notifications. Rather than prompt immediately we could wait until a certain condition is met (made X calls, opened the app X times, made calls for X days, etc) and then the app would show a dialog asking if they would like to turn on the reminder notification and would send the system notification prompt if they select yes.

The made X calls or calls for X days would need a new query in DatabaseHelper. X app launches could be tracked via shared prefs in AccountManager and we increment that count in the Application class onCreate.

brericha avatar Feb 11 '25 01:02 brericha

We already show a notification after 4 calls are made (or at least, we used to) for the OneSignal notifications. I wonder if we can merge them both into one, and/or make sure they play nice together?

Removing "up for grabs" because I think we need to plan this out in more detail first.

dektar avatar Feb 16 '25 04:02 dektar