website
website copied to clipboard
Background processing
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
MissingPluginException
s. 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
This is quite true.
This duplicates https://github.com/flutter/website/issues/1986. Closing this issue.