Slide 14
Slide 14 text
FirebaseMessagingService
public class MyMessagingService
extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage msg) {
sendNotification(msg.getNotification().getBody());
}
private void sendNotification(String body) {
// NotificationManager#notify
}
}