diff --git a/packages/location_background/ios/Classes/LocationBackgroundPlugin.m b/packages/location_background/ios/Classes/LocationBackgroundPlugin.m index b0ca3acf5d2c..ea266a91013e 100644 --- a/packages/location_background/ios/Classes/LocationBackgroundPlugin.m +++ b/packages/location_background/ios/Classes/LocationBackgroundPlugin.m @@ -178,7 +178,7 @@ - (void)startHeadlessService:(int64_t)handle { // Here we actually launch the background isolate to start executing our // callback dispatcher, `_backgroundCallbackDispatcher`, in Dart. - [_headlessRunner runWithEntrypointAndCallback:entrypoint libraryUri:uri completion:nil]; + [_headlessRunner runWithEntrypointAndLibraryUri:entrypoint libraryUri:uri]; // The headless runner needs to be initialized before we can register it as a // MethodCallDelegate or else we get an illegal memory access. If we don't