Always background legacy FCM fallback.

This commit is contained in:
Clark 2023-06-21 12:47:36 -04:00 committed by Greyson Parrelli
parent 5db770ca44
commit e2a79394ab

View file

@ -119,6 +119,7 @@ object FcmFetchManager {
startForegroundOnDestroy = true
Log.i(TAG, "Legacy fallback: foreground service is stopping, but trying to run in background anyways.")
}
}
val performedReplace = EXECUTOR.enqueue { fetch(context) }
if (performedReplace) {
@ -127,12 +128,8 @@ object FcmFetchManager {
activeCount++
Log.i(TAG, "Legacy fallback: Incrementing active count to $activeCount")
}
return
}
}
Log.i(TAG, "No foreground running, performing legacy fallback")
retrieveMessages(context)
}
@JvmStatic
fun retrieveMessages(context: Context) {