Skip to content

Latest commit

 

History

History

HMS Nearby Serivce Xamarin Android Plugin

downloads Nuget version Licence


Data Communication allows apps to easily discover nearby devices and set up communication with them using technologies such as Bluetooth and Wi-Fi. The service provides Nearby Connection and Nearby Message APIs.

  • Nearby Connection

    Discovers devices and sets up secure communication channels with them without connecting to the Internet and transfers byte arrays, files, and streams to them; supports seamless nearby interactions, such as multi-player gaming, real-time collaboration, resource broadcasting, and content sharing.

  • Nearby Message

    Allows message publishing and subscription between nearby devices that are connected to the Internet. A subscriber (app) can obtain the message content from the cloud service based on the sharing code broadcast by a publisher (beacon or another app).

The Xamarin SDK wraps the Android SDK with Managed Callable Wrappers through the usage of Android Bindings Library projects. It provides the same APIs as the native SDK.

> Learn More

Installation

Huawei.Hms.Nearby is available on NuGet.

In the Solution Explorer panel, right click on the solution name and select Manage NuGet Packages. Search for Huawei.Hms.Nearby and install the package into your Xamarin.Android projects.

You can change the Version option to specify a preview version to install.

Documentation

Supported Environments

  • Android 5.0 (API level 21) and later versions

Sample Project

You can find the demo application demonstrating how to use the Nearby SDK on the HUAWEI Developer website.

Questions or Issues

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.
  • Huawei Developer Docs is place to official documentation for all HMS Core Kits, you can find detailed documentations in there.

License

HMS Nearby Service Kit Xamarin Android Plugin is licensed under Apache 2.0 license