title: How to create new fragment based on Firebase Topic Message?
body: <p>I have a Firebase messaging service, which has a method:</p>
  
  <pre><code>public void onMessageReceived(RemoteMessage message)
  </code></pre>
  
  <p>that is called when a message is sent to a particular topic. I want to create a fragment in an activity based on this message. How do I pass this information to the activity?</p>
  
  <p>I can't create a static method in the activity since the <code>getSupportFragmentManager()</code> method is non-static and must be called in order to create a fragment.</p>