website icon indicating copy to clipboard operation
website copied to clipboard

Background processing

Open MaikuB opened this issue 1 year ago • 1 comments

What information is missing?

There is documentation on doing background processing at https://docs.flutter.dev/development/packages-and-plugins/background-processes. It looks out of date as there have been changes that I've not seen communicated more widely.

Examples include

  • Flutter 3.3 appeared to ship with a version of Dart SDK with more aggressive tree-shaking where functions invoked by background isolates need the @pragma("vm:entry-point", ...) annotation. Without this annotation, release builds will fail and there a number of issues reported across various repositories on this problem. See https://github.com/search?q=Dart_LookupLibrary&type=issues
  • Information on how to use plugins with background isolates. Some issues can be found across GitHub where developers run into MissingPluginExceptions. An example of this is https://github.com/flutter/flutter/issues/99155 where there are links to other related issues

How would you like us to fix this problem?

Update documentation on website and/or provide tutorials/cookbooks to cover the various scenarios and mention the code that developers need to add. From what I could tell, the way to find out the solution is to experience the various crashes and look up GitHub to find out more details on the cause and how to solve the problem

MaikuB avatar Sep 20 '22 09:09 MaikuB

This is quite true.

sfshaza2 avatar Sep 20 '22 16:09 sfshaza2

This duplicates https://github.com/flutter/website/issues/1986. Closing this issue.

atsansone avatar Jun 05 '23 15:06 atsansone