linagora / tmail-backend

GNU Affero General Public License v3.0
41 stars 22 forks source link

[Firebase] Cassandra for Firebase subscription storage #494

Closed chibenwa closed 1 year ago

chibenwa commented 2 years ago

Why

We need Cassandra's implementation for Firebase subscription storage.

Requires

How

Do basically the same as CassandraPushSubscriptionRepository.


PK user TEXT
CK device_id TEXT
C id UUID
C expired TIMESTAMP
C types frozen SET of TEXT
C token TEXT

Dod

Pass contract tests.

vttranlina commented 2 years ago

C highPriority boolean String type is better?

chibenwa commented 2 years ago

String type is better?|

Why ?

vttranlina commented 2 years ago

String type is better?|

Why ?

I see on firebase document, priority is a number, it can be 1,2,3,4,5. Or we can more string level: low, normal, high https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message

chibenwa commented 2 years ago

Ok for int on my side

quantranhong1999 commented 1 year ago

https://github.com/linagora/tmail-backend/pull/517