I just noticed in the docs for requestTemporaryFullAccuracyAuthorizationwithPurposeKey - https://developer.apple.com/documentation/corelocation/cllocationmanager/3600217-requesttemporaryfullaccuracyauth:
To localize a usage description, add an entry to your InfoPlist.strings file with the same key you provide for this parameter. So for following structure of the plist:
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
<dict>
<key>TempLocationPurposeYetis</key>
<string>We use your location to find Yetis nearby</string>
<key>TempLocationPurposeHaunted</key>
<string>We use the temporary location to display nearby haunted houses</string>
</dict>
Your InfoPlist.strings should be:
"TempLocationPurposeYetis" = "We use your location to find Yetis nearby";
"TempLocationPurposeHaunted" = "We use the temporary location to display nearby haunted houses";
Tested on Xcode 12 beta 2 + iOS 14 beta 3
Post
Replies
Boosts
Views
Activity
It would be best if it could be done via InfoPlist.strings, similar to other permission strings, like this:
"NSLocationTemporaryUsageDescriptionDictionary.Purpose1" = "We use your location to do a thing";
"NSLocationTemporaryUsageDescriptionDictionary.Purpose2" = "We use your location to do something very different";