News for hackers. Stuff that matters.
Re:Let's guess what Google requires in 14 days or they kill ... by kevingadd on Wednesday May 13, 2020 @08:38PM (#23173724)
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.
Re:Let's guess what Google requires in 14 days or they kill ... by pvg on Wednesday May 13, 2020 @09:09PM (#23173963)
Out of curiosity, what were the problems you ran into with native messaging?
Re:Let's guess what Google requires in 14 days or they kill ... by kevingadd on Thursday May 14, 2020 @03:45AM (#23176638)
So native messaging is fundamentally about opening a named pipe to a child process managed by the browser. I found that the pipe would silently break or time out. In the former scenario, the app was running but could no longer exchange native messages with the browser or extensions - chrome was just ignoring the pipe traffic. In practice I was able to use native messaging to spawn the executable but to actually talk with it I needed to use a websocket, kind of defeating the point.

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.

Re:Let's guess what Google requires in 14 days or they kill ... by pvg on Thursday May 14, 2020 @05:25AM (#23177346)
I initially assumed I was doing something wrong

We should probably have a weekly HN column with that title.