Native messaging is extremely broken and has bad documentation. I never got replies to my bug reports about it and gave up and just used websockets.
I initially assumed I was doing something wrong but after a week or so experimenting with simple test cases I could not get it to work. Maybe it works fine on Linux and Mac but not Windows.
We should probably have a weekly HN column with that title.