Kinto / elm-kinto

An Elm client for the Kinto API
http://package.elm-lang.org/packages/Kinto/elm-kinto/latest
Other
28 stars 7 forks source link

Add notification #25

Open berry opened 7 years ago

berry commented 7 years ago

I have been reviewing Kinto as an alternative to Firebase + Elm. I also like Kinto being implemented in Python. Being also a Python programmer this give me the opportunity to do server side stuff if necessary. I miss that opportunity in Firebase.

What would definitely win me over is an example in Elm with notifications. For example, in the existing example. I open two browsers, I would create a record in browser A and this record would automatically show up in browser B. Also record updates would immediately be reflected in both browsers.

Thanks very much in advance for winning me over ;-)

Berry

Natim commented 5 years ago

I am glad you raise this concern (also I missed the past two years so I am probably too late…)

Using Pusher

You have multiple ways of handling push-notifications with Kinto. One is using kinto-pusher

You can then plug Pusher with elm to trigger a sync.

Using webpush-channels

In case for some reasons you don't or can't use Pusher, you can also host webpush-channels and plug it with Kinto to let your users subscribe to some channels and then tell kinto to publish update in that channel.