Open svenseeberg opened 2 years ago
Is this really effort:high? Could we perhaps move this to the Q2 milestone? We'd like to tackle this as its pretty annoying to users.
This is the blocked app issue - https://github.com/digitalfabrik/integreat-app/issues/2142
Motivation
It is hard to make sure that a user is unsubscribed from Firebase notification channels. The app itself cannot check this only with only using a user token. It needs "admin" access to the Firebase API.
See corresponding app issue: https://github.com/digitalfabrik/integreat-app/issues/2142
For details, also see https://github.com/invertase/react-native-firebase/discussions/4819
Proposed Solution
The CMS should provide an API endpoint which enables the app to check for existing channel subscriptions per user token. The CMS can have an Firebase admin token internally stored, combine this with the user token provided in the request by the app, and return a list of actively subscribed channels to the requesting app.
Alternatives
Users receive notifications from regions for which they had subscribed in the past.
Closely related issue:
589