Intermittent Disconnection of Adobe Assurance in React Native AEP Integration
Hi Community,
I'm currently using Adobe Assurance to validate AEP events in a React Native application connected to the QA environment. While the Assurance tool successfully connects initially (and the device shows as connected), I encounter the following issue:
After a few minutes, Assurance disconnects automatically without any user interaction.
Once disconnected, AEP Edge requests stop appearing in the Edge view.
To reconnect, I must completely close and relaunch the app, which is disrupting QA workflows.
I've already confirmed the following:
Assurance is started via AEPAssurance.startSession().
All required AEP SDKs are installed and initialized correctly.
The app is sending Edge events (AEPEdge.sendEvent) successfully while connected.
Logging is enabled, but no specific errors are seen prior to disconnection.
I suspect this may be related to WebSocket timeouts, app backgrounding, or platform-specific lifecycle handling in React Native.
Questions:
Is there a recommended way to handle auto-reconnection of Assurance sessions in React Native (e.g., using AppState or lifecycle hooks)?
Are there known limitations or best practices for maintaining Assurance sessions in RN apps, especially when running on physical devices?
Could this be caused by SDK versioning, and are there minimum version requirements to avoid such disconnects?
Any insights or guidance from others who’ve faced similar issues would be greatly appreciated.
Thank you!