I am writing an iOS (Swift) application that includes the ability to send messages between users. I have that functionality working (using JSQMessagesViewController), but I don't know where to start with auto updating. If the user is in the messaging screen and receives a new message, I need a way for it to show up. Here are a couple thoughts:
- Use a timer, and check for new messages every specified interval. This seems very battery & data intensive.
- Use Parse Push notifications. I'm not sure if you can do this or not.
Any guidance would be greatly appreciated.