Re:Let's guess what Google requires in 14 days or they kill ...
by paulirwin on Wednesday May 13, 2020 @04:15PM
(#23171305)
I believe you're supposed to use Native Messaging for that: https://developer.chrome.com/extensions/nativeMessaging
[ Parent
| on HN ]
Re:Let's guess what Google requires in 14 days or they kill ...
by rosywoozlechan on Wednesday May 13, 2020 @04:34PM
(#23171530)
This may be well what needs to change, but in any case the message from Google should have been explicit about it instead of the dev involved having to create a blog post, hope it gets traction on HN and that someone here knows what the problem is.
Re:Let's guess what Google requires in 14 days or they kill ...
by nolok on Wednesday May 13, 2020 @04:57PM
(#23171748)
Yes and no, I would be glad if Google in general could get much much better at this but in this specific case I'm sorry but http://* and localhost access is not a hidden small thing.
Re:Let's guess what Google requires in 14 days or they kill ...
by maartn on Wednesday May 13, 2020 @04:53PM
(#23171718)
the docs are pretty explicit about it
Re:Let's guess what Google requires in 14 days or they kill ...
by ldiracdelta on Wednesday May 13, 2020 @09:17PM
(#23174040)
But not their email.
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.