Open svenseeberg opened 7 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.
@Simple-codinger this is probably also finished?
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