Using Firestore from a JobIntentService: Failed to gain exclusive lock to the Firestore client's offline persistence
问题 Whenever I exit the app while I have an alarm set and the alarm goes off while the app is "DEAD" I get an Exception while trying to update a field in Firestore. The code works when the app is running in the foreground so I really have no clue of what is going on. Either way, here is the code for 2 functions which get called from the JobIntentService which is in turn created from a BroadcastReceiver: private val firestoreInstance: FirebaseFirestore by lazy { FirebaseFirestore.getInstance() }