I'm developing an SDK and want to develop a logic like Firebase messaging service. For example, if I add the MyMessageingService class which extends FirebaseMessagingService, inside the <service> tags (in this case FirebaseMessagingService is a super class and MyMessagingService is a sub class) here my question arises.
My question is how does firebasemessaging service trigger onNewToken function in subclass?
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 AndroidManifest.xml folder of their application, just like in FirebaseMessagingService.
Thanks in advance...