Fatal Exception: android.app.RemoteServiceException: can't deliver broadcast at android.os.Handler.dispatchMessage

后端 未结 2 414
余生分开走
余生分开走 2020-12-09 16:15

I am using broadcast messages on my android application (From io.socket I am sending broadcast messages to my Activity page). On some devices Samsung SM-G950F

2条回答
  •  既然无缘
    2020-12-09 17:07

    I experienced the exact same thing, around the exact same time, with the same devices. The problem was ultimately related to the app I'm supporting, but I think Samsung pushed out some type of update that started triggering the problem. Before the latter part of Oct, the app never had this issue. It was driving me nuts because I couldn't figure out which broadcast was triggering the problem.

    Based on user feedback, I finally narrowed it down and made the following changes:

    1) I went through the app and made sure that all custom "action" strings used for Intents included the app's package name.

    2) I switched from using Context::sendBroadcast() to LocalBroadcastManager::sendBroadcast().

    You can see my full answer on a different post here

提交回复
热议问题