Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push notification in flutter with IO socket and nodejs

I have created an app in Flutter with backend in node js and MongoDB hosted on my AWS server. For chat and notification, I am using io socket. I want to implement push notification.
I want to receive push notification just like WhatsApp and Gmail even after force closing them?
I know there is FCM(firebase cloud messaging) for push notification, But can This be done without it, as I am doing everything without implementing firebase and using IO socket and my own database. How can this be achieved, using IO sockets in a flutter? or is it like it has to be done using FCM only?

like image 486
kanwar manraj Avatar asked Nov 07 '22 02:11

kanwar manraj


1 Answers

Use SocketIO for remote push notifications is bad idea. Probably it is possible to achieve this with background processing, but definitely it is much more complicated way to develop and to use.

Using Firebase is a good practice for Flutter, it is easy to configure. Besides, it is an official way to make push notifications for android. My advice is to use FCM - here is official docs.

like image 155
Mol0ko Avatar answered Nov 11 '22 04:11

Mol0ko