Already there are stored FCM tokens, that are not pointing to any valid device. It cloud happen if device change its FCM token and does not POST this to the server.
Valid reaction should be removing this token and not throwing error.
Related code in FirebaseService
public void sendDataMessage(Map<String, String> data, String token) {
Message message = Message
.builder()
.setToken(token)
.putAllData(data)
.build();
try {
firebaseMessaging.send(message);
} catch (FirebaseMessagingException e) {
log.error("Firebase throw exception: ", e.getMessage(), e);
}
}
Already there are stored FCM tokens, that are not pointing to any valid device. It cloud happen if device change its FCM token and does not POST this to the server.
Valid reaction should be removing this token and not throwing error.
Related code in
FirebaseService