I am facing an issue where iOS is terminating all the apps which are in background after the phone is connected for charging (this is only happening on iOS 12+). This does not happen always but happens once in a while. I have also verified that it's not just my app but all apps are killed. If anyone has faced similar issue or knows how to fix this then it would be a great help.
Also this has been reported my by group of testers so its not a device specific issue.
Note : My application is a background location application which is running always.