I am developing server-client model poker game, In which all game logic handling by server. I have a situation, when user tap home button in the middle of the game suppose 4 players playing a poker game. and the iPhone user tap home button, So app goes to background due to this no code is running and app is unable to get server messages.
I want to notify user when its turn comes to play on poker game. I would like to know the best possible ways to do this
thanks
Push Notifications are definitely the way to go for this!
Your situations requires that the iOS app gets notified when it's the user's turn. Since the server is the one knowing precisely when it's a user's turn, it is also the best instance to also notify that user.