-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
p: firebase_messagingThe Firebase Messaging pluginThe Firebase Messaging pluginp: image_pickerThe Image Picker plugin.The Image Picker plugin.p: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
So, I may be wrong, but in the plugins below it looks like that registration in the ActivityLifecycleCallbacks and in the LocalBroadcastManager may become memory leaks in case the Flutter Activity is open multiple times.
For instance, when flutter is being used in add-to-app to show a product detail. Every time that Activity is open the plugin registration process is triggered and a new listener is attached, but it is never released.
I have some ideas of how to avoid those calls, but I would like to confirm this before trying to change the code.
kjeremy and ened
Metadata
Metadata
Assignees
Labels
p: firebase_messagingThe Firebase Messaging pluginThe Firebase Messaging pluginp: image_pickerThe Image Picker plugin.The Image Picker plugin.p: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.