How can I program my iPhone so it opens an app automatically when it connects to CarPlay or my car’s Bluetooth
How can I “program/setup” my iPhone so it opens an app automatically when it connects to CarPlay or my car’s Bluetooth?
Does Automator or shortcuts do that? If yes, any recommendations/steps to follow?
You need to create a Personal Automation in the Shortcuts app.
When you initially create the automation, it will ask you for the condition that will cause it to launch. There are several options like time of day, when you arrive or leave somewhere and even when something gets connected. Select "Bluetooth." (If your car supports CarPlay and you have it configured, you can select "CarPlay" instead)
Once you choose Bluetooth, you will how have the option to choose the specific device. Select your car.
Then you can choose your action. If you want to open a particular app, simply click on "Add Action," select "Scripting" and then select "Open App." Tap on the "Choose" link to select your app. When finished adding your action(s), tap next to see the summary. Tap "Done" when finished.
When your iPhone connects to your car's Bluetooth, it will execute that action. Keep in mind it can't differentiate when you disconnect and reconnect so if you happen to disconnect Bluetooth while driving and then reconnect it, it will launch the app again so you might want to add a simple confirmation dialog (yes/no) confirming you want to launch the app; this too can be done in "Scripting."