Firebase Cloud Notifications in Chrome Extension - google-chrome-extension

Is that working to make an Chrome Extension that can send Notifications to the user with getting the Informations from Firebase Cloud Service?
I will have an Extension, that i can send users informations with that have installed my extension on all Pages if the have Chrome opened...
Is there any tutorial? I cannot find anything about chrome extensions and firebase

I used this tutorial with some differences with FCM. On extension side I made all by this tutorial, on the server-side - by FCM tutuorial. It works, but at current time messages saved at FCM while browser is shut down don't come after browser open, looking for a bug.
Yes, it wouldn't save messages while browser is shut down.
As long as Chrome is running, even if the extension or app is not running, it is woken up to deliver a message.

The tutorial in the link of the previous answer is now deprecated. "As of April 10, 2018, Google has deprecated GCM.." Learn more here.
Now, you can implement Firebase Cloud Messaging to your Javascript project with this tutorial, See here

Related

Maintaining a persitant connection in a MV3 Chrome Extension

I'm trying to build a chrome extension that updates its badge every time some event happens on my server- in this case, my server is receiving a webhook from Zoom and then informing my chrome extension that the event occurred. From there my chrome extension will update a counter on its' badge, to show that the event occured. I'm trying to build it according to the chrome extension Manifest V3 but I can't find any info on how to do this correctly.
To my understanding, in Manifest V3 all client-side scripts must run in a service worker. That service worker starts up, runs some code, and then shuts down again. I was planning to open a websocket in my background script, which would have been fine under manifest v2, but I don't think you can do that any more.
My question is: How do I maintain a connection to receive data in my chrome extension? When I say data in this case I really just mean an event informing my chrome extension to update the counter on its badge.
Are there other routes besides keeping a websocket open in the background? I've looked around at things like Google Cloud Messaging but I don't think that was intended for what I would like to use it for.
Try to use an offscreen API, it was introduced some time ago by Google. You just need to check in which browser version this API is available.
This would give you an opportunity on having long living WS connection and communicate with service worker e.g. by runtime API.
EDIT:
offscreen API is available since Chrome 109

Push Notification for Chrome browser extension?

I built this Chrome browser extension plugin and can't figure out if there is a way to receive a server message from my Backend service in the plugin pretty much like the push notification for iOS.
e.g. notifying the user an event (from the backend) has happened and display this message in the plugin
I spent time looking into Chrome extension's documentation. They don't seem to have API similar to push notification for the Chrome extension.
Is there any other way do achieve this?

Chrome Extension Native Messaging with same extension installed across multiple chrome profiles

This feels like a shot in the dark but...
Should a single Native Messaging host be able to communicate with the same extension installed on multiple chrome profiles?
I'm working on an extension which is installed to both my personal and work profiles. But it seems that the Native Messaging host only sends messages to the most recently connected instance of the extension.
I don't believe this is addressed in the Native Messaging documentation and I've run out of search ideas, thanks in advance for any help!
When nativeMessaging API is used it starts an instance of native app each time a connection is created by the extension so such an instance can communicate with its "parent" extension only. Consequently, there should be no problem.
In case you want to use chrome.runtime.onConnectNative to do the reverse (to connect from a native app to an extension which will work even when Chrome is closed) see crbug.com/967262 for more info or create a new issue there asking for details. Judging by the bits I see this feature is available only on ChromeOS and it's even disabled by default.

How to launch a chrome packaged app using a URL scheme

I have a chrome packaged app that I update form time to time - when I'm creating an update I want to send email to subscribed customers with a link the that extension -that will launch it.
Anyone knows if there is a chrome url scheme i can use?
Currently this is not possible, but there is an API proposal and an implementation being developed for a chrome-app://appid URL schema that would do pretty much what you describe.
Follow the status here
I also want to be able to do this. It seems that one possible solution is to install both an extension and a packaged app, and have the extension register a context menu that then communicates with the app, or something similar.

I'm really confused about Chrome Extension+Google API

I'm really confused. I want to make a Chrome Extension that can update a user's Google Calendar, what kind of program should I register under Google API?
Is it Web App? But I don't plan to have a server to host anything because Chrome Extensions are in the browser itself.
I really don't think it's a service account, but if it is, somebody enlighten me!
So that leaves installed applications?
Well, Google Extensions and Google API are very different in nature, and they don't have a special way to comunicate themselves.
Chrome Extensions are javascript code running in the browser allowed by a Chrome user, with more rights than a normal page; while Google API is accessed by server code, just as Google Apps Scripts (javascript code running in a Google server with some Google user's right).

Resources