[firebase_messaging] onMessage and onBackgroundHandler are run on main thread in android #5604
Unanswered
orkunsoylu
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Issue
I'm using the data messages to get a payload from the server and using the data to do network operations. In native platform, this is not creating any problem since FirebaseMessagingService is not run on main thread. However with your plugin when I use the same structure,
android.os.NetworkOnMainThreadException
.Expected behavior
The callbacks should run on an another thread then the main thread, just like the behavior in FirebaseMessagingService
Beta Was this translation helpful? Give feedback.
All reactions