You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this looks like tricky, am not sure if it can detect apps goes back from background and using inside backgounrd service.
What I want to do, is judge inside backgounrd service, if in background then send notificatio when new messages comes in, otherwise not notify since user already on UI.
Could lfutter-fgbg able to do this?
Why i need this is bacause i can not found a good way to control backgroudn services with flutters's widgetBindgObserver
The text was updated successfully, but these errors were encountered:
I'm unsure. Is this a native background service? Sample code? There could be APIs in notification system to do this, because this is how most apps behave.
A workaround will be your Flutter app storing the last flutter_fgbg event somewhere your background service can access. Service can just check the value to figure out app's current state. But there might be an issue when user swipe closes the app from recent apps or app crashes during the use. That will have to be checked.
this looks like tricky, am not sure if it can detect apps goes back from background and using inside backgounrd service.
What I want to do, is judge inside backgounrd service, if in background then send notificatio when new messages comes in, otherwise not notify since user already on UI.
Could lfutter-fgbg able to do this?
Why i need this is bacause i can not found a good way to control backgroudn services with flutters's widgetBindgObserver
The text was updated successfully, but these errors were encountered: