crux-bphc / CMS-Android

A custom Moodle app for the students of BITS Pilani, Hyderabad Campus.
MIT License
28 stars 39 forks source link

Change Coroutine scopes during push notif (de)registration #298

Closed abhijeetviswa closed 3 years ago

abhijeetviswa commented 3 years ago

Registration was happening from whatever scope invoked the function. Though the impact is not huge, the entire process is meant to happen in the background, even if called from the main thread.

Also fixed a bug where registration would happen before user is even logged in.