Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt user for reminder notifications after some condition is met #152

Open
brericha opened this issue Feb 11, 2025 · 1 comment
Open

Comments

@brericha
Copy link
Collaborator

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.

@dektar
Copy link
Collaborator

dektar commented Feb 16, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants