Open ghost opened 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. :)
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
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 .
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