I want to develop an iPhone app that can exchange small amounts of data with another copy of the same app, running on another phone, using the cellular network. It needs to work when the phones are not close together. The app on one phone must somehow find the other app cellularly and establish a communication channel or link to it. The apps need to exchange a small amount of data while they are running in the background. I'm not thinking of user-supplied data like a messaging app, but data that doesn't involve user interaction like fitness data or Core Location data. The exchanges need not be very frequent -- maybe once per minute or once every 5 minutes depending on battery status.
Another way to express the question is how to write an app that can periodially save data into a file on another phone via the cellular network, assuming the owners of the two phones are fully cooperative? (Or fetch data from another phone.)
Can someone suggest a general approach to such a thing? What iOS framework supports communication like this? I know (a little bit) about FireChat and iCloud but they don't seem to do what I want. I know how to build apps and I've written many so I'm not looking for coding help. I'm looking for a pointer to the relevant framework or documentation, or maybe a tutorial on how to do cellular data exchange.