Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Do I need to provide contact usage description in Info.plist for making a phone call using UIApplication.shared.open with tel:// URL scheme in Swift?

I am using the following code to make a phone call in my Swift iOS app:

if let phoneNumber = URL(string: "tel://8001968001") { UIApplication.shared.open(phoneNumber) }

I want to know if I need to provide a contact usage description in the Info.plist file for this functionality. I know that a usage description is required for accessing the user’s contacts or address book, but in this case, I am only initiating a phone call using the // URL scheme.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have already provided the necessary NSAppTransportSecurity settings in the Info.plist file to allow arbitrary loads for the URL scheme. However, I am unsure if a contact usage description is still required. Can someone clarify whether a contact usage description is necessary in this scenario?

Any help or insights would be greatly appreciated. Thank you!

if let phoneNumber = URL(string: "tel://8001968001") { UIApplication.shared.open(phoneNumber) }

>Solution :

you do not need to provide a contact usage description in the Info.plist file. The contact usage description is only required when your app attempts to access the user’s contacts or address book.

Apple documentation explicitly stating that a contact usage description is not required for the

tel:// 

URL scheme.

  1. Apple Developer Documentation – Privacy: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy
  2. Apple Developer Documentation – Requesting Permission to Access Data: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading