nitishk72 / flutter_app_local_notification

Send Locally Notification to the Flutter Application
https://medium.com/@nitishk72/flutter-local-notification-1e43a353877b
35 stars 20 forks source link

Silly question #1

Open ghost opened 6 years ago

ghost commented 6 years ago

So if the app is not opened then notifications sent from the server will just bunch up in the server queue. Then when the user opens the app they all fire :)

So I was wondering if a background task can be used so if the user is at least online then the notification event can fire ?

I think there was talk of background services sort of hack. They were using the alarm I believe

Just brainstorming

pranavkapoorr commented 6 years ago

@gedw99 did you get any solution to this? I am also trying to figure out how to get notifications if app is terminated. Let me know if any luck. :)

nitishk72 commented 6 years ago

For getting Notification from server you can use Firebase Messaging which helps user to get notifications when app is not opened or app is in background.

Firebase Messaging includes background Task. You need not to worry everything will be done by Firebase only

ghost commented 6 years ago

I need to do it without firebase.

The new background tasks in flutter should work. Server side it's just a matter of having a mailbox setup. Many golang libraries do this.

Can we have a go at getting an example going ? I can help with the golang and flutter.

On Sat, 22 Sep 2018, 04:06 Nitish Kumar Singh, notifications@github.com wrote:

For getting Notification from server you can use Firebase Messaging which helps user to get notifications when app is not opened or app is in background.

Firebase Messaging includes background Task. You need not to worry everything will be done by Firebase only

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nitishk72/flutter_app_local_notification/issues/1#issuecomment-423709396, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwp0hceQLlCi2JRr4I3G_gpO9JvDWks5udZsXgaJpZM4VQPk2 .