Sending information from iOS to macOS : <p>I'm working on an app for iOS and macOS and should be installed on both devices (iOS device and Mac computer) to work.</p>

<p>I want an option to send strings from the iOS device to the Mac (for example: if the user writes "Hello World!" and presses "transfer" button I want to get it instantly on the Mac app).</p>

<p>What is the best option to send strings from an iOS app to a macOS app (it should work even when the device isn't near the computer and even if it's not connected to the same WIFI network)?</p>

<p>Thank you!</p>
