我在Flutter中使用shared_preferences: ^2.0.7和flutter_background_service: ^0.1.5。但是当我调用shared preferences时出现错误:
"Flutter: Unhandled exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)"
在前台模式下工作时,调用可以正常进行,但此问题仅发生在后台模式下的调用。