[Permission] [iOS] How to specify only permission for “Location when-in-use”?

#1

In Permission module, there is only one Location.

https://docs.expo.io/versions/latest/sdk/permissions#expopermissionslocation

If I only use Location When-In-Use, but not Always, how can I specify this when askAsync()?

When-In-Use
Always

I am testing askAsync(Permissions.LOCATION) on published app and standalone app, and it asks for When-In-Use permission only.

However, I got rejected from Apple recently (the app is out for a few months already) as the app Missing Info.plist key: NSLocationAlwaysUsageDescription. (I only included NSLocationWhenInUseUsageDescription)

Maybe related to some changes in iOS 11 that user can choose the type of permission to grant?

0 Likes

Rejected from App Store - reason is Missing Info.plist key but never uses location or permissions module?
#2

Hi, sorry about this. This is a known issue that we’re working on resolving right now. We believe Apple changed the way they validate binaries. See https://expo.statuspage.io

1 Like

#3

Hi there, we’ve deployed a fix to our app builder. If you rebuild your binary, it won’t contain a dependency on NSLocationAlwaysUsageDescription any more.

1 Like

closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes