Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: workmanager_workspace
name: workmanager

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ class BackgroundWorker(
) {
val callbackHandle = SharedPreferenceHelper.getCallbackHandle(applicationContext)
val callbackInfo = FlutterCallbackInformation.lookupCallbackInformation(callbackHandle)

if (callbackInfo == null) {
Log.e(TAG, "Failed to resolve Dart callback for handle $callbackHandle.")
completer?.set(Result.failure())
return@ensureInitializationCompleteAsync
}

val dartBundlePath = flutterLoader.findAppBundlePath()

if (isInDebug) {
Expand Down
Loading