XMPP messages lost on Android while switching data connectivity (e.g. turning Wifi of, GSM <-> Wifi switch)

前端 未结 5 453
无人共我
无人共我 2020-12-30 05:40

I\'m developing a chat application in android. Using XMPP server. PHP server has been migrated to ejabber.

My notification works properly in all scenarios. But in o

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 06:03

    you can modify archive plugin to save message ids in it.

    When user comes online call a web service with last message id received. server can get all the later messages saved on the server. I created it i the same way and working perfectly well.

提交回复
热议问题