Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get real-time notifications in Flutter

I am new in Flutter, I have used web_socket_channel in my app. Now I want to get notifications when the app is not running. Keeping the app running in the background is not possible, so what do you recommend me to do?

So far I found them:

Websocket Manager- They claim to open socket connection in the background, but I couldn't find enough resources to find out. https://pub.dev/packages/websocket_manager

Background Fetch - Opens the app for a few seconds in the background periodically (15 minutes or more). I do not prefer this one actually :( . https://pub.dev/packages/background_fetch

like image 552
Greedy Pointer Avatar asked Oct 28 '25 07:10

Greedy Pointer


1 Answers

You can use firebase_messaging, it's easy to implement in android and got a bit of configurations to do in IOS but it's good.

like image 54
Qonvex620 Avatar answered Oct 29 '25 22:10

Qonvex620



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!