IPhone to iPhone

I am developing two apps in swift that need to interact with another iPhone device and wait for their response to Global.

I am using remote push notification and it works fine but does not receive notification while app is in foreground and has some issue notification issue.

If I used a web service to send and receive. My app gets hit due to delay reaction

Is there any method available to share iPhone over the Internet without using APN?

enter image description here

enter image description here

+3


source to share


1 answer


You can use MultipeerConnectivityFramework , which supports discovery of services provided by nearby iOS devices using Wi-Fi infrastructure networks, Wi-Fi peer-to-peer and Bluetooth personal networks, and then exchange data with these services by sending message-based data, streaming data, and resources (like files).



I am adding sample code here , this is a sample application that builds on the Multipleer Connectivity framework to discover, connect and share data between "nearby" peers. This application uses a wireframe UI to connect to local peers and a platform API to retrieve text messages and image resources between devices.

-2


source







All Articles