Contents

requestTemporaryFullAccuracyAuthorization(withPurposeKey:)

Requests permission to temporarily use location services with full accuracy.

Declaration

func requestTemporaryFullAccuracyAuthorization(withPurposeKey purposeKey: String)

Parameters

  • purposeKey:

    A key in the Nslocationtemporaryusagedescriptiondictionary dictionary of the app’s Info.plist file. The value for this key is an app-provided string that describes the reason for accessing location data with full accuracy. To localize a usage description, add an entry to your InfoPlist.strings file with the same key you provide for this parameter.

Discussion

This method behaves the same as calling the requestTemporaryFullAccuracyAuthorization(withPurposeKey:completion:) method, passing nil as the completion closure. Use this method if your app’s logic to respond to changes in location data accuracy is already handled by the locationManagerDidChangeAuthorization(_:) delegate method, and your app doesn’t have any work to do in the closure.

See Also

Requesting authorization for location services