From bbcf1eac4c60481dc45166def37b0cf12e5d8d29 Mon Sep 17 00:00:00 2001
From: geisterfurz007 <geisterfurz007@users.noreply.github.com>
Date: Thu, 25 Mar 2021 20:00:51 +0100
Subject: [PATCH] Add result calls to iOS platform code (#36)

Without these, all functions except addRegion and removeRegion don't resolve their future.
---
 ios/Classes/SwiftFlutterGeofencePlugin.swift | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ios/Classes/SwiftFlutterGeofencePlugin.swift b/ios/Classes/SwiftFlutterGeofencePlugin.swift
index 57d4c60..3ed8fb9 100644
--- a/ios/Classes/SwiftFlutterGeofencePlugin.swift
+++ b/ios/Classes/SwiftFlutterGeofencePlugin.swift
@@ -48,14 +48,19 @@ public class SwiftFlutterGeofencePlugin: NSObject, FlutterPlugin {
 			result(nil)
 		} else if (call.method == "removeRegions") {
 			geofenceManager.stopMonitoringAllRegions()
+			result(nil)
 		} else if (call.method == "getUserLocation") {
 			geofenceManager.getUserLocation()
+			result(nil)
 		} else if (call.method == "startListeningForLocationChanges") {
 			geofenceManager.startListeningForLocationChanges()
+			result(nil)
 		} else if (call.method == "stopListeningForLocationChanges") {
 			geofenceManager.stopListeningForLocationChanges()
+			result(nil)
 		} else if (call.method == "requestPermissions") {
 			geofenceManager.requestPermissions()
+			result(nil)
 		}
 	}