Code Monkey home page Code Monkey logo

ionic-cordova-chat-push-notification-app's Introduction

Token-based Push Notifications Sample App

This Sample app will guide you to setup Push Notifications in your Ionic application.

CometChat Pro Ionic Push Notifications

Pre-requisite

  1. Login to the CometChat Dashboard.
  2. Select an existing app or create a new one.
  3. Go to "API & Auth Keys" section and copy the REST API key from the "REST API Keys" tab.
  4. Go to the "Extensions" section and Enable the Push Notifications extension.
  5. Go to the "Installed" tab in the same section and open the settings for this extension and Set the version to V2.
  6. Paste the REST API Key in the Settings.
  7. Go to Firebase Console and get the Server Key for your app. Paste the Server Key in the settings and click on save.
  8. Copy your app's APP_ID, REGION and AUTH_KEY from the Dashboard. These will be required in the next steps.

Usage

  1. Clone this repository.
  2. Navigate to the src directory and replace APP_ID, REGION and AUTH_KEY with yours in src/consts.ts file.
  3. Go to Firebase Console and get your google-services.json and GoogleService-Info.plist.
  4. Place the google-services.json in android/app folder. Place the GoogleService-Info.plist in ios/App folder.
  5. Install dependencies using npm install.
  6. Run the following commands:
ionic build
npx cap sync
npx cap copy
  1. To run your Android app, execute npx cap open android.
  2. To run your iOS app, execute npx cap open ios.
  3. Please make sure you have followed all the steps mentioned for the Capacitor Plugin.

Documentation

Token-based Push Notifications

ionic-cordova-chat-push-notification-app's People

Contributors

prathameshtm avatar taruagarwal 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.