s3rius
06/20/2024, 12:23 PMclass FirebaseMessagingServiceImpl : FirebaseMessagingService() {
    override fun onMessageReceived(message: RemoteMessage) {
        runBlocking {
            notificationService.show(message)
        }
    }
}
Is that they way to go?
We've tried with a GlobalScope.launch {} as well- it seems to work just as well, but I'm worried that Android might potentially kill the process before the job has finished because onMessageReceived returns immediately.Rok Oblak
06/20/2024, 12:31 PMs3rius
06/20/2024, 12:36 PMRok Oblak
06/20/2024, 12:40 PMMichael Reynolds
06/21/2024, 8:09 PMs3rius
06/26/2024, 5:24 PM