I make a network call every 15 seconds in my application, and if the battery level for users is less than 20%, instead I would use this call every 30 seconds. How to get user devices at current battery level? Is it possible? Any help would be appreciated.
javascript battery
KingCoder11
source share