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

fix(remote_config): fixing an issue that could cause duplicate listeners on hot restart #12545

Merged
merged 5 commits into from Mar 29, 2024

Conversation

TarekkMA
Copy link
Contributor

Description

fixes: #12539

Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.

Related Issues

Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.

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. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@TarekkMA TarekkMA marked this pull request as draft March 29, 2024 06:12
@TarekkMA
Copy link
Contributor Author

TarekkMA commented Mar 29, 2024

Tested

  • iOS: ✅
  • android: ✅
  • web: NOT SUPPORTED
  • macos: ✅

@TarekkMA TarekkMA marked this pull request as ready for review March 29, 2024 07:06
@@ -291,7 +301,9 @@ - (NSString *_Nonnull)flutterChannelName {
}

- (FlutterError *_Nullable)onCancelWithArguments:(id _Nullable)arguments {
NSString *appName = (NSString *)arguments;
NSString *appName = (NSString *)arguments[@"appName"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the previous appName not in arguments and it was an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the listenerMap wasn't initialized on init

Copy link
Contributor

@exaby73 exaby73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TarekkMA TarekkMA changed the title fix(remote_config): Clean listeners on hot restart. fix(remote_config): fixing an issue that could cause duplicate listeners on hot restart Mar 29, 2024
@Lyokone Lyokone merged commit 4b78987 into master Mar 29, 2024
21 of 22 checks passed
@Lyokone Lyokone deleted the remote-config-12539 branch March 29, 2024 09:51
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 5, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 5, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 5, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 5, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 16, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
LocLt-Mobile pushed a commit to guide-inc-org/guide-flutter_fire that referenced this pull request Apr 16, 2024
…ers on hot restart (firebase#12545)

* fix(remote_config, android): Fix listener cleanup on hot restart.

* fix: implement clean up of listeners on apple side

* chore: apple setup for example app

* fix(remote_config, ios): clean listeners on hot restart

* chore: formatting

---------

Co-authored-by: russellwheatley <russellwheatley85@gmail.com>
@firebase firebase locked and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[firebase_remote_config]: When restarting the app, onUpdateConfig stream subscription is not released.
4 participants