'How to access window.navigator.serial in flutter web
On some browsers there exists the the property serial
on the window.navigator
object.
I can see it on chrome but not on safari.
How can I access that object via dart in flutter web?
dart:html
doesn't seem to include it. Is there a way to manually extend the window.navigator
object to include it?
Solution 1:[1]
In the end I didn't access the window.navigator object from dart.
I access the serial and do all of the checks in javascript.
I use Js context to get data back from the Javascript.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | xerotolerant |