Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 59a3f9d

Browse files
author
Eduardo Fullea
committed
Merge pull request #47 from efullea/system
System Messages to wake up the app if not running. Closes #11
2 parents 37029ca + 232cc3d commit 59a3f9d

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

index.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,10 @@ <h3>Steps</h3>
670670
<li><a>Queue a task</a> to <a>fire an event</a> named
671671
<code><a>received</a></code> with the <code>message</code> attribute set
672672
to the newly created <code>SmsMessage</code> instance.
673+
<li><a>Queue a task</a> to fire a system message named
674+
<code>received</code> of type <code><a>ReceivedMessage</a></code> with the
675+
<code>message</code> attribute set to the newly created
676+
<code>SmsMessage</code> instance.
673677
</ol>
674678

675679
<p>Upon a delivery report of a previously sent SMS message being received, the
@@ -689,6 +693,18 @@ <h3>Steps</h3>
689693
<li>the <code>recipients</code> attribute set to the recipient of such
690694
message.
691695
</ol>
696+
<li><a>Queue a task</a> to fire a system message of type
697+
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
698+
<a>deliveryfailure</a> respectively if the delivery was successfull or
699+
not, with
700+
<ol>
701+
<li>the <code>messageID</code> attribute set to the identifier of the
702+
<code>SmsMessage</code> to which this confirmation is related,
703+
<li>the <code>serviceID</code> attribute set to the identifier of the
704+
service used to send such message, and
705+
<li>the <code>recipients</code> attribute set to the recipient of such
706+
message.
707+
</ol>
692708
</ol>
693709

694710
<p> The <dfn><code>clear</code></dfn> method when invoked MUST run the
@@ -1111,6 +1127,10 @@ <h3>Steps</h3>
11111127
<li><a>Queue a task</a> to <a>fire an event</a> named
11121128
<code><a>received</a></code> with the <code>message</code> attribute set
11131129
to the newly created <code>MmsMessage</code> instance.
1130+
<li><a>Queue a task</a> to fire a system message named
1131+
<code>received</code> of type <code><a>ReceivedMessage</a></code> with the
1132+
<code>message</code> attribute set to the newly created
1133+
<code>MmsMessage</code> instance.
11141134
</ol>
11151135
</ol>
11161136

@@ -1184,6 +1204,18 @@ <h3>Steps</h3>
11841204
<li>the <code>recipients</code> attribute set to the subset of the
11851205
original recipients to which this delivery report is related.
11861206
</ol>
1207+
<li><a>Queue a task</a> to fire a system message of type
1208+
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
1209+
<a>deliveryfailure</a> respectively if the delivery was successfull or
1210+
not, with
1211+
<ol>
1212+
<li>the <code>messageID</code> attribute set to the identifier of the
1213+
<code>MmsMessage</code> to which this confirmation is related,
1214+
<li>the <code>serviceID</code> attribute set to the identifier of the
1215+
service used to send such message, and
1216+
<li>the <code>recipients</code> attribute set to the recipient of such
1217+
message.
1218+
</ol>
11871219
</ol>
11881220

11891221
<p> The <dfn><code>clear</code></dfn> method when invoked MUST run the
@@ -1547,6 +1579,58 @@ <h2><a>MessagingCursor</a> Interface</h2>
15471579
</section>
15481580

15491581

1582+
<!------------------------ Interface ReceivedMessage ------------------------->
1583+
<section>
1584+
<h2><a>ReceivedMessage</a> Interface</h2>
1585+
<p>The <a>ReceivedMessage</a> interface represents a system message related to
1586+
a received message. This event is originated from the system and will start
1587+
the application if it is not currently running.
1588+
1589+
<p>The application that consumes this API SHOULD set a message handler for the
1590+
<code>ReceivedMessage</code> system message to listen for when a system
1591+
message related to a received message is fired.
1592+
1593+
<dl title="interface ReceivedMessage"
1594+
class="idl">
1595+
<dt>readonly attribute (SmsMessage or MmsMessage) message</dt>
1596+
<dd>MUST return the <code>SmsMessage</code> or <code>MmsMessage</code>
1597+
object to which this system message is related.</dd>
1598+
</dl>
1599+
</section>
1600+
1601+
1602+
<!------------------------ Interface DeliveryReport -------------------------->
1603+
<section>
1604+
<h2><a>DeliveryReport</a> Interface</h2>
1605+
<p>The <a>DeliveryReport</a> interface represents a system message related to
1606+
a delivery report of a sent message. This event is originated from the system
1607+
and will start the application if it is not currently running.
1608+
1609+
<p>The application that consumes this API MAY set a message handler for the
1610+
<code>DeliveryReport</code> system message to listen for when a system
1611+
message related to a received delivery report is fired.
1612+
1613+
<dl title="interface DeliveryReport"
1614+
class="idl">
1615+
<dt>readonly attribute DOMString serviceID</dt>
1616+
<dd>MUST return the identifier of the service used to send the message to
1617+
which this delivery report is related.</dd>
1618+
<dt>readonly attribute DOMString messageID</dt>
1619+
<dd>MUST return the identifier of the message to which this delivery
1620+
report is related.</dd>
1621+
<dt>readonly attribute DOMString[] recipients</dt>
1622+
<dd>MUST return an array contining the addresses of the subset of the
1623+
original recipients of the message to which this delivery report is
1624+
related. As delivery reports related to just part of the recipients of the
1625+
MMS message are possible, this array may not contain the full list of
1626+
recipients to which the MMS message was sent. If the delivery report is
1627+
related to an SMS message then the array will contain a single element
1628+
corresponding to the single recipient of the SMS message.
1629+
</dd>
1630+
</dl>
1631+
</section>
1632+
1633+
15501634
<!------------------------ Interface MessagingEvent -------------------------->
15511635
<section>
15521636
<h2><a>MessagingEvent</a> Interface</h2>

0 commit comments

Comments
 (0)