how to start commit Fragment in FirebaseMessagingService

后端 未结 3 2014
感情败类
感情败类 2021-01-27 08:27

I used FireBase could messaging in my application and I want when the user receive message the activity fragment change. I did the following code for that but i don\'t know why

3条回答
  •  走了就别回头了
    2021-01-27 08:43

    you can't get a reference to getFragmentManager() in the service class How erver you can use a broadcast to listne the calls, anywhere else in the application.

提交回复
热议问题