vakho10 / native-messaging Goto Github PK
View Code? Open in Web Editor NEWChrome's native messaging example project for Java.
Chrome's native messaging example project for Java.
Hi, vakho10. i am trying to send messages with accented characters like "á", "ç", "ô", etc, but it does not work. On the console of the chrome extention appear the following error:
(BLESSED_EXTENSION context for knldjmfmopnpolahpmmgbagdohdnhkik) undefined:1: Uncaught SyntaxError: Unexpected end of JSON input{SyntaxError: Unexpected end of JSON input
at Object.parse ()
at dispatchOnMessage (extensions::messaging:338:21)}
Do you have any idea of what could be the problem?
Messages without accented characters work fine.
I'm trying to set up chrome extension but I got the communicating native messaging host error
Hi, I'm fairly new to programming but I'm interested to see how this native messaging program works. I've opened the project in an IDE but some parts of the Java code don't really make sense.
use readMessage i got nothing.
check args i got --parent-widnow=xxxx,chrome-extentions://xxxxx
start.cmd like this
java -Xdebug -Xrunjdwp:transport=dt_socket,address=9998,server=y,suspend=n -jar "%~dp0/extentions-0.0.1-SNAPSHOT-jar-with-dependencies.jar" %*
the message send from page is "{"AuthKey":"niuniu","Pensize":2,"DrawType":0,"TrackColor":255,"EditBorderColor":16711680,"Transparent":240,"SetSaveName":"aaaa","SetMagnifierLogoText":"bbbb","SetWatermarkPictureType":3,"SetWatermarkPicturePath":"","SetWatermarkTextType":1,"MosaicType":1,"DefaultPath":"1.jpg","HideCurrentWindow":0,"AutoCaptureFlag":0,"x":0,"y":0,"Width":0,"Height":0}"
do you know what's the problem ?
in chrome_debug.log i found
[2132:2840:0518/105851:ERROR:native_message_process_host.cc(292)] Native Messaging host tried sending a message that is 1953720652 bytes long.
it's seem like chrome problem ? but i search from stackoverflow,there say it's java problem. sadness.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.