-
Notifications
You must be signed in to change notification settings - Fork 4k
fix(firebase_messaging): ensure plugin callback registered #1774
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
Conversation
The fact that the isolate is already running should not prevent the callback from being registered.
Very nice, merge this ASAP. |
I'd also like to see it merged 👍 |
bump for this please, just spent the past few hours trying to get this working, background messages was the first thing I tried to get working after installing this plugin and it doesn't work without this change. |
Update changes from FirebaseExtended/flutterfire
@brokenalarms I've updated CHANGELOG.md and it looks like that was necessary for the code owners to be notified, my bad. In the meantime, you could use my fork (I've updated it just now): https://github.com/Eddydpyl/flutterfire |
Awesome, thanks!
[Daniel - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=gc8da) [gc8da]
On April 6, 2020 at 6:51 GMT, Eduardo del Palacio Lirola <[email protected]> wrote:
[@brokenalarms](https://github.com/brokenalarms) I've updated CHANGELOG.md and it looks like that was necessary for the code owners to be notified, my bad. In the mean time, you could use my fork (I've updated it just now): https://github.com/Eddydpyl/flutterfire
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#1774 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABYLYCXEB5LQQ7HU3QTVLXTRLF3WPANCNFSM4KDUOR5A).
|
so this is the solition ? i have same problem |
why not merge? |
Why is this PR not being reviewed? After hours of trying to solve this, realized that this is a known issue and it's blocking. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Thanks for sending this PR. The change makes sense to me and as far as I can tell this is the correct fix. I've gone ahead and published |
@Eddydpyl In my case "onBackgroundMessage" still works inconsistently. Sometimes it works correctly and sometimes it returns "Service took too long to process intent: com.google.android.c2dm.intent.RECEIVE App may get closed." Could someone be kind enough to pass me the plugin registry settings for embedding v2? Thanks
|
@Fbrusca I'm afraid I don't know how to help you with this. You should probably open a new issue. |
The fact that the isolate is already running should not prevent the callback from being registered.
Description
The onBackgroundMessage callback stops triggering after app restart (see related issues). This seems to be caused by the pluginRegistrantCallback not being registered every time the FcmDartService#start method is called, due to the fact that the isolate is already running. Removing the check for the isolate not running solves the problem, and I'm yet to observe any side effects. That being said, I cannot guarantee this is the best way to handle the issue.
Related Issues
Solves the issue descrived in #1709 and might also solve #1590.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?