Skip to content
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

Pull out static values that were causing exceptions when launching from a background Firebase message #22

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

Brandon-Wolff
Copy link
Contributor

Fix for #21. This is a bigger change, when Firebase Messaging receives a message while the app is terminated it starts up its own Flutter Engine. That creates an instance of this plugin, so when the app itself launches via the notification, another instance is created, but it skips the initialization step. Then when create (or any other method) is called, it throws a MissingPluginException because no MethodCallHandler was actually set up.

@asmodeoux asmodeoux merged commit 816afcb into Diversido:main Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants