CollegeConnect icon indicating copy to clipboard operation
CollegeConnect copied to clipboard

Time based notification system for attendance

Open sjain30 opened this issue 4 years ago • 20 comments

Implement a time-based notification system for attendance by scheduling notification at the end of class, reminding the user to mark their attendance in the app. Details such as subject name and end time are stored in the timetable database.

sjain30 avatar Dec 06 '20 05:12 sjain30

Try and use work manager for triggering notification. Incase the timings are updated cancel the previous job and initialize a new for the new input time

sakshampruthi avatar Dec 06 '20 06:12 sakshampruthi

Is this issue still open?

AvishekThapa1997 avatar Dec 14 '20 11:12 AvishekThapa1997

@AvishekThapa1997 Yes, it's open. If you wanna work on it let us know, we'll assign you to it.

sjain30 avatar Dec 14 '20 12:12 sjain30

Yes i will work.

AvishekThapa1997 avatar Dec 14 '20 12:12 AvishekThapa1997

user will get the notification only when the app is on the screen or even in during when the app is in foreground?

AvishekThapa1997 avatar Dec 14 '20 14:12 AvishekThapa1997

Every possible scenario on screen, in foreground or in background

sakshampruthi avatar Dec 14 '20 14:12 sakshampruthi

there is no google-services.json file due to which app is not getting build.Any help would be appreciated.

AvishekThapa1997 avatar Dec 14 '20 16:12 AvishekThapa1997

@AvishekThapa1997 we can't share aur google services file due to security reasons. You would have to link it to your own firebase project

sjain30 avatar Dec 14 '20 16:12 sjain30

@AvishekThapa1997 Please take look at Contributing guideline

sakshampruthi avatar Dec 14 '20 16:12 sakshampruthi

Okay ...this is my first time i am trying open source so getting lots of questions

AvishekThapa1997 avatar Dec 14 '20 16:12 AvishekThapa1997

@AvishekThapa1997 No problem, connect with us on gitter for any further questions Gitter

sakshampruthi avatar Dec 14 '20 16:12 sakshampruthi

@AvishekThapa1997 Are you still working on this issue?

sakshampruthi avatar Dec 22 '20 19:12 sakshampruthi

Assign it to someone else.

AvishekThapa1997 avatar Dec 23 '20 03:12 AvishekThapa1997

@sakshampruthi Can you assign this issue to me, am looking into it .

rooparsh avatar Oct 02 '21 05:10 rooparsh

Hi @rooparsh could you describe your approach?

sakshampruthi avatar Oct 02 '21 06:10 sakshampruthi

Using the Endtime store in db, will schedule a notification using work manager.

rooparsh avatar Oct 02 '21 06:10 rooparsh

Work manager is generally used for deferred task and is not reliable to trigger the notification at the required time becuase of doze. It will be scheduled according to the phone maintenance time. I would suggest you to develop a solution using alarm manager and and every time its triggered, access room db with power manager and schedule another alarm using setExactAndAllowWhileIdle()

sakshampruthi avatar Oct 02 '21 06:10 sakshampruthi

@sakshampruthi We can use periodic work request. I am assuming the classes will be 1 hr long each. So after every 1 hr, a notification can be triggered. And at the end of the last period, we can cancel the job and schedule a new job for next day. Assign this issue to me, will raise a PR , we can discuss the approach there.

rooparsh avatar Oct 02 '21 08:10 rooparsh

is this still open ?

zubusoomro avatar Oct 03 '22 20:10 zubusoomro

@sakshampruthi is this still open to work on?

princessdharmy avatar Oct 04 '22 10:10 princessdharmy