michaelkourlas / voipms-sms-client

Popular Android messaging app for VoIP.ms, a Canadian VoIP provider
https://play.google.com/store/apps/details?id=net.kourlas.voipms_sms
Apache License 2.0
218 stars 52 forks source link

reliability issues with fdroid version #102

Closed anarcat closed 7 years ago

anarcat commented 7 years ago

ever since i switched to using the version distributred through f-droid (cf. #36 and #54), i have been having weird reliability issues. for example, today i have received a "merry christmas" message from a friend: 4 days late. the message is dated "Sun 4:41 PM" but i actually received it just today, even though the phone was online intermittently since sunday.

sometimes i need to swipe down in the main screen to get new messages, even after waiting for the configured 1-minute synchronisation interval delay.

i have had a much more reliable experience when using GCM, even if i was doing that with the MicroG implementation...

would it be possible to ship a GCM-enabled version on f-droid, even if it's disabled by default? i understand that GCM implies using proprietary code on the server side, but it should be possible to make this work with free software on the client side, considering MicroG's work...

thanks!

michaelkourlas commented 7 years ago

I'm not surprised you're having reliability issues with the sync interval feature; later versions of Android muck around with alarms to preserve battery life (see Doze and App Standby). Their solution is to -- you guessed it -- switch to FCM.

Is there actually a FOSS drop-in replacement for the FCM libs on the client side? Feel free to send me a link.

anarcat commented 7 years ago

i refered to microg project earlier:

https://microg.org/

this includes GmsCore, a GCM-compatible framework:

https://github.com/microg/android_packages_apps_GmsCore/wiki

i don't exactly know how it works - it may require signature spoofing and such hacks.

ymmv.

michaelkourlas commented 7 years ago

Not sure a GCM lib will work now that VoIP.ms SMS has migrated to FCM.

Anyway, given the likely amount of work involved I don't think I'll be implementing something like this anytime soon. :(

I'm closing this, though #37 remains open.