lajosbencz / vue-wamp

AutobahnJS wrapper library fo Vue.js
MIT License
48 stars 13 forks source link

How to receive event to show local notification when app closed #22

Closed wa05 closed 4 years ago

wa05 commented 5 years ago

Any idea about this..

I'm receiving the event in a Quasar/Córdova app and showing the notification when I received an event from VueWamp..

But I can't with the app closed.. I'll try with FCM I read it works different..

lajosbencz commented 5 years ago

If you are referring to Progressive Web Applications, then you would have to put your connection initialization and subscription in your service-worker.js.

But since that's a different environment, you might be better off using autobahnjs directly, instead of this wrapper plugin.

wa05 commented 5 years ago

Thanks for your answer, I updated my question..