-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Notification before expiry date #410
Comments
Hey! I would like to work on this issue .. |
Sure, go ahead. I can't help you much with this though, as Android "alarms" are not existing knowledge to me either. |
Someone on Google Play asked to add it to a calendar. And that actually raised an interesting idea: instead of implementing this as alerts and everything in Catima, Catima would become a Calendar Provider: https://developer.android.com/guide/topics/providers/calendar-provider It could then automatically expose a Catima calendar with all expiry dates in there and if cards get deleted/updated update it in the calendar. Not sure if easier, may be way harder, but it'd be interesting to look into. |
Of course, a much simpler method would be to, when you save a card with a change in expiry date, ask the user if they want to add that expiry date to their calendar. |
Actually, let's go for that, it would be pretty simple to implement and very useful. Users don't expect things shared to their calendar to be synced up normally anyway. Changing this task to "Good first issue" because implementing it that way would not be much more than:
|
I see the pull request was never merged? I would like to work this issue if that is cool. |
Yeah that PR was never finished. Looking back, I'm not 100% sure which method of implementing would be best, but you're free to give implementing it a try :) |
There are many ways to go about it and in typical me fashion I've probably been overcomplicating it. I think we need to go back to the design phase and use something that's simpler and less flexible, but should still work perfectly in the vast majority of use cases. Maybe a better way to design this would be to:
I have no experience with Android timers though, so this may be quite a challenging task (how do we make sure Android will actually execute our timer?), but also probably closest to how people expect apps to behave (the app itself reminds you) Do you have any suggestions or opinions? |
Yea, Ok that is fair. I didn't know how much you wanted to deviate from what you and the previous guy were working.... Yea, I like that idea. Seems simple enough. For "Remind me for expiring cards" I don't know which would be better either. (If having multiple or one reoccurring one) The core logic should be done where this would be just a detail and change when we see it... Yea, I don't have much experience with Android notifications, but my only suggestion would be to follow the standard way with how most apps send notifications, instead of updating the users calendar. I have one app that does that and it seems kinda invasive. (At least to me) Just briefly searching I saw mention of an AlarmManager to schedule future intents to wake your app up. We could have some broadcastReceiver listening for this intent to push a notification to the user. |
I'm always willing to change plans if the new plan is better, especially if it hasn't been released yet as there won't be anyone used to the way it works yet. Designing stuff is hard, and sometimes even when the plan seems perfect it turns out the actual experience isn't that great. But I'm pretty hopeful about this one :)
Makes sense to me, I'd think the cleanest way to do this would be to add a MultiSelectListPreference in Personally, I think these options would make sense:
But we can always tweak this during development.
That sounds like the best option, I definitely don't want Catima to feel invasive, especially given Catima is designed to be privacy-respecting.
Sounds like the way to go :) |
Actually, I have a much better idea. Let's keep it simple and use Android's built-in tooling.
That way, we can:
It does mean users can't select per card if they want to be notified, but choosing so precisely for every single card in advance seems way more work than just swiping away a notification you don't care about. |
Catima allows setting an expiry date. It would be useful to get a notification before the card is expired, in the case of cards with monetary value.
Could be implemented by setting an per-card notification or by adding it to the settings.
Like being able to set a notification for x weeks or days before the expiry date.
The text was updated successfully, but these errors were encountered: