Is FirebaseMessagingService onMessageReceived called on main or background thread?
Is FirebaseMessagingService onMessageReceived called on main or background thread?
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.