Giter Site home page Giter Site logo

mauroprojetos / iot-push-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pubnub/iot-push-demo

0.0 2.0 0.0 797 KB

A simulated IoT panel desktop UI for Android (GCM) and iOS (APNS) push notification demo using Cordova

Home Page: http://pubnub.github.io/iot-push-demo/

License: MIT License

CSS 24.75% HTML 20.37% JavaScript 54.88%

iot-push-demo's Introduction

Sending push notifications from Web app to Android devices (via GCM) and iOS devices (via APNS)

A showcase demo and a quick tutorial of PhoneGap and PubNub data stream network JavaScript API, using a simulated Smart room heater (ร  la Nest) web user-interface to give you some use case ideas.

photo

How to try the demo

This demo is only available for Android devices, due to the lack of openness of iOS app development.

There are two parts of demo- an Android app, and a web app. First you access to the Android app to obtain your Registration ID, then you pair the device with the desktop app to be able to receive push notifications.

Android Instruction

  • Download this apk and install it on your Android device
  • Once your device is registered to this demo, you should get your 8-digit unique ID

Desktop Instruction

  • Go to pubnub.github.io/iot-push-demo
  • Enter your 8-digit ID in the input box
  • Hover cursor over the temperature controller UI, and use mousewheel or trackpad to change the value
  • When you set the room temperature above 80F, it sends you a push notification to your Android device

Source Code

This repo is for the web app only, however, I included the code to be used for Cordova/PhoneGap app under cordova folder. The index.js file should be in your_cordova_app_root/www/js to build as an Android native app.

Tutorials

I wrote a series of step-by-step instructions on how to send push notifications using Cordova plugin and PubNub APIs:

Also, I have PhoneGap/Cordova 101 tuts:

iot-push-demo's People

Contributors

girliemac avatar

Watchers

James Cloos 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.