You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working in Xcode 8.3.2 with the latest swift release (Swift 3). I have been using the setLocation method for saving my current location in my firebase database. Is there something wrong with this code block:
func updateUserLocation(){letuserID=FIRAuth.auth()!.currentUser!.uid
print("BEN --- Current user ID: \(userID)")
geoFire!.setLocation(currentLocation, forKey: userID){(error)in
if(error !=nil){print("BEN: --- An error occured: \(String(describing: error))")}else{print("Ben ---- Saved location")}}}
Or am I missing something? Your help would be greatly appreciated.
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I am working in Xcode 8.3.2 with the latest swift release (Swift 3). I have been using the setLocation method for saving my current location in my firebase database. Is there something wrong with this code block:
Or am I missing something? Your help would be greatly appreciated.
Thanks
The text was updated successfully, but these errors were encountered: