[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Creating HDML Services that "Push" Information
Section 40 out of 67 total sections , Section 9 out of 11 sections in this chapter


Combining alerts and HDML content in pull notifications

The advantage of using a pull notification that contains both an alert and HDML content is that it gives the user a sense of extremely responsive performance. Because the information you provide is preloaded into the phone, the phone displays it immediately when the user selects the alert; there is no need for an additional network exchange. There are, however, several possible disadvantages with this approach:

For this reason, it is recommended that you use push notifications for highly volatile information such as stock quotes.

Suppose you want to implement the notification that informs the user of the timely sports headline shown in Figure 5-9.

FIGURE  5-9.     Pull notification containing an alert and HDML content

To create this interface, you use two components (or applications):

The following sections provide example code that implements these two applications.


The pull notification application

The following code sends the pull notification (shown in Figure 5-9) to subscriber 859852091-411_updev.uplanet.com:


Application that provides the digest (HDML deck and alert)

The following program provides the digest specified by the pull notification in the previous section. It includes the alert and the deck shown in Figure 5-9).


[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Creating HDML Services that "Push" Information
Section 40 out of 67 total sections , Section 9 out of 11 sections in this chapter


Copyright © 1999, Unwired Planet, Inc. All rights reserved.