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
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.