robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

New Message Count #380

Open souvickcse opened 10 years ago

souvickcse commented 10 years ago

Hi, Is there any option to get the total unread message count in the ios build? Currently it is showing the alert. I want to make a page which will have the user list and the new message count( Candy implementation for web). Once I see those messages it will become 0. Please help. Thank you

balkrishanyadav commented 10 years ago

Hello, I am searching for the same if u will get any reference or code please share ... And u have idea about message send/receive status..? Thanks,

jarrillaga commented 9 years ago

Hi Mates, Did you solve this issue? Thanks, Juan

souvickcse commented 9 years ago

I didn't find anything so to save time i just added a simple table to keep track for the unread chat count.

On Fri, Jun 5, 2015 at 2:52 AM, jarrillaga notifications@github.com wrote:

Hi Mates, Did you solve this issue? Thanks, Juan

— Reply to this email directly or view it on GitHub https://github.com/robbiehanson/XMPPFramework/issues/380#issuecomment-109055893 .

jarrillaga commented 9 years ago

Ok, I was thinking in doing something like this. Thanks!

Are you sorting the contacts in real time by last message received or you only put the number of unread messages in each contact?

souvickcse commented 9 years ago

I have to show total unread count and individual unread count so i put unread count for each and every contact.

Regards, Souvick Ghosh iOS Developer

On 05-Jun-2015, at 08:23, jarrillaga notifications@github.com wrote:

Ok, I was thinking in doing something like this.

Are you sorting the contacts in real time but last message received or you only put the number of unread messages in each contact?

— Reply to this email directly or view it on GitHub.

eagle-dan1349 commented 9 years ago

Had the same issue. Ended up with custom implementation of XEP-0136, since default one have no support for history retrieval from server. I'm using countForFetchRequest:error: with request for unread messages.

marioacarvalho commented 8 years ago

@eagle-dan1349 can you share your implementation? Maybe a PR? Thanks in advance

Narendrapandey commented 7 years ago

@eagle-dan1349 hii how you have implemented XEP-0136. when i do that then it give me error 501 type cancel feature did not implemented what does it mean.

eagle-dan1349 commented 7 years ago

@marioacarvalho, @Narendrapandey, I'm not into iOS/MacOS development by now, but I'll try to help. I need to check if I still have access to related code... [Edit] Basically, you want a clone of XMPPFramework's XEP-0136 implementation but with a little twist: the Chat CoreData entity should store the number of unread messages. That's what I've done in my code.

marioacarvalho commented 7 years ago

@eagle-dan1349 Can you make PR please? Thanks