I developed this website for my JS practice and when I opened it in Brave, I noticed this. I developed it in Edge Chromium but I wanted to check how it looks like on Brave. It worked fine on Brave mobile but on desktop, it does not work. It works only on Chromium-based browsers and not Firefox. Pls if anyone can help me solve this issue
Basically, this is a site to show the charging of your device. But it is not working on Brave.
On Desktop. Itāll show charging and 100%. Because thatās what happening. It wonāt work on Firefox because the API isnāt supported in Firefox. Pls inform me what do you get on laptop. Thanks
@max_programming,
Cool website
Testing in Brave stable, Beta, Developer and Nightly all have the site showing Charging 100%. Is this not what it should be saying? Chrome shows the same behavior as well. What exactly is it thatās not working?
@mattches, Brave will allways show charging 100%, no matter what is the current battery state of the device.
Indeed @max_programming, for privacy concerns, the battery API has been tweaked by Brave so that it always returns same fake values (charging and 100%).
It is not working on Windows too. I am on a laptop and still it is showing 100% while my battery is 93%. It is maybe because Brave has tweaked the battery API. On desktops it will show 100% charging because that is what is happening. But on other devices, it should show the battery
On my end, on the current play store version (1.8.93), and probably since this (https://brave.com/rebuilt-brave-android/), the battery API behaves the same as in desktop Brave => your website is reporting charging 100%, despite the actual battery status of the device.
@max_programming,
It was a laptop ā not a desktop but regardless youāre right. Iām seeing the same results (100%) with Brave across different OS. Not entirely sure why this is the case but I did reach out to a couple of our web devs to have them take a look.
Okay. I understand. Firefox and Safari also donāt have battery API. One request, can Brave throw an error in the console just like Firefox and Safari. So that I can show the message just like I show in these browsers:
By the way guys. I want to introduce my YouTube channel.
I am only 15 years old and I love programming.
I know itās kind of an advertisement but I wanted to put this here. Thanks a lot for the help and support