Idea for sending direct message from user to user...

8 views
Skip to first unread message

Souvik Dutta

unread,
May 23, 2020, 1:07:20 AM5/23/20
to Flutter Development (flutter-dev)
He guys,
Suppose I want to make an uber clone in flutter, I want to send drivers notification about a ride when an user orders one. I am using firebase as backend to store and retrieve data and also to figure out the nearest drivers. But I am stuck at sending the driver a message of an user wanting a ride. Any ideas on how to do this will be greatly appreciated... 
Thank you.

Graham Dickinson

unread,
May 23, 2020, 3:26:06 AM5/23/20
to Flutter Development (flutter-dev)
Firebase cloud messaging is one mechanism to send notifications to users who are active in the app or the app is closed. There are other 3rd party alternatives. Given the 'uber' driver keeps the app active all the time, I would look at using a listener on a database node used to 'flag' new lift requests eg. a data item is added or changed. I would then use a pop up dialogue to inform the driver.

Souvik Dutta

unread,
May 23, 2020, 12:42:21 PM5/23/20
to Graham Dickinson, Flutter Development (flutter-dev)
Okay. This is good but I was thinking about a more cost effective solution. I mean to just notify a driver I will have to do a minimum of two reads and writes. But I will give it a try.

Souvik flutter dev

On Sat, May 23, 2020, 12:56 PM Graham Dickinson <dickinso...@gmail.com> wrote:
Firebase cloud messaging is one mechanism to send notifications to users who are active in the app or the app is closed. There are other 3rd party alternatives. Given the 'uber' driver keeps the app active all the time, I would look at using a listener on a database node used to 'flag' new lift requests eg. a data item is added or changed. I would then use a pop up dialogue to inform the driver.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/0b7c5eaa-5962-45f6-a1a7-698333741df2%40googlegroups.com.

Graham Dickinson

unread,
May 23, 2020, 12:46:48 PM5/23/20
to Flutter Development (flutter-dev)
Maybe should use FB Realtime db for it. You only pay for data downloaded volumes.
Reply all
Reply to author
Forward
0 new messages