Open tomaszduda23 opened 2 months ago
To work offline with TelinkMiFlasher.html on Android, just remove line number 7 (<script type="text/javascript" src="./core.js"></script>
) and insert everything from "core.js" after the line with "<script>
".
And delete line number 4 (<link rel="stylesheet" href="styles.css">
). Instead of this line, insert:
<style type="text/css">
all lines from the file "styles.css"
</style>
.
Android offline does not support loading other files from HTML files. External files (.css, .js) must be embedded in HTML.
Bluetooth does not work in PWA.
Since "core.js" contains "use strict";
The text from "core.js" must be inserted at the end of the "TelinkMiFlasher.html" file, before the line containing the text </script>
.
Sample: TelinkMiFlasherAndroid.html.
Copy the "TelinkMiFlasherAndroid.html" file to the Android folder in your main storage. For example, in “Download”. Next, “TelinkMiFlasherAndroid.html” on Android is launched from “Explorer” using Chrome.
Bluetooth does not work in PWA.
Any reference to that? I just google it quickly and it seems to be supported https://progressier.com/pwa-capabilities/bluetooth. Of course I could keep locally on my device. Or even open website when I'm online. It would be more user friendly for everyone if anyone can install it with one click though.
I’ve been dealing with PWA for a long time and there was no bluetooth then...
install it with one click though.
Go https://github.com/pvvx/pvvx.github.io/blob/master/ATC_MiThermometer/TelinkMiFlasherAndroid.html and click
PS: I am leading this project, like many others, alone. There won't be enough time for everything. And I do not receive any commercial benefit from this project and do not accept donations. I also don’t know or speak English. And don't want to. I definitely won’t have time to create a PWA. Requires outside assistance with support.
There are places with no network coverage. It would be grate if this tool can be used also offline. It could be done by adding PWA https://www.freecodecamp.org/news/build-a-pwa-from-scratch-with-html-css-and-javascript/