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
getFragmentManager() is a method of Activity, therefore it can't work in a Service.
getFragmentManager()
Activity
Service