Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Add result calls to iOS platform code (#36)
Browse files Browse the repository at this point in the history
Without these, all functions except addRegion and removeRegion don't resolve their future.
  • Loading branch information
geisterfurz007 authored Mar 25, 2021
1 parent 16da6ee commit bbcf1ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/Classes/SwiftFlutterGeofencePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit bbcf1ea

Please sign in to comment.