pushNotification

Push Notification to Android Phones using GCM


Keywords
android, notificatio
License
Other
Install
pip install pushNotification==1.0.1

Documentation

This is a simple python library that can send notification to Android Phone using Google Cloud Messaging (GCM).

It supports both Python 2.5+ and Python 3.4+

Get Sender ID and API Key

Follow the wizard here

  1. Click 'Choose and Configure Services'.
  2. Click to enable 'Cloud Messaging'
  3. Add Server Key to ~/.pushNotificatio or /etc/pushNotifications after installing the library.
  4. Put Sender ID in the Android applicatuion

Usage:

  1. Download and install pushNotification library

      sudo python setup.py install
    

    OR

    sudo pip install future simplejson pushNotification

  2. Download and install the Android APK to your phone.

  3. Open Application and enter topics to listen on (seprated by ,) e.g warning,mkalioby. Android Image

  4. in your python code, write

        import pushNotification
        pushNotification.push(MESSAGE,TOPIC,CUSTOM_API_KEY="")

The return is a JSON String.

Finally, check your phone.

Next Features:

  1. iOS support.