Skip to content

I want indexer to delete fcm tokens that are not valid #92

@ptylczynski

Description

@ptylczynski

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);
        }
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions