Coder Social home page Coder Social logo

gcmpush's Introduction

Titanium Module for Firebase Cloud Messaging Push Notifications for Android

A Titanium module for registering a device with Firebase Cloud Messaging and handling push notifications sent to the device.

gitTio

Read the documentation.

Quickstart

  1. Install this module using Axway Studio or via the CLI with gittio install nl.vanvianen.android.gcm
  2. Set up your Firebase project.
  3. Download the google-services.json file and put it in PROJECT_FOLDER/app/assets/android/ (or PROJECT_FOLDER/Resources/android/ for non-Alloy projects).
  4. You are ready to receive Android push notifications! Check the documentation for further instructions and examples.

GCM to FCM Migration

If you are upgrading this module to version 3.0+, you will need to migrate to Firebase (Google will discontinue GCM in April 2019):

  1. In the Firebase console, select Add Project
  2. Select your GCM project from the list of existing Google Cloud Projects, and select Add Firebase
  3. In the Firebase welcome screen, select Add Firebase to your Android App
  4. Provide your package name (and optionally an SHA1 from your keystore) and select Add App. A new google-services.json file for your Firebase app is downloaded. Place this file in PROJECT_FOLDER/app/assets/android/ (or PROJECT_FOLDER/Resources/android/ for non-Alloy projects).
  5. Update to version 3.0+ of this module
  6. Check the Upgrade Guide for instructions about what needs to be altered in your code

Build

To build this module, you will need the prerequisites described in the Android Module Project documentation.

Then, simply cd into the module directory and run the following command:

$ appc ti build -p android --build-only

OR, if you are using just the open-source Titanium SDK:

$ ti build -p android --build-only

A zip file will be created in the dist folder.

gcmpush's People

Contributors

adegreiff avatar andreybeta avatar cr0ybot avatar lawjeremy avatar m1ga avatar morinel avatar skypanther avatar

Stargazers

 avatar

Watchers

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