-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add getInitialMessage method for handling push notification in Terminated App State #1028
Conversation
…terminated app state and update screen widget to handle it
…after the app is initialized
…oved it to the PageInitializer widget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you missing some files? You are removing the logic to execute callbacks but added somewhere else?
Here's how you can resolve the race condition:
This will ensure the 1st scren you load will be the screenId/screenName you have. |
I added it in the screen widget, it's because the ensemble_app fetches the definition and then only it renders the widget. So I just added it in the screen widget, here the material app is already initialized with the definition. |
I updated the Firebase getInitialMessage and updated the client's main.dart to initialize the app with screen id or name when the app launched from the push notification in the terminated state |
…n with getInitialMessage of firebase
@vusters I'll merge this PR |
Ticket: #1027