xmpp-messenger-ios icon indicating copy to clipboard operation
xmpp-messenger-ios copied to clipboard

Unable to get Old messages

Open aadilkeshwani90 opened this issue 7 years ago • 15 comments

Hi,

I have been working with this module and i found one issue

OneMessage.sharedInstance.loadArchivedMessagesFrom(jid: recipient.jidStr) works only when the app has the data, if you delete the application and install again all old messages are retrieved.

Any solutions for this ?

aadilkeshwani90 avatar Aug 16 '16 07:08 aadilkeshwani90

Hello @aadilkeshwani90, It's the standard behavior, as if you have data it will fetch locally, if not, from the server. You can specify from where you want to fetch I believe (This is also not an issue, I'm closing it)

baoluo avatar Aug 17 '16 10:08 baoluo

Archiving option is enable at server and server has the data. So this is the issue.

aadilkeshwani90 avatar Aug 17 '16 10:08 aadilkeshwani90

Please reopen it as server has the archiving option on and it has data but the above function is unable to get the data.

aadilkeshwani90 avatar Aug 17 '16 10:08 aadilkeshwani90

I'll check that in detail later today

baoluo avatar Aug 17 '16 10:08 baoluo

@baoluo Did you check it. I'm also facing the same issue. XEP 0136 is implemented on server but OneMessage.sharedInstance.loadArchivedMessagesFrom(jid: recipient.jidStr) does not fetch old messages.

hemant3370 avatar Sep 20 '16 11:09 hemant3370

@baoluo How about this issue? I am facing with it and don't know how to fix it. Please help

hungcaobss avatar Sep 28 '16 10:09 hungcaobss

Hello guys, the issue is that the the framework doesn't properly fetch the data from the server, I'll try to fix this today

baoluo avatar Oct 01 '16 15:10 baoluo

Hello again, I had an hard time figuring what's going on, I'll need more time to investigate on this

baoluo avatar Oct 03 '16 07:10 baoluo

I can confirm the issue in my own application as well. Other XMPP clients receive the archive, but our iOS app using this framework does not.

DSSDevelopment avatar Oct 04 '16 18:10 DSSDevelopment

Hello guys i also wants to store the offline message and fetch the message history. Can you please help me what can i do ?

ruchiragile avatar Oct 06 '16 06:10 ruchiragile

@baoluo any updates on this?

jannemecek avatar Oct 27 '16 14:10 jannemecek

@baoluo any updates on this?

BhushaniOS avatar Jan 07 '17 13:01 BhushaniOS

Sorry guys I don't have enough time right now to investigate on this

baoluo avatar Jan 13 '17 14:01 baoluo

@baoluo any updates on this?

ashokt avatar Jan 10 '19 09:01 ashokt

@ashokt , @mremond has taken over, he may be able to help you.

baoluo avatar Jan 10 '19 09:01 baoluo