Fix bug where calling FlutterBackground.initialize() for the first time crashes the app
Fix bug where calling FlutterBackground.hasPermissions for the first time crashes the app
Fix some typos
Address notification icon in the documentation
Enhance error handling in example app
The bug was due to a call to result.success() when calling FlutterBackground.initialize() even if the app was still waiting for the user to ignore battery optimizations, allowing for subsequent calls to FlutterBackground.enableBackgroundExecution(), that failed because the battery optimizations were not granted at this time.
FlutterBackground.initialize()
for the first time crashes the appFlutterBackground.hasPermissions
for the first time crashes the appThe bug was due to a call to
result.success()
when callingFlutterBackground.initialize()
even if the app was still waiting for the user to ignore battery optimizations, allowing for subsequent calls toFlutterBackground.enableBackgroundExecution()
, that failed because the battery optimizations were not granted at this time.