About tokens and notifications

gustavofariasa year ago

What are the "notificationTokens" attribute? Where they come from? Why are there multiple tokens?
Are they related to the unsubscribe token of notification messages? /settings/notifications?token=dkjfhskjdhfkjsdhfk

Also, when the user clicks on the unsubscribe link on full notification, what is supposed to happen?
In legacy app nothing happens. Should it be used with legacy app? In modern app it's redirected to the notifications menu but nothing happens. Is this expected?

Anton Tananaeva year ago

Notification tokens are device tokens that are set by the mobile app. Ultimately they are coming from Google. There can be multiple tokens if you login with multiple devices.

They are completely unrelated to the unsubscribe token.

When you click on the unsubscribe link, it should show the list of notifications. It's expected that it doesn't work on the legacy app. And it's expected that it just shows the list in the modern version. You need to remove notifications manually.

gustavofariasa year ago

Nice. Thank you.
I think I'm going to change in my own translation to something like "Review your subscription settings."

Anton Tananaeva year ago

Maybe "manage notifications" is shorter and clearer? Feel free to send a PR.