On iOS 13, app stopped when connected to BLE device

Hello,


I develop an application that connect to a Bluetooth (BLE) device.


Until now (iOS 12 and above), everything work :
When application is suspended, app is "wake up" periodicaly when device send data through Bluetooth.
App can process data in background.


With iOS 13 :
When application is suspended, connection is broken after 1 minute and app seems to be completely stopped ("Not running" state)


Details:

To suspend application, I use one tap on home button to display Home sceen.
There is no other open application.


Does the application lifecycle/behavior change between iOS 12 et 13 ?
Is it related to Bluetooth ?


Thank you,

There were changes, for Privacy:

As part of iOS 13’s privacy improvements, apps now need to ask permission to access Bluetooth in iOS 13 and iPadOS if they want or need to access Bluetooth

h ttps://appletoolbox.com/why-do-apps-want-permission-to-access-bluetooth-in-ios-13-and-ipados/

or

h ttps://www.cnet.com/how-to/ios-13s-new-privacy-features-help-keep-your-location-a-secret/



Could that influence the behavior in background ?

Thank you for you reply.


I see this changes and handle it. I ask user permission (permission is granted during my test).
Bluetooth connection work when the app is foreground.
The problem appear when app is suspended.


Note: the problem does not appear when I launch app with Xcode. So, it is not easy to find problem source.

Did you manage to solve this?


I get the exact same behaviour from my react-native app on iOS.


Shuts down after a minute.


In my case it seems to work on iPhone11, but not on iPhone XR, 8 or 7.

On iOS 13, app stopped when connected to BLE device
 
 
Q