Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Don't register the Maps and Camera plugin for background FlutterViews. #1255

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

amirh
Copy link
Contributor

@amirh amirh commented Feb 22, 2019

Background FlutterViews do not have an activity, the Maps and Camera
plugins are foreground only and assumed and activity is available which
can result in a crash when the plugin is registered by a background
FlutterView.

We workaround by just not registering the plugins if there is no
activity.

Similar to #1125

Background FlutterViews do not have an activity, the Maps and Camera
plugins are foreground only and assumed and activity is available which
can result in a crash when the plugin is registered by a background
FlutterView.

We workaround by just not registering the plugins if there is no
activity.

Similar to flutter#1125
Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

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

LGTM

@amirh amirh merged commit 0223a65 into flutter:master Feb 22, 2019
@amirh amirh deleted the background_fix branch February 22, 2019 17:42
Akachu pushed a commit to Akachu/flutter_camera that referenced this pull request Apr 27, 2020
flutter#1255)

Background FlutterViews do not have an activity, the Maps and Camera
plugins are foreground only and assumed and activity is available which
can result in a crash when the plugin is registered by a background
FlutterView.

We workaround by just not registering the plugins if there is no
activity.

Similar to flutter#1125
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants