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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -