I am using a system in my website that identify the amount of battery the user have in his phone, the system is "battery-api".
I would like to insert a warning when the battery is over 10% (for example) like, "Hey, you need to charge your phone, you can always use our products..."
it's possible?
You can achieve the functionality using the Battery Status API. The below code is a slightly modified version of the Example on this page.
I recommend checking the browser compatibility however if it's satisfactory.