snap-services
snap-services copied to clipboard
Could i use this to replace FCM for a mqtt service
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.
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.