IM SDK implementation - reply is coming too late from server
I have implemented yahoo IM SDK from this git link
I have developed application in which user logs in yahoo messenger from my application, User can send messages to his contacts and also receive them.
am using notification manager class from the library to receive notifications. I am using polling as shown or given in the library to receive messages or responses from contacts. I am requesting server after every 10 secs for new notifications but i am getting reply after 5 min, 10 mins and sometimes even 20 to 25 minutes.
What can be the problem with this?? Is it the problem with server or my code??