0

Is it possible to save FCM generated token in mysql database? I have node.js api server (node.js + express) with registration/authentication (using JWT) which is deploing to heroku. I need to add in my android app opportunity to send push notification. Is it possible save fcm token in my existing mysql db without using firebase realtime db.

1 Answer 1

1

Yes, you can.

But you need create some web services.

When a device with your app start and call the firebase register url the id/token is generated, your app need send this token to a Data Base using a web service.

Then to send a push notification to these device you can call an other web service who recover the token from ypur Data Base to send the push notification

Sign up to request clarification or add additional context in comments.

2 Comments

thank you for your answer, what web services do you mean ?
A primitive web service can be a url who receive parameters using a GET method, yourdomain.com/webservice?token=4DFHWDF734HY8F4H&id=Mike Device. With NodeJS you can create a REST Web service using JSON

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.