cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
554 stars 681 forks source link

Error When Using Flutter `carp_background_location` in Flutter Background Service on iOS. #1012

Open Sunil-nith opened 3 months ago

Sunil-nith commented 3 months ago

I am getting an error when calling carp_background_location in a background service. It works perfectly without the background service and works correctly on Android. I am getting the error only on iOS. Here is the error log:

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)

#1 BackgroundLocator.isServiceRunning (package:background_locator_2/background_locator.dart:61:13) #2 LocationManager.isRunning (package:carp_background_location/src/location_manager.dart:46:7) #3 LocationManager.start (package:carp_background_location/src/location_manager.dart:74:20)