Closed josedavidrp closed 3 years ago
I'm getting the same error and wanted to add that it only started when updating to version 0.7.0.
Flutter: 2.3.1 stable Dart: 2.14.2 Device: iPhone 7
Same error here!
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method start_location_service on channel com.almoullim.background_location/methods)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)
<asynchronous suspension>
#1 BackgroundLocation.startLocationService (package:background_location/background_location.dart:22:12)
background_location: ^0.7.0 Flutter: 2.5.2
Thanks for your help!
The problem seem to be the flutter channel, this works for me:
https://github.com/Almoullim/background_location/blob/master/ios/Classes/SwiftBackgroundLocationPlugin.swift line 12
SwiftBackgroundLocationPlugin.channel = FlutterMethodChannel(name: "com.almoullim.background_location/methods", binaryMessenger: registrar.messenger())
So thats my problem, I couldn't even try the plugin as It doesn't find the method.
I will provide more info if needed
Flutter: 2.5.2 stable. Xcode: 13.0
Trying on a iPhone 12 mini iOS 12.2