How to call activity class method from fcm service.
I already tried this way Calling activity class method from Service class
but in fcm service onBind
method is final so we can not overwrite, so any other way to call activity class method from fcm service.
for reference some code how to implement fcm.
public class FCMListenerService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage message) {
}
}
When my activity is running and fcm notification came then i want to update code? is there any way to handle this requirement ?