Firebase Messaging

Hi

I am hoping to create an automation or an action that can send notifications to firebase using UIBakery. Has anyone implemented this?

I currently use firebase-admin - npm in my node scripts. I am wondering if this library can be imported in custom packages and used within UIBkaery. So far I am having no luck, when i try to import the node package I get “module node:fs not found” in the logs.

TIA

Hi @AndrewMc

Most likely, it won’t be possible to connect this library because it requires node:fs, and our automation environment has limited access to the file system since the code runs on our servers.
If our Firebase data sources don’t work for you, I’m afraid it won’t be possible to connect Firebase in automations any other way.
We can recommend trying some other libraries: maybe one of them will import properly.

1 Like

Thanks Kate
Its not a problem, I will create an extenal REST API endpoint for this work.

Is there anyway to load addtional node npm libraries on the backend if the instance is hosted on-prem?

A.

Hi @AndrewMc

I’m afraid, there are no other ways available except from the default one.

1 Like