Git Product home page Git Product logo

sunkusaarthak / castnear Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 779 KB

This is a native Android app that sends notifications to all users within 3km proximity when a user presses a button on their phone. Clicking on the notification leads the user to an activity with the broadcast message. It uses Firebase Firestore for the database and Firebase Cloud Messaging for sending notifications.

Kotlin 100.00%
android androidstudio cloudmessaging fcm-notifications firebase firestore fusedlocationproviderclient kotlin location

castnear's Introduction

Cast Near

This project is a native Android app that sends notifications to all users within 3km proximity when a user presses a button on their phone. Clicking on the notification leads the user to an activity with the broadcast message.

Screenshots

photo_2023-02-14_16-50-24 photo_2023-02-14_16-50-22 photo_2023-02-14_16-50-21

Features

  • Sends notifications to all users within 3km proximity when a user presses a button
  • Clicking on the notification leads the user to an activity with the broadcast message
  • Uses Firebase Firestore for the database
  • Uses Firebase Cloud Messaging for sending notifications
  • Uses an open source UI template

Getting Started

Prerequisites

  • Android Studio
  • Firebase Account
  • Google Play Services SDK

Installation

  1. Clone the repository from GitHub.
  2. Open the project in Android Studio.
  3. Configure Firebase by following the steps in the Firebase documentation.
  4. Build and run the app on an emulator or physical device.

Usage

To use this app, follow these steps:

  1. Press the button in the app to send a notification to all users within 3km proximity.
  2. Click on the notification to view the broadcast message.

Documentation

The app has the following directory structure:

  • app/src/main/java/com/example/castneat/ - contains the Java source code for the app
  • app/src/main/res/layout/ - contains the XML layout files for the app's user interface
  • app/src/main/res/values/ - contains XML files that define values used throughout the app

The following files are the most important for understanding the app:

  • MainActivity.java - contains the code for the main activity that sends the notification to all users within 3km proximity
  • BroadcastActivity.java - contains the code for the activity that displays the broadcast message
  • activity_main.xml - contains the layout for the main activity
  • activity_broadcast.xml - contains the layout for the broadcast activity

The app uses Firebase Firestore to store information about users' proximity and Firebase Cloud Messaging to send targeted notifications. The sendNotification() method in MainActivity.java uses a cloud function to send the notification to all users within 3km proximity.

Roadmap

  • Implement unit tests for the app
  • Improve the UI with custom graphics and animations

Contributing

Contributions to this project are welcome! To contribute, please follow these steps:

  1. Fork the repository on GitHub.
  2. Create a new branch.
  3. Make your changes.
  4. Test your changes.
  5. Create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

castnear's People

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.