Closed mohamedmansour closed 3 years ago
This would be the API to do this from: chrome.alarms
https://developer.chrome.com/extensions/alarms
So the way we can implement it for prayers would be:
This will improve performance for Chrome so that it wont waste battery.
Non-persistent extensions do not always run in the background, and do not take the system resources all the time. The catch, however, is that they should follow an event-driven model. For Prayer Times, I think the only important event is the time change: It should wake up every minute, update the timestamp on its icon, show a notification if needed, and go back to sleep.
/via @msdousti