jeduan / cordova-plugin-facebook4

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
767 stars 511 forks source link

IOS ITMS-90683: Missing Purpose String in Info.plist - NSLocationWhenInUseUsageDescription #877

Closed marcorubagotti closed 3 years ago

marcorubagotti commented 4 years ago

Bug or feature request

ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSLocationWhenInUseUsageDescription key ...

if I search inside the xcode project "corelocation" I find references in the file Pods .xconfig

FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKCoreKit" "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKLoginKit" "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKShareKit" "${PODS_ROOT}/OneSignal/iOS_SDK/OneSignalSDK/Framework" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) FBSDKCOCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKCoreKit/FBSDKCoreKit.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKLoginKit/FBSDKLoginKit.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/FBSDKShareKit/FBSDKShareKit.framework/Headers" LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -l"stdc++" -l"z" -framework "CoreGraphics" -framework "FBSDKCoreKit" -framework "FBSDKLoginKit" -framework "FBSDKShareKit" -framework "OneSignal" -framework "SystemConfiguration" -framework "UIKit" -framework "UserNotifications" -framework "WebKit" -weak_framework "Accelerate" -weak_framework "Accounts" -weak_framework "AudioToolbox" -weak_framework "CoreGraphics" -weak_framework "CoreLocation" -weak_framework "Foundation" -weak_framework "QuartzCore" -weak_framework "Security" -weak_framework "Social" -weak_framework "UIKit" PODS_BUILD_DIR = ${BUILD_DIR} PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES

my cordova plugins are:

cordova-plugin-app-version 0.1.9 "AppVersion" cordova-plugin-background-mode 0.7.3 "BackgroundMode" cordova-plugin-brightness 0.1.5 "Brightness" cordova-plugin-camera 4.1.0 "Camera" cordova-plugin-device 2.0.2 "Device" cordova-plugin-facebook4 6.4.0 "Facebook Connect" cordova-plugin-file 6.0.2 "File" cordova-plugin-inappbrowser 3.2.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.2.0 "cordova-plugin-ionic-webview" cordova-plugin-media 5.0.3 "Media" cordova-plugin-music-controls2 3.0.5 "Music Controls" cordova-plugin-nativestorage 2.3.2 "NativeStorage" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-sign-in-with-apple 0.0.1 "cordova-plugin-sign-in-with-apple" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-plugin-x-socialsharing 5.6.5 "SocialSharing" cordova-sqlite-storage 5.0.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" es6-promise-plugin 4.2.2 "Promise" onesignal-cordova-plugin 2.9.1 "OneSignal Push Notifications"

Expected Behavior

Remove the NSLocationWhenInUseUsageDescription request if not really necessary

Plugin version, OS, devices, etc

Latest release v6.4.0 - Ios devices

Additional Context

i found similar problem on ios-sdk repo https://github.com/facebook/facebook-ios-sdk/issues/1266

noahcooper commented 3 years ago

This plugin is deprecated. Check out cordova-plugin-facebook-connect at https://www.npmjs.com/package/cordova-plugin-facebook-connect. This issue was fixed in v6.2.0 of the Facebook iOS SDK, and cordova-plugin-facebook-connect is currently using v8 of the SDK.