Code Monkey home page Code Monkey logo

muzzley-alljoyn-integration-demo's Introduction

Muzzley / AllJoyn Integration Demo

This project demonstrates how Muzzley can be used to transport AllJoyn Notifications (interface spec) to the Internet.

AllJoyn Notifications are usually only transported through local networks such as WiFi or Bluetooth. By integrating Muzzley into an an Android application that is capable of receiving local AllJoyn Notifications, we transport them through the Muzzley cloud to any other place in the world (where there's Internet access, of course).

This is a proof of concept that shows how Muzzley can be used for bi-directional real-time communication.

Muzzley / AllJoyn Notification Gateway

The first component of the integration consists of an Android application that acts as an AllJoyn Notification receiver and, at the same time, as a Muzzley-enabled application capable of emitting data to paired devices through the Internet.

The Android app is in the android-app/ folder.

AllJoyn Notification Demo

This demo builds on top of the AllJoyn Notication UI demo. The base demo can be downloaded at the AllJoyn SDK Downloads Page and is included in the AllJoyn Notification Service Framework SDK - 1.0.1 zip.

The app is capable of acting as a notification producer and consumer at the same time. That is, you can emit notifications and receive them in the same Android device.

We have changed the original screen to add a button (the Muzzley logo on the top right) that takes the user back to the "Muzzley Notification Gateway" view.

Muzzley's Home Notification Gateway

The main view of this sample app is what we like to call the "Home Notification Gatway". It's the main view of the app described in the previous section.

It shows how you can easily create an Android-powered AllJoyn Notifications gateway and, through the Muzzley integration, have a simple method of taking your notifications with you when you leave the house.

On the left side, the received notifications are shown. On the right side, we can see the Muzzley connection information that allows us to pair our smartphone using the Muzzley app for Android or iPhone.

The application connects to Muzzley by integrating the Muzzley Java Lib. The code where we connect to Muzzley and forward the AllJoyn Notifications, is in the file com / muzzley / alljoynintegration / MuzzleyManager.java.

The Muzzley WebView

The second component of this demo is a Muzzley WebView widget that lists the notifications that were forwarded by the Android app (described above) through the Muzzley cloud. It also has a "Settings" screen where the user can enable or disable receiving notifications from specific AllJoyn applications. These settings get sent back to the AllJoyn-enabled application. This shows how we achieve bi-directional real-time communication.

The WebView widget's source code is in the widget-webview/ folder. Its three types of components (CSS, HTML and JavaScript) are in that same folder. If you want to extend the original WebView provided here, you can create your own at http://www.muzzley.com/widgets (registration required) and copy the contents of these files so you have a base to start with.

muzzley-alljoyn-integration-demo's People

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.