Contents

NSNearbyInteractionUsageDescription

A request for user permission to begin an interaction session with nearby devices.

Discussion

This property defines localizable text that explains your interaction session’s purpose to the user.

Before an app starts an interaction session, the system checks whether the user agrees to share their relative distance and direction with a nearby peer. The first time the app runs, the framework presents a prompt that displays the value of this key contained in your project’s Info.plist. The system persists the user’s choice in Settings. After your app runs for the first time, it consults the user preference in Settings before it begins a new interaction session.

For more information, see Initiating and maintaining a session.

See Also

Networking