Mister Fisher
Mister Fisher

Reputation: 83

How do I use firebase token in mysql?

I am coding an app on ios and Android. In this app, entity will be able to create account and from this account, create events. Users will receive notification when an event is created in terms of his favorite entity.

I managed to send a notification with firebase (for android at the moment) from php with the token taken in log in android studio.

So, is it the good way to store each token in mysql database where I could select the favorite of each token and send the notification from php when the event is created ?

Do I have to use firebase database ? If yes, what I have to do in firebase ? How does firebase database run ? I don't find explicit tuto about it...

Thanks

Upvotes: 0

Views: 550

Answers (1)

Simon
Simon

Reputation: 1737

I would recommend Firebase Topics. You only need to worry about subscribe and unsubscribe user. And when you are sending the message out, you only need to specify the topic, instead of array of tokens.

Upvotes: 1

Related Questions