Code Monkey home page Code Monkey logo

vision-nearby's Introduction

vision-nearby

Description

This sample application is that performs proximity communication using BLE (Bluetooth Low Energy).
In recent years, proximity communication has been attention.

For example, there are the following cases.

  • Set the beacon in the store and deliver the coupon when the user passed the store.
  • Set the beacon at the bus stop and display the bus timetable when the user approaches the bus stop.

This sample application activates the Android device as a beacon (Eddystone-UID) and each Android devices advertise and subscribe by using BLE.
When you can detect nearby users and you can get the user information.

Features

Sign in

Use Google sign in.

google-signin.png

Detection of the nearby users

You can detect nearby users.
Detection of nearby users is performed in the foreground and in the background.

detect-nearby-users

Nearby history

You can see the history of detecting the nearby users in chronological order.

history

User profile

You can see detected user profile.
User profile contains personal information (such as name, email) associated with a Google Account and environment data (such as weather, location) when proximity communication has occurred.

profile

Favorite management

It is possible to manage nearby users as favorites and access favorite user profile.

favorite

Device tracking

You can track the location of the device.
When other user detect your devices, your device location saved and you can see that location.

tracking

Getting started

Set up Firebase project

This sample application uses Firebase that known as mobile backend as a service (MBaaS).

You need to create a Firebase project, and download a google-services.json file.
After downloading the google-services.json file, copy this into your project's module folder, typically app/.
And, you must add SHA-1 fingerprint of your application to Firebase.

Please refer to the following link.
How to add Firebase to your Android Project

Enable Google sign in

Please refer to the following link.
Authenticate Using Google Sign-In on Android - Before you begin

Use Libraries

This sample application uses Firebase as a backend service.
This sample application uses Firebase functions that Realtime Database, Analytics, Crash Reporting.

AltBeacon is beacon library.
This sample application advertise and subscribe as a beacon by using AltBeacon library.

When detect nearby users, get the user's current environment (such as weather, location, user activity) by using Google Awareness API.
Show getting user's environment on user profile screen.

Show detected user on map by using Google Maps API.

This sample application approaches Clean Architecture using dependency injection.
Dagger is library of dependency injection.

vision-nearby's People

Contributors

sunada-ke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.