-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] Android: background service refactoring #261
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
…nals directly (instead of the plugin)
On behalf of those of us that don't have the skills to troubleshoot at this level, a sincere thanks. Great to see these problems identified and addressed in rapid succession. |
/cc @bparrishMines |
Glad to see this is a work in progress |
Yes
…On Thu, Nov 14, 2019, 6:21 AM Goodhope Ordu ***@***.***> wrote:
Glad to see this is a work in progress
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#261>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTZ3JNKX5LR2ASWEZIL3N3QTUYEBANCNFSM4I5EL6HA>
.
|
f5c0ced
to
eee1993
Compare
The PR has been refactored and includes a few more simplifications on the Android side, including:
I'd appreciate if the community could help and test this PR. If you are interested, please adjust the
|
…s on V2 embedding
@invertase - similarly, this PR could use someones attention. We are using it in production as else wise we'd run into memory leaks or similar. Also, it simplifies the integration on App side quite significantly. |
63e98ce
to
95782bd
Compare
Thanks for this PR, its on our radar don't worry 🙃 we're close to shipping Functions & Storage reworks, after which we're focusing on messaging |
Also if you have any other PRs or issues that you're tracking and think we should look at please let us know below, thanks |
Description
Currently, the FM plugin register 2 method channels (for FG and BG processing).
This breaks when a App consists of more than 1 standard isolate, as it means on every isolate instantiation, the plugin will overwrite the previous background channel.
By setting the background channel within the plugin registration, it also introduced a memory leak (see #260). More importantly, when the foreground App is stopped, notifications may not always come through, as the background channel has been overwritten.
Update 2020/06/07:
The PR has been updated since and now uses a FlutterEngine object internally which removes most of the previously needed integration work on Android. The need to register a plugin registrant callback has been removed.
Additionally, analysis with LeakCanary has been done and memory leaks removed.
Related Issues
This PR is based on #259; Merging that first is preferred to declutter this PR a bit.
#260
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?
/cc @kroikie