Display control method, display control device, and recording medium
10516750 ยท 2019-12-24
Assignee
Inventors
Cpc classification
H04M15/48
ELECTRICITY
H04M15/85
ELECTRICITY
H04L67/568
ELECTRICITY
H04W68/005
ELECTRICITY
H04L65/00
ELECTRICITY
International classification
H04M15/00
ELECTRICITY
Abstract
A non-transitory computer-readable recording medium stores a display control program that causes a computer to execute a process. The process includes, receiving a notification from a terminal in one-way communication, when identification information included in the received notification is detected, extracting data included in the notification, and updating display contents of a display device from first display contents to second display contents based on the extracted data.
Claims
1. A non-transitory computer-readable recording medium storing a display control program that causes a computer to execute a process comprising: receiving a push notification from a server in one-way communication via a network; determining whether specific information is included in the push notification; when it is determined that the specific information is not included in the push notification, downloading server data from the server by transmitting a request to the server, and updating, in accordance with the server data, display contents of a display device of the computer; and when it is determined that specific information is included in the push notification, extracting push data included in the push notification, and updating the display contents of the display device of the computer from first display contents to second display contents based on the push data.
2. The recording medium according to claim 1, wherein the updating based on the push data includes, obtaining input data inputted by a user when the first display contents are displayed on the display device, and generating the second display contents on which the input data has been reflected.
3. The recording medium according to claim 1, the process further comprising: determining a condition for executing the updating based on the push data from the push notification including the specific information, wherein the updating based on the push data is executed when the condition is satisfied.
4. The recording medium according to claim 1, the process further comprising: specifying time information indicating a first time period included in the push notification; and when the first time period has elapsed since a start of displaying the second display contents, updating the display contents of the display device from the second display contents to the first display contents.
5. The recording medium according to claim 1, wherein the extracting includes, specifying user information regarding a user of the computer from a memory included in the computer, and extracting a user type from the push notification, and wherein the updating based on the push data is executed when the user information satisfies the extracted user type.
6. The recording medium according to claim 1, wherein the push data includes a HyperText Markup Language script.
7. The recording medium according to claim 1, wherein the updating based on the push data includes, changing first display data corresponding to the first display contents stored in a storage device to second display data based on the push data, and updating the display contents of the display device from the first display contents to the second display contents based on the second display data stored in the storage device.
8. The recording medium according to claim 7, wherein the updating based on the second display data is carried out by causing a Web browser to perform displaying the second display data stored in the storage device.
9. The recording medium according to claim 1, the process further comprising: obtaining message data included in the push notification including the specific information; and displaying a text corresponding to the obtained message data on the display device.
10. The recording medium according to claim 1, wherein the push notification is transmitted from the server to the computer by designating a device token of the computer.
11. A display control method executed by a computer, the method comprising: receiving a push notification from a server in one-way communication via a network; determining whether specific information is included in the push notification; when it is determined that the specific information is not included in the push notification, downloading server data from the server by transmitting a request to the server, and updating, in accordance with the server data, display contents of a display device of the computer; and when it is determined that specific information is included in the push notification, extracting push data included in the push notification, and updating the display contents of the display device of the computer from first display contents to second display contents based on the push data.
12. A display control device comprising: a display; and a processor coupled to the display and the processor configured to, receive a push notification from a server in one-way communication via a network; determine whether specific information is included in the push notification; when it is determined that the specific information is not included in the push notification, download server data from the server by transmitting a request to the server, and update, in accordance with the server data, display contents of a display device of the computer; and when it is determined that specific information is included in the push notification, extract push data included in the push notification, and update the display contents of the display device of the computer from first display contents to second display contents based on the push data.
13. The display control method according to claim 11, wherein the push data includes a HyperText Markup Language script.
14. The display control method according to claim 11, wherein the updating based on the push data includes, changing first display data corresponding to the first display contents stored in a storage device to second display data based on the push data, and updating the display contents of the display device from the first display contents to the second display contents based on the second display data stored in the storage device.
15. The display control method according to claim 14, wherein the updating based on the second display data is carried out by causing a Web browser to perform displaying the second display data stored in the storage device.
16. The display control method according to claim 11, further comprising: obtaining message data included in the push notification including the specific information; and displaying a text corresponding to the obtained message data on the display device.
17. The display control method according to claim 11, wherein the push notification is transmitted from the server to the computer by designating a device token of the computer.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
DESCRIPTION OF EMBODIMENTS
(25)
(26) The application providing server 1 is, for example, a physical server and distributes an application that runs on the user terminals 5a to 5c. The push service system 3 is a system of an organization that provides the operating systems (OSs) of the user terminals 5a to 5c. The user terminals 5a to 5c are mobile terminals, for example, smartphones, tablets, or the like and include installed applications provided from the application providing server 1.
(27) When a push notification is distributed to the user terminals 5a to 5c, authentication is performed between the push service system 3 and the user terminals 5a to 5c, and between the push service system 3 and the application providing server 1. After that, the application providing server 1 transmits data having a specified transmission destination to the push service system 3. The push service system 3 distributes the received data to the specified transmission destination by a push notification. A push notification is a notification that is transmitted by one-way communication, and the notification is distributed to the user terminals 5a to 5c without the user terminals 5a to 5c accessing the push service system 3.
(28)
(29)
(30) Next, a description will be given of the processing performed by the application providing server 1, and the processing performed by the user terminals 5a to 5c with reference to
(31) First, a description will be given of the processing performed by the application providing server 1 with reference to
(32)
(33) In this regard, the push notification may include information of an item other than the items illustrated in
(34) The communication unit 12 of the application providing server 1 transmits the push notification generated in step S1 to the push service system 3 (step S3). Next, the processing terminates. The push service system 3 transmits the push notification received from the application providing server 1 to the user terminals 5a to 5c, which are the specified transmission destinations.
(35) By performing the processing as described above, it is possible for the user terminals 5a to 5c to receive the push notification. The user does not perform an input operation, or the like in order to download the data for updating content from the application providing server 1.
(36) Next, a description will be given of the processing performed by the user terminals 5a to 5c with reference to
(37) First, the communication unit 51 of the user terminal 5a receives the push notification distributed from the push service system 3 (
(38) The data processing unit 52 obtains the information of each item from the push notification based on the identification information included in the push notification (step S13). The data processing unit 52 outputs the obtained information to the update unit 53.
(39) The update unit 53 determines whether or not update1 is set as [event] (step S15). If update1 is set as [event] (step S15: Yes), the processing proceeds to step S31 in
(40) If update1 is not set as [event] (step S15: No), the update unit 53 determines whether or not update2 is set as [event] (step S17). If update2 is set as [event] (step S17: Yes), the processing proceeds to step S51 in
(41) If update2 is not set as [event] (step S17: No), the update unit 53 determines whether or not updateMoment is set as [event] (step S19). If updateMoment is set as [event] (step S19: Yes), the processing proceeds to step S71 in
(42) If updateMoment is not set as [event] (step S19: No), the update unit 53 determines whether or not conditionsDisplay is set as [event] (step S21). If conditionsDisplay is set as [event] (step S21: Yes), the processing proceeds to step S101 in
(43) If conditionsDisplay is not set as [event] (step S21: No), the update unit 53 determines whether or not download is set as [event] (step S23). If download is set as [event] (step S23: Yes), the processing proceeds to step S131 in
(44) Next, a description will be given of the processing subsequent to connector A with reference to
(45) The update unit 53 determines whether or not a content (hereinafter referred to as target content) specified by [ID] has been downloaded to the user terminal 5a (
(46) If the target content has not been downloaded (step S31: No), the processing returns to the processing in
(47) If the target content has been downloaded (step S31: Yes), the update unit 53 performs the following processing. Specifically, the update unit 53 updates the target content stored in the content storage unit 56 with the data having given [HTML] or [script] in the push notification (step S33).
(48) For example, it is assumed that the content before update is a content as illustrated in
(49) For example, it is assumed that a content before the update is a content illustrated in
(50) The update unit 53 determines whether or not the target content is being displayed (step S35). If the target content is not being displayed (step S35: No), the processing proceeds to the processing in step S43.
(51) If the target content is being displayed (step S35: Yes), the update unit 53 stores the data (for example, the data that was input in the form of a Web page) related to the content being displayed in the temporary data storage unit 55 (step S37).
(52) The update unit 53 displays the content updated in step S33 by reloading, for example (step S39). In this regard, when a browser is installed as an application other than the application provided from the application providing server 1, the content after the update may be displayed in the process of the browser.
(53) The update unit 53 reflects the data stored in the temporary data storage unit 55 on the content being displayed (step S41).
(54) The update unit 53 displays a message given [msg] in the push notification in the dialog (step S43). The processing then terminates. In the same manner as step S39, the message may be displayed by the process of the browser.
(55) By performing the processing as described above, even if target content is being displayed, it is possible to update the content without losing the input data, or the like, and it becomes possible for a user to browse the content after the update early. For example, when a content illustrated in
(56) Next, a description will be given of the processing subsequent to connector B in
(57) The update unit 53 determines whether or not the target content has been downloaded to the user terminal 5a (
(58) If the target content has not been downloaded (step S51: No), the processing returns to the processing in
(59) If the target content has been downloaded (step S51: Yes), the update unit 53 performs the following processing. Specifically, the update unit 53 updates the target content stored in the content storage unit 56 with the data given [HTML] or [script] in the push notification (step S53).
(60) The update unit 53 determines whether or not the target content is being displayed (step S55). If the target content is not being displayed (step S55: No), the update unit 53 loads the content stored in the content storage unit 56 to display the content (step S57). The processing then proceeds to the processing in step S65. In this regard, when a browser is installed as an application other than the application provided from the application providing server 1, the content after the update may be displayed in the process of the browser.
(61) If the target content is being displayed (step S55: Yes), the update unit 53 stores the data (for example, data that was input in the form of a Web page) related to the content being displayed in the temporary data storage unit 55 (step S59).
(62) The update unit 53 displays the content updated in step S53 by reloading, for example (step S61). In the same manner as step S57, the content after the update may be displayed in the process of the browser.
(63) The update unit 53 reflects the data stored in the temporary data storage unit 55 on the content being displayed (step S63).
(64) The update unit 53 displays a message given [msg] in the push notification in the dialog (step S65). The processing then terminates. In the same manner as steps S57 and S61, a message may be displayed in the process of the browser.
(65) By performing the processing as described above, even if the content before the update is not displayed, it becomes possible to display the content after the update, and thus for example, it is effective in the case of a particularly important update, or the like.
(66) Next, a description will be given of the processing subsequent to connector C with reference to
(67) The update unit 53 determines whether or not the target content has been downloaded to the user terminal 5a (
(68) If the target content has not been downloaded (step S71: No), the processing returns to the processing in
(69) If the target content has been downloaded (step S71: Yes), the update unit 53 determines whether or not the target content is being displayed (step S73). If the target content is not being displayed (step S73: No), the processing returns to the processing in
(70) If the target content is being displayed (step S73: Yes), the update unit 53 stores data (for example, data that was input in the form of a Web page) related to the content being displayed in the temporary data storage unit 55 (step S75).
(71) The update unit 53 updates a content cache before the update among the caches stored in the cache storage unit 57 with data given [HTML] or [script] in the push notification (step S77). The update unit 53 then displays the content after the update on the screen of the user terminal 5a. Here, the update unit 53 may display the content after the update in the process of the browser.
(72) The update unit 53 reflects the data stored in the temporary data storage unit 55 on the content being displayed (step S79).
(73) The update unit 53 displays a message given [msg] in the push notification in the dialog (step S81). The processing then proceeds to step S83 in
(74) Referring to the description in
(75) The update unit 53 stores data (for example, the data that was input in the form of the Web page) related to the content being displayed in the temporary data storage unit 55 (step S85).
(76) The update unit 53 updates the cache of the content being displayed among the caches stored in the cache storage unit 57 with the content (that is to say, the content before the update) stored in the content storage unit 56 (step S87). The update unit 53 then displays the content based on the cache updated in step S87 on the screen of the user terminal 5a. Here, the update unit 53 may cause the process of the browser to display the content.
(77) The update unit 53 reflects the data stored in the temporary data storage unit 55 on the content being displayed (step S89). The processing then returns to the description in
(78) By performing the processing as described above, it becomes possible to display the updated content for a specified period of time or at a specified time, and after that, to display the original content.
(79) Next, a description will be given of the processing subsequent to connector D with reference to
(80) The update unit 53 determines whether or not the target content has been downloaded to the user terminal 5a (
(81) If the target content has not been downloaded (step S101: No), the processing returns to the processing in
(82) If the target content has been downloaded (step S101: Yes), the update unit 53 updates the target content stored in the content storage unit 56 with the data given [HTML] or [script] in the push notification (step S103). In this regard, it is assumed that the target content is content other than the content being displayed.
(83) The update unit 53 records processing for determining whether or not the display condition indicated by the data is satisfied as periodic processing (step S105). Thereby, the processing for determining the display condition indicated by the data given [do] comes to be performed at predetermined intervals.
(84) The update unit 53 determines whether or not the display condition is satisfied based on the data obtained by the state data acquisition unit 58 (step S107). If the display condition is not satisfied (step S107: No), the update unit 53 waits for a predetermined time period, and the processing returns to step S107.
(85) If the display condition is satisfied (step S107: Yes), the update unit 53 deletes the periodic processing recorded in step S105 (step S109). Thereby, the processing for periodically determining whether or not the display condition indicated by the data given [do] is satisfied will not be performed.
(86) The update unit 53 stores data (for example, the data that was input in the form of the Web page) related to the content being displayed in the temporary data storage unit 55 (step S111).
(87) The update unit 53 displays the content updated in step S103 (step S113). Here, the content after the update may be displayed in the process of the browser.
(88) The update unit 53 displays a message given [msg] in the push notification in the dialog (step S115). The processing then proceeds to step S117 in
(89) The update unit 53 detects that the window in which the updated content is displayed has been closed (
(90) The update unit 53 reads the originally viewed content (that is to say, a content other than the target content) from the content storage unit 56 and displays it (step S119).
(91) The update unit 53 reflects the data stored in the temporary data storage unit 55 in step S111 on the content being displayed (step S121). The processing then returns to the description in
(92) By performing the processing as described above, it becomes possible to display a suitable content at a suitable timing. For example, when the display condition that the temperature is equal to or higher than a predetermined temperature and the illuminance is equal to or higher than a predetermined value is satisfied, a content of ice cream is displayed as illustrated in
(93) Next, a description will be given of the processing subsequent to connector E with reference to
(94) First, the update unit 53 determines whether or not the target content has been downloaded to the user terminal 5a (
(95) If the target content has not been downloaded (step S131: No), the update unit 53 stores data (that is to say, a content) given [HTML] or [script] in the push notification in the content storage unit 56 (step S133). The processing then proceeds the processing in step S137.
(96) If the target content has been downloaded (step S131: Yes), the update unit 53 updates the target content stored in the content storage unit 56 with the data given [HTML] or [script] in the push notification (step S135).
(97) The update unit 53 displays a message given [msg] in the push notification in the dialog (step S137). The processing then returns to the description in
(98) By performing the processing as described above, only downloading of a new content is carried out without the display being updated.
(99) As described above, with the present embodiment, the number of communications that are performed until the update is completed becomes reduced. In this regard, if the present embodiment is not used, a push notification for notifying update is sent, a download request is made from the user terminal to the application providing server 1, and communication for downloading is performed. However, if one time of communication out of the three times of communication fails, the update will not be completed. However, with the present embodiment, it becomes possible to complete the update of the display by a push notification. Accordingly, it becomes possible to reduce the possibility of failing in the update.
(100) Also, the user terminals 5a to 5c do not make a download request to the application providing server 1, and thus it becomes possible to reduce the processing load of the application providing server 1.
(101) Also, content is automatically updated in response to the reception of a push notification, thereby the user does not perform the update work, and thus the operability will be improved.
(102) Also, by using a script, it becomes possible to temporarily change the display without changing the content main body.
(103) Also, by using [ID], it becomes possible to update a plurality of content data blocks all at once.
(104) In the above, a description has been given of an embodiment of the present disclosure. However, the present disclosure is not limited to this. For example, the functional block configurations of the application providing server 1 and the user terminals 5a to 5c, described above sometimes do not match the real program module configuration.
(105) Also, the data structure described above is an example, and the present disclosure does not have to have the data structure described above. Further, in the processing flows, it is possible to change the order of the processing if the processing result will not change. Further, the processing may be performed in parallel.
(106) In this regard, the above-described application providing server 1 and user terminals 5a to 5c are computer devices, and as illustrated in
(107) The embodiment of the present disclosure is summarized as follows.
(108) A display control method according to a first aspect of the present embodiment performs processing including (A) receiving a notification from the other device by one-way communication, (B) obtaining data from the notification based on the identification information included in the received notification, and (C) updating the display of a terminal device with the obtained data.
(109) It becomes possible to reduce the number of communications performed until the display is updated. Thereby, it becomes possible to reduce a risk of update failure.
(110) Also, this display control method may further include (D) storing input data included in the display in a storage device, and (E) updating the display with the obtained data and then reflecting the input data stored in the storage device on the display after the update. It becomes possible to avoid wasting input.
(111) Also, this display control method may further include (E) processing for obtaining the condition for performing display after the update based on the identification information. In the processing for updating the display of the terminal device, (c1) if the condition is satisfied, the display may be updated with the obtained data. It becomes possible to update the display at a suitable timing.
(112) Also, this display control method may further include (F) processing for obtaining information on a first time for displaying after the update from the notification based on the identification information. In the processing for updating the display of the terminal device, if (c2) the cache is updated with the obtained data, (c3) the display is updated using the cache after the update, and (c4) a first time period elapsed from the start of the display after the update, the cache after the update may be returned to the cache before the update, and (c5) the display after the update may be returned to the display before the update using the cache having been returned to the state before the update. It becomes possible to change the display only for the first time period.
(113) Also, in the processing for obtaining data, (b1) the data may be obtained from the notification based on the identification information and the information regarding the user of the terminal device. It becomes possible to obtain data for the user of the terminal device.
(114) Also, the obtained data may include a script of HyperText Markup Language (HTML). It becomes possible to reduce the amount of communication data by using not a HTML file itself, but a script.
(115) Also, in the processing for updating the display of the terminal device, (c6) the display data stored in the storage device and corresponding to the display before the update may be updated with the obtained data, and (c7) the display data stored in the storage device and having been updated may be displayed.
(116) Also, in the processing for updating the display of the terminal device, (c8) the display data stored in the storage device and corresponding to the display before the update may be updated with the obtained data, and (c9) the processing for displaying the display data stored in the storage device and updated may be executed by the process of a Web browser.
(117) Also, in this display control method, (G) the message data to be displayed on the terminal device may be obtained based on the identification information, and (H) the obtained message data may be displayed. For example, it becomes possible to notify the user of the terminal device of the update of the display.
(118) Also, the notification may be a push notification.
(119) A terminal device according to a second aspect of the present embodiment performs communication with the other device. The terminal device includes (I) a reception unit (for example, the communication unit 51 in the embodiment) that receives a notification transmitted from the other device by one-way communication, (J) an acquisition unit (for example, the data processing unit 52 in the embodiment) that obtains data from the notification based on the identification information included in the received notification, and an update unit (for example, the update unit 53 in the embodiment) that updates the display of the terminal device with the obtained data.
(120) In this regard, it is possible to create a program for causing a processor to perform the processing by the above-described method. The program is stored in a computer readable storage medium or a storage device, for example, a flexible disk, a CD-ROM, a magneto-optical disk, a semiconductor memory, a hard disk, or the like. In this regard, intermediate processing result is temporarily stored in a storage device, such as a main memory, or the like.
(121) All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.