Member-only story
Automating iOS 18 Contacts Permissions: A Better Approach
Apple’s latest iOS 18 update introduced a new Contacts Limited Access Prompt, requiring automation frameworks like Appium to adapt. If you’re automating iOS apps, you might have encountered a frustrating scenario where the popup disrupts your tests, blocking further execution unless manually handled.
We’re happy to share that we have successfully fixed and improved the handling of this popup using a more streamlined approach. Here’s how we tackled it.
Understanding the Issue
In iOS 18, when an app requests access to Contacts, a Limited Access Prompt appears, controlled by:
📌 com.apple.ContactsUI.LimitedAccessPromptView
The prompt presents multiple options like:
- “Allow Once”
- “Allow Full Access”
If not handled correctly, this popup stalls automation, causing tests to fail or remain stuck indefinitely.
What’s New in Our Fix?
We implemented a three-step solution to ensure seamless interaction with the popup without breaking test flow.
🔹 Key Enhancements:
✅ Dynamic App Focus:
- The
defaultActiveApplication…