We use a Google certified MDM - Esper to put our devices in KIOSK mode. We have been facing an issue where the app goes in continuous restarts for 30-40 seconds before stabilizing and running properly
(video attached). Upon extensive debugging we found that querying the firestore database is causing this issue and it goes away if we comment out all firestore calls from the app. The issue is reproducible when we provision a device for the first time with the Esper MDM but after that it is intermittent and happens randomly at times. We investigated the logs and found this -