Enable interactions between nearby devices and people

  • Engage
  • Develop
  • Games

With the Nearby APIs you can let your users work or play together better when they're close, within about 100 feet: easily set up multiplayer games, ad hoc groups, sharing, or collaborative sessions.

Why it works

The unique ranging and cross-platform capabilities of Nearby make it easy to build experiences that seem magical when users are close by. This increases engagement among users who use your Nearby powered features and encourages users to share your app.

Key features

  • Nearby Connections API: Discover nearby devices and stream data between them or transfer files or other data peer to peer with a full two way communication channel. Enable rich interactions and collaboration among users such as multiplayer gaming, real-time collaboration, forming a group, broadcasting a resource, or sharing content.
  • Nearby Messages API: Broadcast short messages that nearby devices can detect. Enable forming groups, sharing small amounts of information one way between devies, or broadcasting a resource.

Best practices

  • Use the appropriate API for the feature you're building. Use the API guide to decide which is the best choice.
  • Use Nearby features sparingly and only when they're needed, to preserve battery life. This is because the Nearby APIs may extensively use radio and sensor features, in some cases consuming battery up to 3.5 times faster than normal.
  • Use an explicit action to invoke Nearby, such as a button, switch, or special screen. Provide the user with a visual indicator — for example, an animation — to show Nearby is actively sending or receiving content. Use the Nearby logo found at developers.google.com/nearby.
  • Make sure the user understands what data will be visible to nearby users of your app before they start using Nearby features.
  • Stop using Nearby when your application is not active. See the documentation for more information about how to use or stop using Nearby features.

Get started

Nearby

Examples