collegeconnect / CollegeConnect

College Connect is an Android application aimed to be a one-stop-shop for all the college needs irrespective of college and course. It aims to create a helpful platform for all college students. The app uses Material UI for an attractive interface (subject to improvement) which attracts the user to stay on the app for more time and is available in both Light and Dark mode
https://college-connect.netlify.app
Apache License 2.0
121 stars 68 forks source link

Time based notification system for attendance #50

Open sjain30 opened 3 years ago

sjain30 commented 3 years ago

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.

sakshampruthi commented 3 years ago

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

AvishekThapa1997 commented 3 years ago

Is this issue still open?

sjain30 commented 3 years ago

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

AvishekThapa1997 commented 3 years ago

Yes i will work.

AvishekThapa1997 commented 3 years ago

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

sakshampruthi commented 3 years ago

Every possible scenario on screen, in foreground or in background

AvishekThapa1997 commented 3 years ago

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

sjain30 commented 3 years ago

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

sakshampruthi commented 3 years ago

@AvishekThapa1997 Please take look at Contributing guideline

AvishekThapa1997 commented 3 years ago

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

sakshampruthi commented 3 years ago

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

sakshampruthi commented 3 years ago

@AvishekThapa1997 Are you still working on this issue?

AvishekThapa1997 commented 3 years ago

Assign it to someone else.

rooparsh commented 3 years ago

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

sakshampruthi commented 3 years ago

Hi @rooparsh could you describe your approach?

rooparsh commented 3 years ago

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

sakshampruthi commented 3 years ago

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()

rooparsh commented 3 years ago

@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.

zubusoomro commented 2 years ago

is this still open ?

princessdharmy commented 2 years ago

@sakshampruthi is this still open to work on?