3 ms·
This is very nice! A while back, I attempted to interact with Bluetooth/BLE on Windows 10 with Node.js, which didn't go particularly well... I switched to Chakr
by grownseed 10y ago
This is very nice! A while back, I attempted to interact with Bluetooth/BLE on Windows 10 with Node.js, which didn't go particularly well... I switched to ChakraCore (pretty rough at the time but required for node-uwp support) which was supposed to give me access to the Windows APIs but nothing was working out as expected, so I ended up dropping my project. Thanks to this, I might be able to give this another shot! I see there's an open issue for Electron, I'll try and give it a shot over the weekend too.
It would be very nice if the WinMD thing could be system-agnostic (within reason of course), so that the generated modules aren't specific to a particular version of Windows. I admittedly know very little about this, so I'm guessing it's a lot more complex than I realize.
- rpwverheij 10y agoYes I'm wondering about this too. Say I want to build a windows application with electron, and I want to use geolocation or bluetooth, does the app need a module for each version of windows if I want to support multiple versions of windows? Or would it perhaps even be possible to generate the modules for the appropriate windows version on the fly from the app itself?
- pantaloons 10y agoThe Windows runtime is backwards compatible, so there are no breaking changes in WinMD files. You should be able to just generate a module for the latest available version of Windows.WinMD. Attempting to call functions which don't exist on the OS you are using should just result in E_NOINTERFACE being surfaced by this projection.
- nadavbar 10y ago@grownseed - Sorry about the confusion, NodeRT was actually tested with Electron. We also added a "Building for Electron" section in the doc. The issue was updated to refer to a tool that wraps Electron apps for the Windows Store.