@Override public void onMessageReceived(String from,Bundle data){
  String message=data.getString("message");
  Log.d(TAG,"From: " + from);
  Log.d(TAG,"Message: " + message);
  if (from.startsWith("/topics/")) {
  }
 else {
  }
  sendNotification(message);
}

@ Override public void onMessageReceived ( String from , Bundle data ) { String message = data . getString ( "message" ) ; Log . d ( TAG , "From: " + from ) ; Log . d ( TAG , "Message: " + message ) ; if ( from . startsWith ( "/topics/" ) ) { } else { } sendNotification ( message ) ; }
called when message is received .
