FirebaseMessagingService onMessageReceived called on main thread?

Viewed 1590

Is FirebaseMessagingService onMessageReceived called on main or background thread?

1 Answers

It runs asynchronously with the main thread as it may take some time to download the message which can help in avoiding frozen activity for better user experience.

Related