Skip to content

A React Native chat application that uses Huawei Nearby Service to create connection between.

License

Notifications You must be signed in to change notification settings

uysalemre/hms-nearby-chat

Repository files navigation

Nearby Chat Application

Introduction

This chat application shows an example use case of Nearby Connection 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 Broadcaster Phone 2 Scanner

Sources

Plugin

Installation : npmjs

Official Documentation Guide : Guide

Official Documentation Reference : Reference

About

A React Native chat application that uses Huawei Nearby Service to create connection between.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published