digitalfabrik / app-cross_platform

Mobile guide for refugees - app frontend
http://integreat-app.de/
13 stars 1 forks source link

Persistent Push Message Setting: Location #105

Open svenseeberg opened 7 years ago

svenseeberg commented 7 years ago

We need an option to set a location for which to receive push messages. Ideally it is possible to set multiple locations.

Locations are implemented as Firebase Device Groups: https://firebase.google.com/docs/cloud-messaging/android/device-group

BerndNK commented 6 years ago

Are you certain this should be implemented via device groups and not topics?

For device groups, each user must have a google account. Quote: "Managing device groups on the client is useful for cases where a server is unavailable. To create a device group on the client, the device must have at least one Google account. " (Source: https://firebase.google.com/docs/cloud-messaging/android/device-group)

Topics seems to be more of what we want. The user may opt-in and opt-out for push notifications of certain locations. See https://firebase.google.com/docs/cloud-messaging/android/topic-messaging

Ideally the CMS sends a topic key for each location. Then the app may simply subscribe to each topic-location.

svenseeberg commented 6 years ago

sorry, yes topics. See https://github.com/Integreat/cms/commit/51029096129043dd265c42368145579926e1d3d2#diff-d49335c21863be943681baca3eb857f6R83

svenseeberg commented 5 years ago

@Simple-codinger this is probably also finished?