Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase/Core require NSLocationWhenInUseUsageDescription in the info.plist file

Tags:

ios

firebase

I added Firebase/Core to my project in the Podfile:

pod 'Firebase/Core'

Than I added GoogleService-Info.plist. It's all changes that I made.

Analytics works, because I see some activities from my devices in the DebugView in the Firebase console.

But after uploading the app to the store, I receive a letter with this text:

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data.

The Installation instruction for Firebase doesn't mention it

I want analytics for my app. How can I solve this problem? For what reason do I need to specify the NSLocationWhenInUseUsageDescription key?

Additional information

  1. I updated xCode in this app release.
  2. My GoogleService-Info.plist has enabled IS_GCM_ENABLED flag.
like image 699
Владимир Широков Avatar asked Apr 26 '18 10:04

Владимир Широков


1 Answers

Looks like smth. in the Apple review changed...

i had to to remove all those frameworks to pass

# SDKs
# pod 'FBSDKCoreKit'
# pod 'Fabric'
# pod 'Crashlytics'
# pod 'TwitterKit'
# pod 'Firebase/Core'
# pod 'OneSignal', '~> 2.4.1' # if you upgrade to newer, please also update to newer non-deprecated methods

however the app is unusable after that... the key is in one of those frameworks, or combination

(note, just removing Facebook and Firebase didnt helped)


Looks like it is caused by

# pod 'Fabric'
# pod 'Crashlytics'

Looks like a temp issue https://forums.developer.apple.com/thread/101367

like image 130
Peter Lapisu Avatar answered Oct 12 '22 19:10

Peter Lapisu