snap-services icon indicating copy to clipboard operation
snap-services copied to clipboard

Could i use this to replace FCM for a mqtt service

Open holoduke opened this issue 5 years ago • 1 comments

Looking into firebase fcm alternatives. Want to implement my own mqtt service. Does this lib helps maintaining a running service. Need to have that for checking server for new messages.

holoduke avatar Mar 27 '19 12:03 holoduke

Snap Services follows the Intent Service approach where the service is only active while there is work being done - even if started as foreground service.

In any case, not sure what you want to achieve but I would suggest investigating a bit more on available alternatives such as: https://github.com/eclipse/paho.mqtt.android

If this doesn't suit you, this library will for sure help you achieve what you want, either by having a "normal" Snap Service or one launched in foreground mode. It's just a matter of implementing the behaviour you need.

mindbirth avatar Mar 27 '19 16:03 mindbirth