ios - App don't discover services when reconnecting after power cycling bluetooth -
when toggling bluetooth while connected corebluetooth
peripheral disconnection , deletion of references peripheral in centralmanagerdidupdatestate
callback.
doing scan find , reconnect device , again issue discoverservices
, time around callback diddiscoverservices
never happens. deleting settings (general -> reset -> reset settings) or reboot works again. disconnect/reconnect normal work. how can work around or delete cache , uuid's stored ios programatically?
when callback centralmanager state has changed cbcentralmanagerstatepoweredoff
, need loop through peripherals , call cancelconnection:
on them. you'll go.
[_yourcentralmanager cancelperipheralconnection:yourperipheral];
Comments
Post a Comment