Search form

Documentation

Running The Notification Samples

There are two types of Notification applications, a Producer and a Consumer. The power of the Notification service framework is its simplicity and ability to allow devices to "talk" to end users to provide meaningful information.

The Notification Producer side of an application is responsible for sending a sessionless signal that contains a small amount of text with some optional values. This text is intended to be rendered on any device that contains the Consumer side of the Notification service.

The Notification Consumer side of an application is responsible for registering to receive the sessionless signal from any application that supports the Producer side of the Notification service.

The Notification interface is defined as follows:

<node>
    <interface name="org.alljoyn.Notification">
        <property name="Version" type="q" access="read"/>
        <signal name="notify">
            <arg name="version" type="q"/>
            <arg name="msgId" type="i"/>  
            <arg name="msgType" type="q"/>
            <arg name="deviceId" type="s"/>
            <arg name="deviceName" type="s"/>
            <arg name="appId" type="ay"/>
            <arg name="appName" type="s"/>
            <arg name="attributes" type="a{iv}"/>
            <arg name="customAttributes" type="a{ss}"/>
            <arg name="langText" type="a(ss)"/>
        </signal>
    </interface>
</node>

The samples can be run on the following platforms:

For future news and updates, please follow or visit https://t.co/MKr1Z9NPji
10 months 1 week ago