Bartalog / cool-maze

A quick mobile-to-desktop share capability, through matrix barcode
Apache License 2.0
2 stars 6 forks source link

Push with Firestore (realtime updates) #552

Closed Deleplace closed 1 year ago

Deleplace commented 1 year ago

Current push component

Pusher.com (since #1)

Alternative

Deleplace commented 1 year ago

Datastore mode disables Firestore features that are not compatible with Datastore:

  • The project will accept Datastore API requests and deny Firestore API requests.
  • You can use Datastore client libraries with this project but not Firestore client libraries.
  • Firestore real-time capabilities will not be available

That's a bummer, as we're already using Datastore (aka Firestore in Datastore mode)

Deleplace commented 1 year ago

Another alternative: Firebase FCM

Deleplace commented 1 year ago

FCM would require a Service Worker, and the user consent to send Notifications. Not seamless.

Deleplace commented 1 year ago

It's possible to create a new distinct project with Firestore in Native mode, and let the two projects communicate:

Not ideal, but will probably work fine.

Deleplace commented 1 year ago

Cloud Firestore Lite: lightweight, but does not support onSnapshot (realtime updates)