0

I am developing a messaging application for iOS where I want to show message delivered and read by the user status on the app. I have to achieve this is two phase. phase one is like whatsapp. the app will show one tick mark when delivered to the server and two tick mark when the message is sent to the destination from the server.

In phase two i have to implement the functionality like iMessage or BBM. Where the Read status has to be shown only when the message is read by the user.

I proposed that I can send push notifications from both end but that doesnt sound like a proper solution to me. So seeking the experts advice here.

Tamil
  • 1,173
  • 1
  • 13
  • 35
  • have you tried something before posting the question here ? try google, you will find too many tutorials & references for it. – Pawan Rai Aug 25 '14 at 08:39
  • @pawan yes I googled and most of the articles were talking about xmpp and mqtt etc. But I am not using any of these servers. I was looking for an option around push notification and as Zigglzworth mentioned looks like push notifications isnt correct way to implement what I wanted to achieve. hence my post in SO – Tamil Aug 25 '14 at 09:01

2 Answers2

1

Sending a PUSH to confirm on the receivers end that a message was delivered is incorrect.

You could implement a long-polling technique as described here : long polling in objective-C

Also, look at this article regarding using WebSockets in iOS natively to achieve similar things: http://www.elabs.se/blog/66-using-websockets-in-native-ios-and-android-apps

Community
  • 1
  • 1
Zigglzworth
  • 6,645
  • 9
  • 68
  • 107
-1

Here is a full tutorial for all thinks you need, it has two parts, complete them both, and you will have a fully working push app.

Mutawe
  • 6,464
  • 3
  • 47
  • 90