Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect when iPhone connect to any paired car

Hello I would like to ask you how can I know when the user get in the car (When the IOS device conect to any paired car) and when the user get out of the car ( When IOS device disconnect from any paired car ).

I dicovered that it is possible by going to "Reminders" on my iPhone and setting a reminder then going to "details" and press "Remind me at a location" and then I have the option to select "Getting on the car" or "getting out of the car".

I would really apreciate if you can answer my question or give me a link to a tutorial I am using Xcode and Objective C.

like image 535
user3782226 Avatar asked Aug 10 '15 11:08

user3782226


People also ask

How do I know if my iPhone is connected to my car?

If your car supports wireless CarPlay, press and hold the voice command button on your steering wheel to set up CarPlay. Or make sure that your car is in wireless or Bluetooth pairing mode. Then on your iPhone, go to Settings > General > CarPlay > Available Cars and choose your car.

Can you connect 2 iphones to car Bluetooth?

Answer provided by. “Most cars will allow more than one phone to connect via Bluetooth so long as both phones have Bluetooth enabled.

How do I connect my iPhone to a new car?

Or make sure that your car is in wireless or Bluetooth pairing mode. Then on your iPhone, go to Settings > General > CarPlay > Available Cars and choose your car. Check your car owner's manual for more information.

How to fix iPhone X won't pair with car Bluetooth?

Power off your iPhone X using the Power button and then power it on again. See if you can now connect to your car's system. If your iPhone X still won't pair with car Bluetooth, unpair your car stereo from the Bluetooth settings menu on your device. Pair it with the stereo again and it should be fine.

What do I do if my device can't connect to my car?

If you still can't connect, contact Apple Support. Restart your device and your car. Make sure that your device is unlocked and on the Home screen. If possible, try to connect using another cable or USB port. Check the manual that came with your car to learn how to connect an Apple device.

Why can't I connect my iPhone to my car stereo?

If you've connected multiple phones to your car stereo, try renaming your device: Go to Settings > General > About > Name, and type a new name. Then try connecting again. Update your device. Install any firmware updates for your car stereo. If you still can't connect, contact Apple Support.


1 Answers

You can't use CoreBluetooth for this as it's only meant for BLE communication. AFAIK, getting in or out of the car is tied to CarPlay, so that's also unusable at this time. External Accessory Framework only works for MFi devices.

You don't really have any choices left, so consider using an iBeacon, it might be the best solution after all.

Z.

Edit: If it's a viable solution for you, check out the private BluetoothManager framework.

like image 200
Zoltán Avatar answered Sep 29 '22 07:09

Zoltán