Bluetooth Low Energy SPR (State Preservation & Restoration) fails at software update

Originator:nabjacuk
Number:rdar://22987211 Date Originated:2015 Oct 6th
Status:Open Resolved:
Product:BT LE Device Product Version:
Classification:Serious Reproducible:Yes
 
Summary:
When a terminated app (which uses SPR) is deleted and replaced by a new version of the app, SPR data from the old app, still has a 'secret life' in the background, running in parallel with the new version of the app. 
This makes our app unstable an unpredictable. It will not always start, when one of our BT Low Energy devices is transmitting.

Steps to Reproduce:
I think a simple way to reproduce the problem
* Start a BT LE app
* Terminate the app (we use a simple KILL button, to simulate memory pressure termination)
* Delete the app (not close)
* Install a new app version with TestFlight
* Do not open the app
* Double-click the home button - You will see that the app is already running, without being started.

Expected Results:
When an app is deleted, make sure all data from State Preservation is removed as well. Otherwise the app becomes unstable.

Actual Results:
Here is one way we discovered the problem:
* Our app was safely closed (double-click + swipe up)
* We made a phone reset (hold home + power)
* When the phone was running again, our app was also running, even though it was safely closed just before the reset.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!