Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If I use Apple Push Notification service for instant messaging will apple block my account?

I want to create an iOS chatting app using APNS. If I have 10,000 active and they are continuing chatting, will apple block my developer account ? Is there any limitation regarding this?

like image 514
sumon Avatar asked May 08 '13 15:05

sumon


1 Answers

I would discourage you from using APNS as a backbone of an "chatting app".

If you need fast chatting functionality you should write your own TCP-socket based server.

If every-few-second syncing is o.k. you can get away with a HTTP-based server backend (but all the pull-syncing can be hard on network traffic - so TCP-socket is still better choice).

You could however use APNS for fallback - when your app on certain device is not responding (i.e. is not connected to server) you can send an initial message trough APNS (to wake up your app & to notify the user there is a message waiting for him).

As soon as the user opens your app you should switch back to your TCP-socket or HTTP request based server communication.

As for your question: no, Apple would most probably (one can never know for sure) not reject your app just because of using APNS for chatting. But note (as the others said allready): messages between two users will get "lost" if they would interact too frequently - see the link Roman Barzyczak gave you.

like image 56
Rok Jarc Avatar answered Oct 15 '22 03:10

Rok Jarc