Giter VIP home page Giter VIP logo

gcm.js's Introduction

gcm.js

tdtsh/gcm.js is forked from https://github.com/iamyellow/gcm.js Thank you iamyellow!

gcm.js is an open source module for Titanium Android SDK that lets developers receive GCM push notifications in their Android apps.

Using Google Play Service instead of the fork original gcm.jar

It supports the Titanium SDK 6.0.x

It has a very simple API -almost identical to iOS!- yet flexible and powerful, as it executes Javascript whenever a notification is received, no matter if the app is in foreground or background. More info at: Titanium の Android で GCM(Push通知) Google Play Service版 - Qiita 変更する

build module

install before android-ndk

ant clean

ant

./cp_zip.sh

run client example

install Appcelerator Platform before

and connect your Android device to PC

cd ./example

ti build -p android -T device

run server example

install node.js before

cd ./example_server

npm install

vi demoserver.js

set your API key and Device's RegistrationId

var GCM = new _GCM('SET YOU API KEY HERE');

var registration_id = 'SET YOUR DEVICES REGISTRATIONID HERE';

node demoserver.js

known issue

Forking the module

If you want to fork and compile this module, first rename manifest_template file to manifest. Then fill the guid (line #16) with a new module uuid with the uuidgen command as this post explains.

Author

jordi domenech, iamyellow.net

License

Apache License, Version 2.0

gcm.js's People

Contributors

tdtsh avatar iamyellow avatar gimdongwoo avatar m1ga avatar hntn avatar yagitoshiro avatar

Watchers

James Cloos avatar Swanand Marathe 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.