These are chat archives for Trinea/android-open-project
Collect and classify android open source projects, 交流 QQ 群：(入群理由必须填写群简介问题答案)185715999
Yes I generally use services with a thread for long living tasks. But in Android O as doze is going main stream with killing
service we would be having hard time maintaining our app's features which largely rely on persistent TCP connection. Also, in my experience FCM drops some messages which is poor UX in our scenario. Using MQTT in our case allows us to maintain Quality of Service which ensures messages reach once and the client acknowledges after receiving.
My issue has been asked eclipse/paho.mqtt.android#226 and eclipse/paho.mqtt.android#195 but there is no sound solution available.
How to solve FCM dropping the messages?
Every 120min we are supposed to get 60 values. With FCM index increments are between 55-60 however with MQTT this is 58-60