出于测试目的,我想从我的应用程序的主要活动中以编程方式触发从FirebaseMessagingService扩展的MyFirebaseMessagingService类的onMessageReceived方法。我怎么能这样做?
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage)
{
// I would like to arrive here
}
}
谢谢!