Today I want to introduce an Apple framework, called Multipeer Connectivity.
“The Multipeer Connectivity framework supports the discovery of services provided by nearby devices and supports communicating with those services through message-based data, streaming data, and resources (such as files). In iOS, the framework uses infrastructure Wi-Fi networks, peer-to-peer Wi-Fi, and Bluetooth personal area networks for the underlying transport. In macOS and tvOS, it uses infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Ethernet.”
I want to share a simple how-to, used to get the GPS position of an iOS user with the app completely closed, in the background, and in the foreground without using any useless workaround like idle timer and background operations…
We discuss about the GEO-fence tecnique. You can read more on Apple reference: