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

Written by kapilgorve | Published 2020/12/22
Tech Story Tags: react | react-native | reactjs | ios-app-development | mobile-app-development | ios | ios-development | ios-apps

TLDR 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.via the TL;DR App

no story

Written by kapilgorve | Freelance Frontend Developer
Published by HackerNoon on 2020/12/22