Guilherme Barbosa
Guilherme Barbosa

Reputation: 5

Push notifications in my app using FCM without firebase console

I would like to use push notifications in my app (Ionic) with Firebase Cloud Messaging without firebase console. I need to send notifications directly from my app.

Is it possible?

Thanks!

Upvotes: 0

Views: 2033

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 600006

There is an API for sending messages to devices, groups of devices, and topics (that clients can subscribe to). For an example, see the page in the Firebase documentation on sending your first message.

Note that sending messaging to an app requires that your specify the FCM server key. As its name implies, this key should only be used on a server you control or an otherwise trusted environment. That's why the examples in the documentation are CURL calls, which you can easily run from your development machine or server.

Upvotes: 1

Related Questions