chrome-extensions-samples icon indicating copy to clipboard operation
chrome-extensions-samples copied to clipboard

Native Messaging API, has API become obsolete?

Open Edgoze opened this issue 4 years ago • 4 comments

We are trying to build a program that would be able to communicate with extensions on a remote computer without having to install something.

However, it looks like the Chrome API has been updated and thus the functions we intended to use are now obsolete. Is there any way for us to find similar functions?

Thanks in advance!

Edgoze avatar Oct 28 '21 21:10 Edgoze

Native Messaging is not obsolete.

guest271314 avatar Jan 02 '22 00:01 guest271314

The example of manifest version 2 still works?

https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/mv2-archive/api/nativeMessaging

I'm trying but chrome tell me only i can upload a version 3

sefirosweb avatar Feb 24 '22 08:02 sefirosweb

An example with MV3 using Python host is in this PR https://github.com/GoogleChrome/chrome-extensions-samples/pull/617.

guest271314 avatar Feb 24 '22 14:02 guest271314

@guest271314 cool thanks i got it!

I have ready my small extension :D

sefirosweb avatar Feb 25 '22 06:02 sefirosweb

Native Messaging is still supported and we recently reviewed the documentation here: https://developer.chrome.com/docs/extensions/mv3/nativeMessaging/

However, our sample (which should still work for the most part) is currently based on MV2: https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/_archive/mv2/api/nativeMessaging. We should update this to MV3 and confirm it continues to work.

oliverdunk avatar Mar 02 '23 12:03 oliverdunk

This PR fixes the issue. Though not sure whether the old one is still requiredred or not.

Shubham-Rasal avatar Mar 08 '23 14:03 Shubham-Rasal