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
Hi, i'm developing a VoIP app and having problem with background handler. What i want is: sending push with type "call" then the app will show Call UI, later if receive push type "hangup" , the app will close that call UI.
In background handler i'm using a singleton global class to inform hang up event with a StreamController and CallScreen widget will listen to that stream to close itself.
Then i found out that flutterfire will start another isolate for background handler (turn off device) , so it will create another singleton class -> i can't close my CallScreen UI with this new singleton class.
Is it possible to do something like this with flutterfire's background isolate ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm developing a VoIP app and having problem with background handler. What i want is: sending push with type "call" then the app will show Call UI, later if receive push type "hangup" , the app will close that call UI.
In background handler i'm using a singleton global class to inform hang up event with a StreamController and CallScreen widget will listen to that stream to close itself.
Then i found out that flutterfire will start another isolate for background handler (turn off device) , so it will create another singleton class -> i can't close my CallScreen UI with this new singleton class.
Is it possible to do something like this with flutterfire's background isolate ?
Example pseudo code:
Beta Was this translation helpful? Give feedback.
All reactions