GuiSoySauce
GuiSoySauce

Reputation: 1783

PFGeoPoint not working on xcode7-ios9

I am trying to retrieve the current user location with Parse. But for some reason beyond my knowledge I am not being able to get anything to happen inside the block bellow. Neither point nor error.

I am running xcode 7 with ios9.

   func geoLocation(){
        print("GEO LOCATION")
        PFGeoPoint.geoPointForCurrentLocationInBackground { (point: PFGeoPoint?, error: NSError?) -> Void in
            print("POINT\(point)\(error)")
        }
    }

Upvotes: 1

Views: 97

Answers (1)

Legenetic
Legenetic

Reputation: 23

NSLocationWhenInUseUsageDescription

and

NSLocationAlwaysUsageDescription

Put this keys in the info.plist

This is now a requirement for IOS 8 and above.

Upvotes: 1

Related Questions