0

I create java rest api service, I need to make push notifications to android devices , my code is

Pushraven.setKey("KEy");
        Notification raven = new Notification();
        raven.title(title)
             .text(message)
             .color("#ff0000")
             .to("User token");              
        FcmResponse response = Pushraven.push(raven);
        Pushraven.setNotification(raven);
        System.out.println("Respose: "+response.getResponseCode());
        raven.clear();

The question is, how to check is my notifications brought to device successfully, response.getResponseCode() always return 200 but some times message doesn't come to device

AL.
  • 36,815
  • 10
  • 142
  • 281
Almas Abdrazak
  • 3,209
  • 5
  • 36
  • 80

0 Answers0