Re: Stored profile limits
Re: Stored profile limits
- Subject: Re: Stored profile limits
- From: Arvydas Sidorenko <email@hidden>
- Date: Thu, 25 Apr 2013 18:32:02 +0100
I wanted to say BluetoothManager.framework, not CoreBluetooth.framework.
By temporary I mean that Apple can change or remove that API without
notice in future iOS versions, therefore it is a quick hack which
might or might not work later.
Furthermore, using private API is often a reason of app rejection from
AppStore, but if it is just for in-house use I don't see an issue as
long as it solves your problem.
On Thu, Apr 25, 2013 at 6:23 PM, Jeff Hosack
<email@hidden> wrote:
> Temporary in what sense? This app is not releasing to the public, but I would like for it to keep working if the iPod gets its iOS version upgraded in the future.
>
>
> -----Original Message-----
>
> Are you talking about cached profiles of paired devices? If so, there is no way to clear it programmatically using public API, but if you are interested in private API as a temporary solution CoreBluetooth.framework can do it.
> For example:
>
> BluetoothManager *mgr = [BluetoothManager sharedInstance]; BOOL prevPairingEnabled = [mgr devicePairingEnabled]; [mgr setDevicePairingEnabled:YES]; NSMutableArray *devArray = [mgr pairedLEDevices]; for (BluetoothDevice *dev in devArray) {
> [dev unpair];
> }
> [mgr setDevicePairingEnabled:prevPairingEnabled];
>
> In case of any failure you will notice in output window - BluetoothManager is rather verbose.
>
> On Thu, Apr 25, 2013 at 2:32 PM, Jeff Hosack <email@hidden> wrote:
>> We are using an iPod to test BLE devices in the production environment.
>> Each test leaves behind a Bluetooth profile in settings. I never
>> found a way to clear these out programmatically, so the plan was to
>> clear them manually at some interval. How many profiles can likely
>> exist before problems start to occur? Our customer is reporting that
>> they have started seeing failures to pair with new devices with as
>> little as 11, and also with
>> 44 stored profiles. They said that after clearing some profiles, it
>> started working again. If there is no known limit, what else could cause this?
>>
>>
>>
>> Also, I will ask again, is there a way to clear a profile in code?
>>
>>
>>
>> Jeff
>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden