Skip to content

uysalemre/hms-nearby-wifi-share

Repository files navigation

Nearby Wifi Share Application

Introduction

This application shows an example use case of Nearby Wifi Share in React Native HMS Nearby Service Plugin.

Note

You need 2 HMSCore APK installed phones to test this app. This application is tested on Huawei P30 Lite and Huawei Y6.

How to Run ?

Clone the code or download the zip file and then install the dependencies using command below.

npm i 

Put your agconnect-services.json and keystore_file.jks under android > app directory.

Then fill the android > app > build.gradle file as given below.

defaultConfig {
    applicationId "<package_name>"  // your package name in agconnect-services.json
    ...
}

signingConfigs {
    config {
        storeFile file('<keystore_file>.jks') // your keystore filename
        storePassword '<keystore_password>'   // keystore password
        keyAlias '<key_alias>'                // key alias
        keyPassword '<key_password>'          // key password
        ...
    }
    ...
}

Run the application

npx react-native run-android

Screenshots

Phone 1 Requester Phone 2 Sharer

Sources

Plugin

Installation : npmjs

Official Documentation Guide : Guide

Official Documentation Reference : Reference

About

A React Native Android Application that uses Huawei Mobile Services Nearby Wifi Share feature for sharing wifi between Huawei Devices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published