We use External accessories framework for Bluetooth communication with medical equipment.
Mobile App was in Foreground but iOS (15.5 beta) triggered AppDelegage callback applicationDidEnterBackground event, when external accessories framework establish the connection to or disconnect from the medical equipment.
iOS should trigger this event only when the user moves application to background. We encounter this issue in iOS 15.5 Beta version, which seems to be iOS 15.5 beta issue.