diff --git a/README.md b/README.md index fcb2548..ab55508 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ so you don't need to add anything **to work with p2p network**. > Note that if you want to use the plugin **to send files**, you need to add > ```xml -> +> > > ``` > to your **AndroidManifest.xml**. @@ -75,9 +75,39 @@ so you don't need to add anything **to work with p2p network**. ### IOS +For IOS, you need to add the following values to **Info.plist**: + +```plist +NSBonjourServices + + _mp-connection._tcp + +UIRequiresPersistentWiFi + +NSLocalNetworkUsageDescription +[Your description here] +``` + +- `NSBonjourServices` + + For the `nearby_service` plugin, you should add the value `_mp-connection._tcp`. This key is + required for **Multipeer Connectivity**. It defines the Bonjour services + that your application will look for. Bonjour is Apple's implementation of zero-configuration networking, which allows + devices on a LAN to discover each other and establish connections without requiring manual configuration. + +- `UIRequiresPersistentWiFi` + + This key is not strictly required for **Multipeer Connectivity** to work. This key is used + to indicate that your application requires a persistent Wi-Fi connection even when the screen is off. This can be + useful for maintaining a network connection for continuous data transfer. + +- `NSLocalNetworkUsageDescription` + + This key is needed to inform users why your application will use the local network. You must provide a string value + that explains why your application needs LAN access. + ## Usage -[Provide a simple usage example to get started quickly.]