Using FCM without a custom server?

175 views
Skip to first unread message

Manuel Maccou

unread,
Aug 16, 2019, 7:38:31 PM8/16/19
to Firebase Google Group
I've hired a freelancer to build the first iteration of my app using firebase. I'm non-technical, but am trying to learn as much as possible about firestore/firebase so that I can make updates in future iterations. Regarding notifications and analytics...ideally, I would like to use FCM so I can track notification analytics such as notifications opens and actions after the user opened the app. The freelancer I hired said that is not possible without having a custom server built with PHP, NodeJS, etc. I just wanted to confirm this with the firebase community. Is a custom server required to use FCM?

Kato Richardson

unread,
Aug 19, 2019, 4:58:04 PM8/19/19
to Firebase Google Group
Hi Manuel,

If you only plan to send bulk messages to your audiences--e.g. promotions or engagement campaigns--you can compose and send them entirely in the Firebase admin console and without a custom server.

However, if you plan to send any sort of transactional messages, such as notifying a user when a friend signs in or when a new message arrives, these require a server side component to manage your admin API keys and credentials and actually send the request to FCM's APIs--documented here. Our currently supported server SDKs are Node, Java, Python, Go, and C#--note that PHP isn't in that list although you can get things running with PHP through our HTTP REST endpoints if needed.

One alternative to maintaining your own server is to send messages using Cloud Functions triggers. This means you just need to write and deploy a minimal Node script. I'd recommend evaluating this when working small development teams and third party developers, since you aren't tied to server maintenance with this approach (Google manages the server and scale).

☼, Kato

On Fri, Aug 16, 2019 at 4:38 PM Manuel Maccou <m.ma...@gmail.com> wrote:
I've hired a freelancer to build the first iteration of my app using firebase. I'm non-technical, but am trying to learn as much as possible about firestore/firebase so that I can make updates in future iterations. Regarding notifications and analytics...ideally, I would like to use FCM so I can track notification analytics such as notifications opens and actions after the user opened the app. The freelancer I hired said that is not possible without having a custom server built with PHP, NodeJS, etc. I just wanted to confirm this with the firebase community. Is a custom server required to use FCM?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b63b054a-f83d-4bde-85b8-af155a21997d%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Manuel Maccou

unread,
Aug 19, 2019, 6:47:40 PM8/19/19
to Firebase Google Group
Hi Kato thanks for the response! The notifications are based on user location and have to follow a few certain rules and logic before they are sent. Some of that logic is stored on the users device. I'll look into cloud functions and see if that could work given that some logic is on the users device

Kato Richardson

unread,
Aug 20, 2019, 8:08:14 PM8/20/19
to Firebase Google Group
If the information is on user devices, then the devices can subscribe and unsubscribe to topics to basically join or leave notification groups. A lot depends on your use case of course.

☼, Kato 

On Mon, Aug 19, 2019 at 3:47 PM Manuel Maccou <m.ma...@gmail.com> wrote:
Hi Kato thanks for the response! The notifications are based on user location and have to follow a few certain rules and logic before they are sent. Some of that logic is stored on the users device. I'll look into cloud functions and see if that could work given that some logic is on the users device

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages