digitalfabrik / integreat-cms

Simplified content management back end for the Integreat App - a multilingual information platform for newcomers
https://digitalfabrik.github.io/integreat-cms/
Apache License 2.0
56 stars 33 forks source link

Firebase Subscription API #1043

Open svenseeberg opened 2 years ago

svenseeberg commented 2 years ago

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:

steffenkleinle commented 6 months 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.

osmers commented 1 month ago

This is the blocked app issue - https://github.com/digitalfabrik/integreat-app/issues/2142