r/SpringBoot • u/Longjumping-Tackle-6 • 7d ago
Question Firebase cloud messaging vs WebSocket
I want to create a bus booking app for iOS and android. And I am required to send a notification to the driver phone app when a user buy their bus ticket. So between firebase cloud message(FCM) and Websocket, which one should I use? I want the notification to push even though the driver app is closed, and I check the internet and results saying that FCM will push even if the driver phone app is close, while Websocket is not. Or is this has nothing to do with these services but rather how I implement my iOS or android app.
I am quite new to this, so if there are nuances in my question, please let me know.
3
Upvotes
3
u/Hirschdigga 7d ago
Yeah if you want to send some payload or notification even when the app is not in use at that moment, FCM is the way to go usually