Reputation: 495
So what I'm trying to do is after I connect to a peripheral, I reboot my iPhone, but never close out the app. When the phone boots back up, I'd like the peripheral to reconnect with my app without bringing the app back to the foreground.
Is this possible?
Upvotes: 0
Views: 92
Reputation: 77291
If your app is connected to the peripheral via Bluetooth, there is a BLE restoration that can launch your app in the background automatically when the phone boots or detects the BLE device. The app has to have previously run and requested to be reconnected, but it is possible.
Upvotes: 0
Reputation: 2375
Without GuidedAccess or jailbreaking your phone, you can't run an app when the phone starts. You'd need to do that in order to reconnect your app to the peripheral.
See: Make iOS application run at startup
Upvotes: 1