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

Enable plugins in isolate #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lyio
Copy link
Member

@lyio lyio commented Aug 25, 2021

No description provided.

lyio added 3 commits July 28, 2021 14:12
+ Add `allowCellular` flag to the `enqueue` that defaults to `true`
+ Add separate `NSURLSession` on iOS that 
sets `allowsCellularAccess` false in its configuration
+ Schedule download requests with one of the 
two sessions depending on the flag of the download
+ Add the flag to the Android plugin and set the 
network constraints to either `NetworkType.CONNECTED` or `NetworkType.UNMETERED` depending on the value of the flag
+ Migrate sql database on Android to keep track of 
the flag
+ Attaching a FlutterEngine in Android to the isolate
and registering plugins
+ Change the iOS example to also register all 
plugins in the background isolate
@lyio lyio requested a review from kuhnroyal August 25, 2021 07:37
@lyio lyio self-assigned this Aug 25, 2021
Copy link
Member

@kuhnroyal kuhnroyal left a comment

Choose a reason for hiding this comment

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

Fix Dart formatting

lyio pushed a commit that referenced this pull request Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants