Start app if connected to CarPlay

Is there a way to trigger the start of my app (just for a short time) when the iPhone is connected to CarPlay (and/or to a car via bluetooth). I could not find anything. I don´t want to apply for CarPlay as I have no intention to show something on the cars screen.

Any even small tipp is welcome

Answered by DTS Engineer in 881874022

Thanks for the post.

Unfortunately, there is no direct, programmatic way within the iOS SDK to automatically wake or launch your app specifically when the iPhone connects to CarPlay or a standard car Bluetooth system.

Its important to mention your app is completely sandboxed from knowing anything about the CarPlay lifecycle.

As a user, you can create a shortcut on your device.

  1. Open the Shortcuts app and go to the Automation tab.
  2. Tap + and select CarPlay or Bluetooth and select. The menu could be a little different.
  3. Set it to Connects and choose Run Immediately so it doesn't ask for permission every time like shortcuts do.
  4. For the action, they can select Open App and choose the app you want to run on the iOS device.

Hope that give you an idea.

I hope people do not provide you with ideas using Core Motion or Core Location to wake your app in the background when the user starts moving in a vehicle.

It is advisable to avoid those options due to the potential issues they may cause.

Albert
  Worldwide Developer Relations.

Accepted Answer

Thanks for the post.

Unfortunately, there is no direct, programmatic way within the iOS SDK to automatically wake or launch your app specifically when the iPhone connects to CarPlay or a standard car Bluetooth system.

Its important to mention your app is completely sandboxed from knowing anything about the CarPlay lifecycle.

As a user, you can create a shortcut on your device.

  1. Open the Shortcuts app and go to the Automation tab.
  2. Tap + and select CarPlay or Bluetooth and select. The menu could be a little different.
  3. Set it to Connects and choose Run Immediately so it doesn't ask for permission every time like shortcuts do.
  4. For the action, they can select Open App and choose the app you want to run on the iOS device.

Hope that give you an idea.

I hope people do not provide you with ideas using Core Motion or Core Location to wake your app in the background when the user starts moving in a vehicle.

It is advisable to avoid those options due to the potential issues they may cause.

Albert
  Worldwide Developer Relations.

So the only workaround would be for me an iBeacon put in the car - powered on while driving. There IOS recognices and is able to wake up the app - is this correct. Any examples how to?

Thanks Robert

Start app if connected to CarPlay
 
 
Q