Transportr icon indicating copy to clipboard operation
Transportr copied to clipboard

Reminder notifications without calender

Open rugk opened this issue 7 years ago • 12 comments

Let's consider the following use case:

  • I don't want to miss my tram/bus/…, so I want to set a reminder.
  • I look up the stuff before in Transportr and then just want to be reminded 15 minutes or so before the start time.

Currently I can: Import route into the Android calender.

IMHO, this is not a good solution. I should be able to do this without messing up my calender and importing things there.

So maybe just implement a small "reminder" feature in Transportr, so it can remind me with a simple notification. (and I also see it is from Transportr, in contrast to the Android calendar e.g.)

rugk avatar Mar 29 '18 16:03 rugk

can I get this to be implemented?

spirosoik avatar Jul 17 '18 06:07 spirosoik

@spirosoik sure you can. Implementing this feature is roughly 10 hours of work. At the market rate of $80 this would be $800 for this feature. This doesn't even include long-term maintenance which I guess you want to have as well.

Or do you mean to implement this yourself?

grote avatar Jul 17 '18 13:07 grote

@grote

Or do you mean to implement this yourself?

I mean implement this by myself.

spirosoik avatar Jul 23 '18 12:07 spirosoik

I misunderstood you. Sorry for the quote then.

Sure, you can implement it. To be sure it will be merged, please sketch out a rough plan for implementation here. Especially interesting is how you want to reliably trigger alarms across various versions of Android.

grote avatar Jul 24 '18 13:07 grote

Documentation AlarmManager:

  • https://developer.android.com/training/scheduling/alarms
  • https://developer.android.com/reference/android/app/AlarmManager

Documentation WorkManager:

  • https://developer.android.com/topic/libraries/architecture/workmanager

The latter is more modern and probably better. You need to be careful about Doze mode:

Alarms do not fire when the device is idle in Doze mode. Any scheduled alarms will be deferred until the device exits Doze.

grote avatar Aug 01 '18 20:08 grote

@spirosoik Are you still interested in contributing here?

ialokim avatar Sep 06 '20 14:09 ialokim

While we are at it: A "reminder" feature may also be set for specific bus/tram/train stops, i.e. so you do not miss your train? Maybe even better make it a real alarm like the clock application does, so when you sleep or so you get waked up at your specified destination/changeover.

Or is this a new issue and I should open a new one for this?

rugk avatar Sep 08 '20 11:09 rugk

"reminder" feature may also be set for specific bus/tram/train stops

That would be nice, but would require #399 to be implemented first so that we won't notify the user too early (or too late). Also this would require background activity to track the current position and update realtime information while the app is not in the foreground.

ialokim avatar Sep 09 '20 08:09 ialokim

@spirosoik FYI

The Future of the Transportr App (?) https://github.com/grote/Transportr/issues/852

Echolon avatar May 20 '23 20:05 Echolon