swift - iPhone to iPhone communication -


i developing 2 apps in swift should communicate iphone device , waiting response on global.

i using remote push notification , it's working fine, not receiving notification while app in foreground state , has push notification related issues.

if used web service sending , receiving. app gets struck due lag response

is method available iphone communication on internet without using apns?

enter image description here

enter image description here

you can use multipeerconnectivityframework, has support discovering services provided nearby ios devices using infrastructure wi-fi networks, peer-to-peer wi-fi, , bluetooth personal area networks , subsequently communicating services sending message-based data, streaming data, , resources (such files).

i adding sample code here, example application builds on multipeer connectivity framework discovering, connecting, , sharing data between "nearby" peers. application uses framework based ui connecting local peers , framework convenience api exhanging text messages , image resources between devices.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -