Use the exact display name as shown on the home screen:
Copy
# Built-in appsphone.open_app("Safari")phone.open_app("Settings")phone.open_app("Photos")phone.open_app("Camera")phone.open_app("Messages")phone.open_app("Mail")phone.open_app("Maps")phone.open_app("Notes")phone.open_app("Calendar")phone.open_app("App Store")phone.open_app("Music")# Third-party apps (exact name as displayed)phone.open_app("Twitter") # or "X"phone.open_app("Instagram")phone.open_app("Slack")phone.open_app("Chrome")
App names are case-sensitive. Use the exact name as it appears on the device.
# Open Settingsphone.open_app("Settings")time.sleep(1)# Scroll to find optionphone.flick(phone.screen.center, direction="up")time.sleep(0.3)# Tap an option (e.g., Wi-Fi)phone.tap((phone.width // 2, 150))
# Open Safariphone.open_app("Safari")time.sleep(1)# Tap address barphone.tap((phone.width // 2, 80))time.sleep(0.3)# Type URLphone.type_text("example.com")# Submit (tap Go on keyboard)phone.tap((phone.width - 50, phone.height - 50))
# Start in Safariphone.open_app("Safari")time.sleep(1)# Do somethingphone.tap(phone.screen.center)# Switch to Notesphone.open_app("Notes")time.sleep(1)# Take notephone.type_text("Task completed")
phone.open_app("Photos")time.sleep(1)# Take screenshot to verifyscreenshot = phone.screenshot()# Process screenshot to verify correct app# (e.g., check for specific UI elements)