I wrote an android app which is acting as Peripheral and can advertise and connect to other central devices. Everything is working fine on Android 8 (API 26) and above. But in Android 7.x as soon as it gets connected to central immediately gets disconnected as well without any reason.
Even logcat doesn’t produce any logs which can be used to identify the root cause of the issue.
Note: This issue happens on Android 7.x only.