title: How can FirebaseMessagingService class can trigger subclass's overrided function?
body: <p>I'm developing an SDK and want to develop a logic like Firebase messaging service. For example, if I add the <code>MyMessageingService</code> class which extends <code>FirebaseMessagingService</code>, inside the <code>&lt;service&gt;</code> tags (in this case <code>FirebaseMessagingService</code> is a super class and <code>MyMessagingService</code> is a sub class) here my question arises.</p>
  <p><em><strong>My question is how does firebasemessaging service trigger <code>onNewToken</code> function in subclass?</strong></em></p>
  <p>As a result, what I want to do is to trigger a function of subclass in the application side when people who will use the SDK I developed added my service class to the <code>AndroidManifest.xml</code> folder of their application, just like in <code>FirebaseMessagingService</code>.</p>
  <p>Thanks in advance...</p>