Back to Actions
Updated
How to Check if AirPods Are Connected in Shortcuts on iPhone
By Sindre Sorhus, who makes the Actions app
With Actions
- Install Actions, and open it once.
- In your shortcut, add the “Get Audio Playback Destination” action of Actions. Its full name is “Get Audio Playback Destination (Does not detect AirPlay devices)”, and it has no options.
- Add an “If” action below it, choose “contains”, and type
AirPods. - Put the actions for when the AirPods are connected in the “If” part, and the other actions in the “Otherwise” part.
The result is the name of the device that plays the audio, like “Anna’s AirPods Pro”. To check one pair of AirPods, use its whole name. When the iPhone plays the audio itself, the result is “iPhone”.
Tips
- The action cannot see AirPlay devices, like a HomePod. This is a limit of iOS.
- The action is for iPhone and iPad. It does not work on Mac.
- To change where the audio plays, use the “Change Playback Destination” action of Shortcuts.
Get Actions
Additional actions for the Shortcuts app
Free
- Platforms
- macOS, iOS, visionOS
- Requires
- macOS, iOS, or visionOS 26 or later
- Category
- Utilities
- Released
- October 2021
- Privacy
- No personal data collected
- Updated
- June 2026
- Version
- 4.2.0
- Size
- 29 MB
- US App Store rating
- 4.8/5 (532 ratings)
Without an app
The Shortcuts app can run a shortcut when the AirPods connect, but it cannot check in a shortcut if they are connected:
- Make a shortcut with the actions that you want, like to open a podcast app.
- Add the “Bluetooth” automation trigger to it, and choose your AirPods. Apple’s instructions for automations.
This is good to do something each time the AirPods connect. For a shortcut that must do one thing with AirPods and another without them, use the action of Actions.
