App crashes with __CRASHING_DUE_TO_PRIVACY_VIOLATION__ when trying to access contacts

前端 未结 7 1531
陌清茗
陌清茗 2020-12-16 09:15

Upon updating to iOS 10, when trying to access the contacts through plugin cordova-plugin-contacts v2.2.0, the app exits with

__CRASHING_DUE_TO_PRIVACY_VIOLAT

7条回答
  •  遥遥无期
    2020-12-16 09:40

    For me, I was trying to request access to the microphone, but I hadn't defined the Privacy - Microphone Usage Description string.

    Go into your Info.plist file, and scroll down to the values that start with Privacy. Make sure you add keys and string values for everything relevant to your app.

提交回复
热议问题