Synchronization between ios devices - ios

First of all sorry for my English. I have searched but I didn't see nothing similar.
I have a problem and I don't know really how to make it.
I need to sync data between two or more iOS devices. This data could be a JSON or something similar.
Example:
Two iOS devices uses the same app, they are near each other(In the same place or room). There is a form and if I change a value in one of the devices the change should be shown in the other device automatically.
Thank you very much.

I think you need to use the Multipeer Connectivity Framework which is part of iOS 7.0.
Apple's Multipeer docs

Related

NFC data transfer on iPhones

Is it possible to transfer data between two iPhones using NFC? I'm working on an app that aims to exchange specific strings between two phones and would preferably use NFC. (If so, would it work for iPhone - Android connection?)
The Answer is NO.
So far apple has only allowed to read data. We cannot send any data between two iPhones or between an iPhone and a Android Device.
iOS11 seems to offer the potential to read NFC data so one-way traffic between Android and iOS appears possible.

DISTANCE_TYPE_EARSHOT for iOS using Nearby API?

I see documentation for strategy that has a setDistanceType of DISTANCE_TYPE_EARSHOT (which is what I'd like). Now, for iOS this doesn't seem to be available.
If we set the discoveryMediums to use Audio, does this do the same thing? Wondering why there is no equivalent for iOS.
Yes, audio on iOS is the same as earshot on Android. Sorry for the confusion. We may add the earshot concept on iOS for consistency across platforms.

How do apps like iBetterCharge and coconutBattery work?

I've been using iBetterCharge for some time and I quite like it. Except the fact that sometimes it's annoying with its loud warning sound.
Anyway, I'm wondering how do apps like iBetterCharge and coconutBattery work? I mean how do they read iPhone batter level over wireless networks?
My personal research did not reveal much regarding how to read the battery level of a device programatically. However, according to the iBetterCharge FAQ they do not talk with iPhone at all. They say the app communicates with the device using the data which iTunes itself gathers.
But how?
It uses protocols which iTunes itself uses to sync with iOS devices. FAQ says everything you need to know. Check out libimobiledevice This library implements those protocols and can be used to retrieve battery info. I know it works over USB but don't know in which state is networking implementation (it says WIP).
You can try example here. You need to pass com.apple.mobile.battery as domain to retrieve battery info.

WiFi Scan library for iOS (without jailbreak)

I'm new to iOS programming and currently doing a project for college.
As part of the project I need to be able to use my iPhone to list all available WiFi basestations in the area with respective RSSI values. This is something similar to what can be done by Apple's AirPort Utility for iPhone.
I searched everywhere and there seems to be no straightforward way to do this with normal public libraries. I do not need to publish the app in the App Store, just need to test it with my iPhone. I do not intend to jailbreak it though. Is there a way of me accessing functions to perform a WiFi scan?
This seems to be a solution: http://code.google.com/p/iphone-wireless. Does anyone know how to get started with it and if it works in non-jailbroken devices?
This appears to be an alternative: https://github.com/ipinak/iOS-WiFi. Again, how would I use it with a non-jailbroken device?
Thanks in advance!
You can use the iOS-WiFi project on github, since you're not planning on submitting your app to the app store. You can use private APIs all you want in development, just not when you want to go to production.

How can I make an iOS app communicate with Mac server app counterpart?

as the title suggests I would like to make a connection between an iOS app and a Mac OS X app that will be the server. I just want to send simple encoded strings to and from the iOS app but I have searched for ways to communicate and nothing specific has shown up. Can you please point me to the right direction (e.g. documentation for a class to use)? An example if possible? Thank you very much in advance
If your iOS device and Mac are going to be near each other you may want to look at this.
https://developer.apple.com/library/ios/documentation/MultipeerConnectivity/Reference/MultipeerConnectivityFramework/index.html
However there are some limitations on what Macs and iOS devices can use this so read carefully. Hopefully that helps.

Resources