I'm making simple iOS messenger with XMPPFramework. So the problem is, that if i app goes into background it's disconnects from XMPP server, so the only way to store incoming messages without opening app is Push-notification (add message var into push), which is not so good way. Also, ma app make phone acting as iBeacon to track locations of other near phones. As i know, with such capability app can stay active even in background, but can i also hold's XMPP connection while i'm in background, tracking iBeacons? Or Apple finds out and reject such app?
Thanks for help?