getBackgroundLocationAllowed method

bool getBackgroundLocationAllowed()
override

On iOS devices this checks if application's background location updates are enabled. Returns true if background location updates are allowed, false otherwise.

On Android devices this is not supported and false is returned.

Implementation

bool getBackgroundLocationAllowed() {
  if (Platform.isIOS) {
    return _location.getBackgroundLocationAllowed();
  }
  return false;
}