paint-brush
How to Add NSLocationAlwaysUsageDescription Key to Info.plist File in Your iOS Appby@kapilgorve
7,062 reads
7,062 reads

How to Add NSLocationAlwaysUsageDescription Key to Info.plist File in Your iOS App

by Kapil Gorve1mDecember 22nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React Native has a GeoLocation service which gets included by default into your build. Even if you do not use the GeoLocation API in your codebase, it is still in your app build. This triggers code bots about possible usage of Geolocation. You need to add a custom message about why you need user's location data as well. You can see on the left Libraries in current app in below screenshot. This solved the NSLocationAlwaysUsageDescription issue. I deleted RCTGeolocation.xcodeproj from libraries folder in XCode.

Company Mentioned

Mention Thumbnail
featured image - How to Add NSLocationAlwaysUsageDescription Key to Info.plist File in Your iOS App
Kapil Gorve HackerNoon profile picture
Kapil Gorve

Kapil Gorve

@kapilgorve

Freelance Frontend Developer

About @kapilgorve
LEARN MORE ABOUT @KAPILGORVE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kapil Gorve HackerNoon profile picture
Kapil Gorve@kapilgorve
Freelance Frontend Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite