I am a php developer. I have a DB table(mysql) where username and their online status(either 1 or 0) is storing. Now I have to send the list of online users to ios, so that every moment ios can get updated record.
If ios sends request to server after every second then obviously, the data, which will be visible in ios side, would be updated. But, I don't want this option. If any changes occur in server side, then only ios can put a request to server and server will give response to ios. This is my plan. For that I thought APNS would be better. But when I came to know, its also not much efficient specially for showing online chat users, I think there should be another methodology or mechanism so that instead of using APNS, I can fix my issue.
Please suggest me which one would be better. Thanks in advance.