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?
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
Post a Comment