I am following this guide for sending messages to some devices. The part about building a sending request, it says:
// The topic name can be optionally prefixed with "/topics/".
String topic = "highScores";
// See documentation on defining a message payload.
Message message = Message.builder()
.putData("score", "850")
.putData("time", "2:45")
.setTopic(topic)
.build();
// Send a message to the devices subscribed to the provided topic.
String response = FirebaseMessaging.getInstance().send(message);
// Response is a message ID string.
System.out.println("Successfully sent message: " + response);
When I try to import the Message class, the IDE tells me that there is no library, why?
Maybe it is deprecated but the documentation has not been updated?
Thanks