WO2022247326A1 - 基于情境的通知显示方法和装置 - Google Patents

基于情境的通知显示方法和装置 Download PDF

Info

Publication number
WO2022247326A1
WO2022247326A1 PCT/CN2022/073332 CN2022073332W WO2022247326A1 WO 2022247326 A1 WO2022247326 A1 WO 2022247326A1 CN 2022073332 W CN2022073332 W CN 2022073332W WO 2022247326 A1 WO2022247326 A1 WO 2022247326A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
state
content
card
electronic device
Prior art date
Application number
PCT/CN2022/073332
Other languages
English (en)
French (fr)
Inventor
丁一晏
陈佳子
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022247326A1 publication Critical patent/WO2022247326A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Definitions

  • the present application relates to the field of terminals, in particular to a context-based notification display method and device.
  • the present application provides a context-based notification display method and device.
  • electronic devices such as mobile phones can display in cards content that the user cares more about in the current situation according to different situations that the user is in.
  • the user can not only obtain multiple and comprehensive information, but also enable the user to quickly and accurately obtain the information that the user wants to know most in the current situation.
  • an embodiment of the present application provides a notification display method, which is applied to an electronic device, and is characterized in that the method includes: displaying a first user interface, the first user interface displays a first card, and the first card Including the first area and the second area, the first area and the second area do not overlap, the first area displays the first content, and the second area displays the second content, wherein the second content is used to indicate that the user is in the first state state, the second content is associated with the first content; it is detected that the user’s state is the second state, and the second state is different from the first state; in response to the user’s state being the second state, the first area displays the first content, the second area displays third content, the third content is used to indicate that the user is in the second state, the third content is different from the second content, and the third content is associated with the first content; wherein, the first state and The second state is a state associated with the user's geographic location and/or time.
  • the electronic device can detect the change of the state of the user.
  • the electronic device can determine the information that the user cares about in the changed state. Then, the electronic device can display the above information in the card. In this way, users can not only obtain more and comprehensive information, but also enable users to quickly and accurately obtain the information they want to know most in the current situation, avoiding tedious and inconvenient information piles.
  • the method further includes: detecting that the state of the user is a third state, and the third state is different from the second state; State, the first area displays the fourth content, the second area displays the fifth content, the fourth content is different from the first content, the fifth content is different from the third content, and the fifth content is used to indicate that the user is in the third state , the fifth content is associated with the fourth content, wherein the fourth content is associated with the first content, the display form of the fourth content is different from that of the first content, and the text content of the fourth content is the same as the text content of the first content
  • the content is the same; the third state is a state associated with the user's geographic location and/or time.
  • the electronic device may also change the content displayed in the first area during the process of changing the content displayed in the second area. This makes the content displayed by the card more flexible.
  • the method further includes: displaying a message notification, and the message notification is a banner notification, a lock screen notification, or a pull-down notification.
  • the message notification includes sixth content, the sixth content is used to indicate that the state the user is in is the second state, and the sixth content is associated with the third content.
  • the electronic device can not only remind the user of the status change by updating the card, but also remind the user of the above change through notification methods such as banner notification and lock screen notification. In this way, when the electronic device is not in the user interface displaying the card, the electronic device can also promptly remind the user through other notification forms.
  • the method further includes: displaying a second card on the first user interface, the second card includes obtaining a health code , and/or, nucleic acid records, and/or, controls for vaccine records.
  • the electronic device can also display cards including shortcuts for obtaining health codes, nucleic acid records, and vaccine records in the second state. In this way, the electronic device can automatically display the above-mentioned card when the user needs it, thereby providing the user with a more convenient and quicker experience.
  • the first card is a flight card
  • the first state, the second state and the third state are respectively: the state of reminding the user to check-in, the state of reminding the user to go to the airport One of the state, the state reflecting the user's preparation for boarding, and the state reflecting the user's arrival at the destination.
  • the state of reminding the user to check-in includes: displaying the state of check-in notice, displaying the state of check-in reminder, reminding the user that the state of check-in, displaying the state of check-in
  • the first content includes: one or more of the flight number, travel date, departure place, departure time, destination, and arrival time of the flight;
  • the third content and the fifth content respectively include: flight check-in notice, check-in reminder, check-in reminder, check-in countdown, check-in counter, departure reminder, journey time, seat number, boarding gate, luggage carousel, hotel One or more of location and tourist attraction location;
  • the fourth content includes: flight number of flight, travel date, departure place, departure time, destination, arrival time, check-in counter, seat number, boarding gate, or Multiple.
  • the method further includes: when the first state, the second state or the third state reflects the state that the user is preparing to board the plane; determining that the electronic device is running the immersive application
  • the program displays a floating window, and the floating window is used to display a boarding reminder; wherein, the immersive application is one or more of a video application, a game application, a music application or a call application.
  • the electronic device when it is detected that the user is using an immersive application program, the electronic device can display a floating window.
  • the floating window can display prompt information and shortcuts. In this way, users can also get notifications quickly and avoid delays while using immersive applications.
  • the method further includes: detecting a first operation of the user on the floating window; in response to the first operation, displaying the electronic boarding pass, wherein the first operation is a click operation , long press operation slide operation or voice control operation.
  • the user can quickly obtain the electronic boarding pass by clicking on the floating window when the electronic boarding pass needs to be displayed.
  • the first card is a card showing the itinerary of the high-speed rail; the first state, the second state and the third state are respectively: reminding the user that the high-speed rail is about to depart, reflecting that the user has One of the status of arriving at the high-speed rail station and the status reflecting the departure of the high-speed rail.
  • the first content includes: one or more of train number, travel date, departure place, departure time, destination, and arrival time; second content, third content and the fifth content respectively include: one or more of departure reminder, carriage number, seat number, and ticket gate; the fourth content includes: train number, travel date, departure place, departure time, destination, arrival time, departure reminder, carriage One or more of number, seat number, ticket gate.
  • the method further includes: when the first state, the second state or the third state reflects the state that the user has arrived at the high-speed rail station; determining that the electronic device is running an immersive Application, displaying a floating window, the floating window is used to display the two-dimensional code of the electronic ticket; wherein, the immersive application is one or more of video applications, game applications, music applications or call applications .
  • the electronic device when it is detected that the user is waiting in the waiting room and using an immersive application program, the electronic device can display a floating window.
  • the floating window can allow the user to quickly obtain the QR code of the electronic device, thereby quickly passing through the security check. In this way, users can also get notifications quickly and avoid delays while using immersive applications.
  • the method further includes: detecting a first user operation on the floating window; in response to the first operation, displaying a two-dimensional code of the electronic device, wherein the first operation is clicking One of operation, long press operation, swipe operation or voice control operation.
  • the first card is a check-in card.
  • the electronic device can update the check-in notification in the card in time through status detection. Furthermore, users can quickly complete check-in through this card.
  • the first state is a state of displaying clock-in reminders at work
  • the second state is a state of displaying reminders of leaving get off work.
  • the first content includes a clock-in reminder
  • the second content includes one or more of the clock-in control, clock-in time at work, or whether the user clocks in
  • the third content includes: One or more of the clock-in control, clock-out time, or whether the user clocks in.
  • an embodiment of the present application provides an electronic device, which includes one or more processors and one or more memories; wherein, the one or more memories are coupled to the one or more processors, and one or more A plurality of memories are used to store computer program codes, and the computer program codes include computer instructions.
  • the electronic device executes the method described in the first aspect and any possible implementation manner of the first aspect. method.
  • an embodiment of the present application provides an electronic device, the electronic device includes one or more processors and one or more memories; the memory is coupled to the one or more processors, and the memory is used to store computer program codes, Computer program code includes computer instructions that are invoked by one or more processors to cause an electronic device to perform:
  • the first user interface is displayed, the first user interface displays a first card, the first card includes a first area and a second area, the first area and the second area do not overlap, the first area displays the first content, and the second area displays The second content, wherein the second content is used to indicate that the state of the user is the first state, and the second content is associated with the first content; it is detected that the state of the user is the second state, and the second state is different from the first state ; In response to the user's state being the second state, the first area displays the first content, the second area displays the third content, and the third content is used to indicate that the user's state is the second state, and the third content is the same as the second The content is different, and the third content is associated with the first content; wherein, the first state and the second state are states associated with the user's geographic location and/or time.
  • the one or more processors are specifically configured to call computer instructions so that the electronic device executes: detecting that the state that the user is in is the third state, and the third state and the first state The two states are different; in response to the user being in the third state, the first area displays the fourth content, the second area displays the fifth content, the fourth content is different from the first content, the fifth content is different from the third content, The fifth content is used to indicate that the user is in the third state, and the fifth content is associated with the fourth content.
  • the fourth content is associated with the first content, and the display form of the fourth content is different from that of the first content.
  • the text content of the fourth content is the same as the text content of the first content;
  • the third state is a state associated with the user's geographic location and/or time.
  • one or more processors are further configured to invoke computer instructions to enable the electronic device to execute: displaying message notifications, where the message notifications are banner notifications, lock screen notifications, pull-down notifications One or more of the above, the message notification includes third content, and the third content is used to indicate that the user's status is the second status.
  • the one or more processors are further configured to invoke computer instructions so that the electronic device executes: displaying a second card on the first user interface, the second card includes acquiring a health Code, and/or, Nucleic Acid Record, and/or, Control of Vaccine Record.
  • the first card is a flight card
  • the first state, the second state and the third state are respectively: the state of reminding the user to check-in, the state of reminding the user to go to the airport One of the state, the state reflecting the user's preparation for boarding, and the state reflecting the user's arrival at the destination.
  • the status of reminding the user to check-in procedures includes: the status of displaying the check-in notice, the status of displaying the check-in reminder, the status of prompting the user to check-in, and the status of displaying the check-in
  • the first content includes: one or more of the flight number, travel date, departure place, departure time, destination, and arrival time of the flight;
  • the third content and the fifth content respectively include: flight check-in notice, check-in reminder, check-in reminder, check-in countdown, check-in counter, departure reminder, journey time, seat number, boarding gate, luggage carousel, hotel One or more of location and tourist attraction location;
  • the fourth content includes: flight number of flight, travel date, departure place, departure time, destination, arrival time, check-in counter, seat number, boarding gate, or Multiple.
  • one or more processors are further configured to invoke computer instructions so that the electronic device executes: when the first state, the second state or the third state reflects the user's preparation In the state of boarding; determine that the electronic device is running an immersive application, display a floating window, and the floating window is used to display the boarding reminder; among them, the immersive application is a video application, a game application, and a music application Or one or more of the calling applications.
  • the one or more processors are further configured to invoke computer instructions so that the electronic device executes: detecting the user's first operation on the floating window; responding to the first operation , to display the electronic boarding pass, where the first operation is one of a click operation, a long press operation and a slide operation, or a voice control operation.
  • the first card is a card showing the itinerary of the high-speed rail; the first state, the second state and the third state are respectively: reminding the user that the high-speed rail is about to depart, reflecting that the user has One of the status of arriving at the high-speed rail station and the status reflecting the departure of the high-speed rail.
  • the first content includes: one or more of train number, travel date, departure place, departure time, destination, and arrival time
  • second content, third content and the fifth content respectively include: one or more of departure reminder, carriage number, seat number, and ticket gate
  • the fourth content includes: train number, travel date, departure place, departure time, destination, arrival time, departure reminder, carriage One or more of number, seat number, ticket gate.
  • the one or more processors are further configured to invoke computer instructions so that the electronic device executes: when the first state, the second state or the third state reflects that the user has When arriving at the state of the high-speed rail station; determine that the electronic device is running an immersive application, display a floating window, and the floating window is used to display the QR code of the electronic ticket; among them, the immersive application is a video application, a game application, a music application, etc.
  • the one or more processors are further configured to invoke computer instructions so that the electronic device executes: detecting the user's first operation on the floating window; responding to the first operation , to display the two-dimensional code of the electronic device, wherein the first operation is one of a click operation, a long press operation, a slide operation, or a voice control operation.
  • the first card is a check-in card.
  • the electronic device can update the check-in notification in the card in time through status detection. Furthermore, users can quickly complete check-in through this card.
  • the first state is a state of displaying a clock-in reminder at work
  • the second state is a state of displaying a reminder of leaving get off work.
  • the first content includes a clock-in reminder
  • the second content includes one or more of the clock-in control, clock-in time at work, or whether the user clocks in
  • the third content includes: One or more of the clock-in control, clock-out time, or whether the user clocks in.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions.
  • the above-mentioned instructions When the above-mentioned instructions are run on the electronic device, the above-mentioned electronic device executes any possible implementation method according to the first aspect and the first aspect. described method.
  • the embodiment of the present application provides a computer program product containing instructions, and when the above computer program product is run on the electronic device, the above electronic device is made to execute any of the possible implementations of the first aspect and the first aspect described method.
  • the electronic device provided by the second aspect the electronic device provided by the third aspect, the computer storage medium provided by the fourth aspect, and the computer program product provided by the fifth aspect are all used to execute the method provided by the embodiment of the present application . Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method, and will not be repeated here.
  • Figures 1A-1B are a set of user interfaces displaying existing cards provided by the embodiment of the present application.
  • Fig. 1C is a flight travel flow chart provided by the embodiment of the present application.
  • Fig. 2A-Fig. 2M are user interfaces of a set of display cards provided by the embodiment of the present application.
  • Figure 2N- Figure 2Q are schematic diagrams of other possible forms of the card provided by the embodiment of the present application.
  • 3A-3H are user interfaces for displaying other types of notifications provided by the embodiment of the present application.
  • 4A-4B are system diagrams of a context-based notification display method provided by an embodiment of the present application.
  • 5A-5E are flowcharts of a context-based notification display method provided by an embodiment of the present application.
  • 6A-6D are user interfaces of another application scenario provided by the embodiment of the present application.
  • FIG. 7 is a user interface of another application scenario provided by the embodiment of the present application.
  • 8A-8D are user interfaces of another application scenario provided by the embodiment of the present application.
  • FIG. 9 is a hardware structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 1A and Fig. 1B show two forms in which the mobile phone displays the flight card.
  • card 101 may include flight number 101A, date 101B, time and location 101C.
  • the time includes departure time (“8:00”) and arrival time (“11:20”), and the location includes departure (“Shenzhen Baoan T3”) and destination (“Beijing Capital T3”).
  • the card shown in Figure 1A is smaller in size and displays less information.
  • the advantage of using the above card is that the user can quickly lock the information that the card wants to display, for example, departure time and arrival time.
  • the disadvantages of the cards shown above are also obvious: the user cannot get more information, such as when check-in can start, which counters can check-in, which boarding gate is which, and so on.
  • the card shown in Figure 1B shows more information about the flight.
  • the card 111 may include flight number 111A, date 111B, time and location 111C, check-in counter 112, boarding gate 113, baggage carousel 114, and the like.
  • 111A, date 111B, time and location 111C can refer to the introduction in FIG. 1A , and will not be repeated here.
  • the user can learn the check-in information through the check-in counter 112 .
  • the user Before boarding, the user can learn about boarding gate information through the boarding gate 113 .
  • the user After arriving at the destination, the user can learn about the checked luggage information through the luggage carousel 114 .
  • the card 111 may also include a button 115 .
  • the handset can display further information about the flight shown on the card 111 . In this way, the card 111 basically shows all the information about the flight.
  • the size of the card 111 at this time is significantly larger and longer. This also leads to a pile of information and functions on the card. Further, the user cannot locate the desired information at the first glance. For example, when a user wants to obtain baggage carousel information, the first thing the user may see is the departure time and landing time.
  • the embodiments of the present application provide a method and device for displaying a notification based on a situation.
  • This method can be applied to mobile phones.
  • the card displayed on the mobile phone may include more information, such as the check-in counter 112, the boarding gate 113, etc. shown in FIG. 1B.
  • the card can selectively display the above-mentioned more information according to the current scene.
  • the card may display the information shown at the check-in counter 112 when check-in is open.
  • the card can display the information shown at the boarding gate 113 and no longer display the information shown at the check-in counter 112 .
  • users can not only obtain multiple and comprehensive information, but also enable users to quickly and accurately obtain the information they want to know, avoiding tedious and inconvenient information piles.
  • the electronic device (electronic device 100) that provides and displays the flight card can also be a tablet computer, a desktop computer, a laptop computer, a notebook computer, a virtual reality (virtual reality, VR) device, a wearable device, a vehicle devices, smart home devices and/or smart city devices, etc.
  • the embodiment of the present application does not specifically limit the specific type of the electronic device 100 . It can be understood that the application of the flight card on other types of electronic devices can refer to the mobile phone type of electronic devices.
  • the embodiment of the present application will also mainly use a mobile phone as an example to describe the method provided in the embodiment of the present application.
  • Fig. 1C shows the flow of a user traveling by flight. This process can also be referred to as the lifecycle of a flight. As shown in Figure 1C, the process of taking a flight can be divided into three parts: before the trip, during the trip and after the trip. Each node shown in Figure 1C may be referred to as a context.
  • Before travel it includes the process from purchasing air tickets to arriving at the airport of departure, including: ticket booking, flight change/cancellation, destination weather, check-in/seat selection, pick-up booking, departure to the airport, arrival at the airport and other subdivided scenarios.
  • Traveling refers to the process from when the user arrives at the airport to completing boarding, including: health code, boarding pass/consignment, security check, flight delay, boarding gate change, waiting hall, boarding and other subdivided scenarios.
  • Post-travel refers to the process after the user arrives at the destination airport, including: picking up luggage, taking a taxi to the hotel, business/travel and other subdivided scenarios.
  • the mobile phone When the mobile phone displays the flight card, it can display the information that the user is more concerned about in the current situation according to a specific situation of the user, that is, adjust the content displayed in the flight card.
  • the card can display the open check-in time, and at the same time, the card can also display the button for the user to check-in; while in the security check situation, the content displayed in the card does not need to be adjusted. That is to say, the scenarios listed above are optional, that is, the mobile phone can selectively change the content displayed in the card under a certain scenario.
  • the information that the user cares about will change. For example, when a user buys a flight ticket, the user will be more concerned about the flight date, departure and destination; when faced with check-in/seat selection, the user is concerned about information including: when to start check-in, whether online check-in is available ; After arriving at the airport, the user will pay more attention to information such as the check-in counter and boarding gate of the flight.
  • the context-based notification display method provided by the embodiment of the present application is a method of displaying important information at this stage by perceiving the context of the user.
  • the important information here is the information that users pay more attention to.
  • 2A-2J exemplarily illustrate a set of user interfaces for context-based flight cards.
  • the context-based notification display method provided by the embodiment of the present application will be introduced below with reference to the user interfaces shown in FIGS. 2A-2J .
  • the scenarios corresponding to the flight cards shown in FIGS. 2A-2J include: ticket booking, check-in/seat selection, departure to the airport, arrival at the airport, boarding, and baggage claiming.
  • the mobile phone can obtain the user's travel plan.
  • the travel plan includes flight number, date, departure place, destination, time, etc.
  • the way for the mobile phone to obtain the above-mentioned travel plan may include text messages and push notifications (push notification).
  • the short message refers to: the mobile phone obtains the user's travel plan by monitoring the ticketing short message sent by the airline.
  • Push notification means that the airline pushes a notification to the user's mobile phone after confirming the user's travel plan.
  • the notice includes the above-mentioned travel plan. Subsequent embodiments will introduce in detail how the mobile phone obtains the user's travel plan through the above two methods, which will not be expanded here.
  • Fig. 2A shows the user interface 21 of the mobile phone displaying the flight card in the booking scenario.
  • user interface 21 may include a status bar 211 , a page indicator 212 , a tray of frequently used application icons 213 , and a plurality of other application icons 214 .
  • the status bar may include one or more signal strength indicators (such as signal strength indicator 211A, signal strength indicator 211B) of a mobile communication signal (also referred to as a cellular signal), wireless high-fidelity (wireless fidelity, Wi- Fi) Signal strength indicator 211C, battery status indicator 211D, time indicator 211E.
  • the page indicator 212 can be used to indicate the positional relationship between the currently displayed page and other pages.
  • the tray 213 of commonly used application program icons may include multiple tray icons (such as camera application icons, address book application icons, phone application icons, and message application icons), and the tray icons are kept displayed when the page is switched.
  • the above tray icon is optional, which is not limited in this embodiment of the application.
  • Other application icons 214 may include multiple application icons. For example, settings application icon, application market application icon, gallery application icon, browser application icon, etc. Other application icons also include icons for third-party applications such as app icons etc.
  • FIG. 2A only exemplarily shows a user interface of the electronic device 100, and should not be construed as limiting the embodiment of the present application.
  • User interface 21 may include cards 215 .
  • the content displayed in the card 215 is the above-mentioned travel plan (ie flight information), including flight number, date, place of departure, destination, time and so on.
  • the travel plan shown on the card 215 is "January 9, from Shenzhen Bao'an T3 to Beijing Capital T3, the estimated departure time is 8:00, the arrival time is 11:20, and the flight number is CA1314".
  • the user can immediately know his travel plan, and avoid logging into the website or application program for purchasing air tickets to inquire about his travel plan.
  • the flight card (card 215) is placed on the home page of the mobile phone.
  • the card may also be displayed on a negative screen.
  • the negative screen refers to the leftmost page of the mobile phone. The embodiment of the present application does not limit the location of the card.
  • check-in/seat selection channels include online channels and offline channels.
  • the online channel refers to the online check-in channel provided by electronic devices such as mobile phones and personal computers.
  • Offline channels refer to the channels provided by the airport check-in counters for check-in.
  • the mobile phone can obtain the time when the flight is open for check-in, and detect whether the check-in time is reached, and then adjust the information displayed in the card 215 accordingly.
  • the flight card can display a reminder that check-in is about to open.
  • the flight card at this time may be referred to as the flight card in the check-in/seat selection situation.
  • the above-mentioned period of time is preset, for example, 2 hours before the opening of the check-in/seat selection channel and so on. After seeing the above reminder, the user can know when the check-in procedure can be started in the future.
  • FIG. 2B shows the user interface 22 of the mobile phone displaying the flight card in the check-in/seat selection scenario.
  • the card 215 can be divided into left and right parts, an area 221 (the left area) and an area 222 (the right area).
  • Area 221 (left area) can display the basic information of the flight, including departure place, departure time, destination and arrival time, such as "Shenzhen Bao'an T3, 8:00, Beijing Capital T3, 11:20" shown in area 221 ".
  • Area 222 may display a reminder that check-in is about to open. For example, "Check-in is expected to open at 18:00 today.” Through the above reminder message, users can know in time that the check-in/seat selection channel will be opened for the flight they purchased. In this way, the user can further arrange the check-in time.
  • the mobile phone can detect whether the airline has opened the check-in/seat selection channel. After detecting that the check-in/seat selection channel is open, the mobile phone may display the user interface 23 shown in FIG. 2C. At this point, the flight card may display a message prompting the user to check in.
  • user interface 23 includes cards 215 .
  • Card 215 includes: area 221 (left area), area 222 (right area).
  • Area 221 still displays the basic information of the flight (departure place, departure time, destination and arrival time), refer to FIG. 2C.
  • the area 222 at this time no longer displays the prompt of "check-in is expected to be open at 18:00 today", but displays a prompt of already open check-in, such as "check-in is open”.
  • the area 222 may further include a check-in button 231 .
  • the handset may detect a user action on the check-in button 231, and in response to the action, the handset may display a check-in user interface.
  • the above-mentioned user operation is, for example, a click operation. Subsequent embodiments will introduce the user interface for check-in procedures in detail, which will not be expanded here.
  • the mobile phone can receive the seat number data selected by the user, and send the seat number data to the server of the airline. After the airline's server confirms the seat number selected by the user, the mobile phone can display a feedback that the selection is successful.
  • confirming the seat number selected by the user refers to confirming whether the seat number is optional. If it is optional, update the user mark corresponding to the seat number to the user, and then change the state of the seat number to be unavailable (that is, other users This seat can no longer be selected).
  • This application does not limit the user interface for the above-mentioned check-in procedures.
  • the above-mentioned airline card may not display the check-in button 231 .
  • FIG. 2D shows the user interface 24 of the mobile phone displaying the flight card after the user checks in.
  • the card 215 includes: an area 221 (left area) and an area 222 (right area).
  • area 221 still displays the basic information of the flight (place of departure, departure time, destination and arrival time).
  • the area 222 no longer displays the reminder of "open check-in", but displays the reminder of completed check-in, such as "check-in and seat selection”.
  • the check-in button 231 in the user interface 23 can be replaced with a boarding pass button 241 .
  • the handset may display the user's user interface containing the electronic boarding pass.
  • the information recorded in the electronic boarding pass includes: passenger name, flight number, date, destination, cabin class, seat number, boarding gate and health code, etc. Subsequent embodiments will introduce in detail the user interface of the mobile phone displaying the electronic boarding pass, which will not be expanded here.
  • the area 222 (right area) can also directly display the seat number selected by the user. In this way, the user can obtain the seat number more conveniently and quickly.
  • the mobile phone After the mobile phone displays the user interface 23 shown in FIG. 2C and the check-in deadline is approaching, if the user has not checked in for a long time, the mobile phone can further display the countdown to the check-in deadline. Countdown can give users a stronger reminder. In this way, users can check in as soon as possible after seeing the countdown.
  • Figure 2E shows the handset displaying the user interface 25 of a flight card including a countdown.
  • the card 215 includes: an area 221 (left area) and an area 222 (right area).
  • the area 222 can display the remaining check-in time (ie countdown).
  • the remaining check-in time can be obtained by calculating the difference between the current time and the departure time.
  • the user interface 25 shows that the current time is 6:00 in the morning, and the departure time of the flight corresponding to the card 215 is 8:00, then there are still 2 hours before the departure time.
  • the area 222 may display a reminder of "2 hours left before the check-in deadline".
  • the mobile phone can continuously update the countdown displayed in area 222 , such as "1 hour left before check-in deadline", "30 minutes left before check-in deadline”.
  • the mobile phone can also set the above prompt words in red to further remind the user.
  • the area 222 can also display the check-in button 231 shown in FIG. 2C .
  • the mobile phone may display a user interface for check-in procedures (refer to the aforementioned introduction, and details will not be repeated here). In this way, after seeing the countdown to the check-in deadline, the user can go through check-in procedures through the check-in button 231 .
  • the area 222 may no longer display the above-mentioned countdown, but display a reminder that the check-in has been closed, for example, display the words "check-in closed", refer to the card on the right side of FIG. 2E.
  • the above-mentioned words can be set to red or other colors, so as to give the user a stronger prompt.
  • the mobile phone can also acquire location data.
  • Location data can be used to determine whether a user is within the geographic boundaries of an airport (i.e., has arrived at the airport). Subsequent embodiments will introduce in detail the specific method for the mobile phone to obtain location data, which will not be expanded here.
  • the phone can update the content displayed in the flight card.
  • the mobile phone acquires location data indicating the geographic extent of the airport. At this time, the mobile phone may display the user interface 26 shown in FIG. 2F.
  • card 215 may include area 221 (left area), area 222 (right area). At this time, the area 222 of the card 215 may display the check-in counters, such as "check-in counters G07-G11". After seeing the above counters, users can go to any of the counters numbered "G07” to "G11" to go through check-in procedures. In this way, users can know in time which counter they should go to for check-in procedures, so as to avoid wasting time and delaying the itinerary.
  • check-in counters such as "check-in counters G07-G11”.
  • the area 222 may further include a check-in button 231 .
  • the mobile phone may display a user interface for check-in in response to the operation. That is to say, after arriving at the airport, the user can still check in through the online check-in/seat selection channel provided by the check-in button 231 .
  • the airline to which the user's flight belongs does not support online check-in/selection, the above-mentioned flight card may not display the check-in button 231 .
  • the location data obtained by the mobile phone indicates that the user has not entered the geographic range of the airport.
  • the current time acquired by the mobile phone indicates that the departure time is approaching.
  • the near departure time is, for example, 2 hours, 1 hour, etc. before departure.
  • the mobile phone can display the user interface 27 shown in FIG. 2G.
  • card 215 may include area 221 (left area), area 222 (right area).
  • the area 222 of the card 215 may display a departure reminder.
  • the mobile phone can determine whether the user should go to the airport according to the current time, departure time (departure time), estimated travel time and waiting time. For example, the current time displayed on the user interface 27 is 6:00, the departure time of the flight is 8:00, the estimated travel time is 1 hour, and the estimated waiting time at the airport is 30 minutes. Through the above four time data, the mobile phone can determine that the user has 30 minutes left. At this time, the area 222 may display a reminder of "suggest departure within 30 minutes".
  • the estimated travel time can be calculated from the above location data (the current location data of the mobile phone), the airport location data, and the moving speed of the mobile phone (the current moving speed of the user).
  • the mobile phone can also calculate the estimated travel time through the map interface provided by the third party.
  • the mobile phone can judge whether the user is taking a vehicle through the moving speed of the device (the user's current moving speed), thereby judging whether the user is on the way to the airport.
  • the walking speed of a person is 3km/h-5km/h
  • the moving speed of the mobile phone is also 3km/h-5km/h at this time.
  • the moving speed of a person can be greatly increased, such as 20km/h, 30km/h or even faster.
  • the mobile speed of the mobile phone will be greatly improved. Therefore, through the moving speed, the mobile phone can determine whether the user is taking transportation or going to the airport.
  • the mobile phone can also highlight the displayed departure place ("Shenzhen Bao'an T3"), for example, set the words "Shenzhen Bao'an T3" to red and so on. In this way, the user can obtain the departure place more intuitively and clearly, so that the user can go to the departure place.
  • Slohen Bao'an T3 displayed departure place
  • Area 222 may also display a boarding pass button 251 .
  • the mobile phone can detect the user's operation acting on the boarding pass button 251, in response to the operation, the mobile phone can display the electronic boarding pass shown in FIG. 2L. If the airline to which the user's flight belongs does not provide an electronic boarding pass, the area 222 may not display the boarding pass button 251 , refer to the flight card shown on the right side of FIG. 2G .
  • the area 222 can update the above estimated travel time, refer to FIG. 2H .
  • the mobile phone can periodically obtain the location data of the device (that is, the user's location data) according to the preset time. speed) to calculate the new estimated travel time.
  • the handset can then display the new estimated travel time in field 222 . For example, "Estimated arrival in 20 minutes" shown in FIG. 2H.
  • Area 222 may also display a boarding pass button 251 .
  • the handset can detect user action on the boarding pass button 251, and in response to that action, the handset can display the user's electronic boarding pass.
  • the area 222 may not display the boarding pass button 251, refer to the flight card shown on the right side of FIG. 2H.
  • the boarding pass button 251 can be replaced with the check-in button 231 described above.
  • the mobile phone may display a user interface for check-in. Users can check in online through this interface.
  • the mobile phone can display the user interface 28 shown in FIG. 2I.
  • the user interface 20 displays cards 215 .
  • card 215 may include area 221 (left area) and area 222 (right area).
  • the area 221 can display the basic information of the flight.
  • the basic information of the flight includes departure time (“8:00”), arrival time (“11:00”), destination (“Beijing Capital T3”), and check-in counters (“G07-G11”).
  • Area 222 may display the boarding gate ("K50").
  • Area 222 may also include a boarding pass button 251 .
  • the user can click the button.
  • the mobile phone can display the electronic boarding pass of the flight. Thus, the user can obtain more information.
  • the mobile phone can update the boarding gate (“K50”) displayed in the card 215 .
  • K50 boarding gate
  • the mobile phone can change the originally displayed "K50” to "K52".
  • the boarding gate displayed after the above change can be set to a different color, such as red, so as to be clearly distinguished from other information itineraries. In this way, the user can more intuitively and clearly obtain which content has changed.
  • the content displayed in area 221 such as departure time ("8:00"), arrival time ("11:00”), destination ("Beijing Capital T3"), etc.
  • a preset form Adjust to achieve the purpose of emphasis and distinction.
  • the aforementioned preset forms include: preset colors, fonts, font thickness, and the like. For example, when the departure time "8:00" is displayed, it is displayed in red font, so as to further remind the user.
  • the area 222 may not display the boarding pass button 251 .
  • the area 222 may display a flight icon 252. At this time, the flight icon 252 may indicate that the current flight does not support the display of an electronic boarding pass.
  • the phone can confirm whether the user has arrived at the destination airport.
  • the mobile phone may periodically acquire current system time and location data according to a preset time.
  • the mobile phone can confirm that the user has arrived at the destination airport.
  • the mobile phone may display the user interface shown in FIG. 2J .
  • card 215 may include area 221 (left area), area 222 (right area). At this time, the area 221 can display the basic information of the user's flight, including departure time ("8:00"), arrival time ("11:00”), departure place ("Shenzhen Bao'an T3") and destination ("Beijing Capital T3").
  • card 215 may enhance geographic location information (including origin and destination). Enhancing the geographic location information refers to: bolding, increasing, or using a font of a specific color for the geographic location information, so that the user can see the geographic location information more clearly and intuitively. This is because users pay more attention to where they are when they arrive at the destination airport.
  • Area 222 can display the luggage carousel where the user's checked luggage is located. For example, the "luggage carousel 19" shown by card 215 in Fig. 3C. In this way, after the user sees the above information, the user can go to the luggage carousel numbered 19 to get his luggage.
  • the handset may then deactivate the card 215 when it detects that the user has left the destination airport.
  • the mobile phone can also obtain the system time. When the above-mentioned system time exceeds the preset time after the arrival time, and the user is not within the geographical range of the destination airport, the mobile phone can confirm that the itinerary indicated by the card 215 has ended. At this time, the mobile phone can close the card 215 .
  • 2A-2J show a series of user interfaces in which the mobile phone splits and displays the flight information according to different scenarios during the process of displaying the flight card.
  • the mobile phone can display the information that the user is most concerned about in the situation according to the situation that the user is in. In this way, the user can not only obtain as much information as possible through the flight card, but also avoid the inconvenience caused by information accumulation.
  • the mobile phone may display a user interface for checking-in and seat selection.
  • the above operations are, for example: user operations acting on the check-in button 231 shown in FIG. 2C , user operations acting on the check-in button 231 shown in FIG. 2E , user operations acting on the check-in button 231 shown in FIG. 2F , etc. Wait.
  • FIG. 2K exemplarily shows a user interface displayed on the mobile phone for check-in and seat selection.
  • the page may include an area 261 .
  • Area 261 displays a plurality of seat icons.
  • the seat icon can distinguish the status of the seat through different colors.
  • a white icon may indicate that the seat is free, ie, not selected by another passenger.
  • the light gray icon may indicate that the seat is occupied, ie selected by other passengers. Therefore, the seat corresponding to the white icon is selectable by the user, and the seat corresponding to the light gray icon is not selectable by the user.
  • the mobile phone may change the white icon to dark gray in response to the operation, refer to icon 264 .
  • a dark gray icon may indicate that the seat corresponding to the icon is the seat selected by the user.
  • the handset can display a passenger label 265 and a button 266 .
  • the passenger tag 265 may represent the identity information of the user.
  • Button 266 can be used to lock the seat.
  • the handset can display the data for that seat and send it to the airline's server. After the airline's server confirms the seat number selected by the user, the mobile phone can display a feedback that the selection is successful.
  • the seat corresponding to the icon 264 is the seat selected by the user ("Lisa").
  • the mobile phone may display the electronic boarding pass when a user action on the button of the electronic boarding pass is detected.
  • the above-mentioned operations are, for example: user operations acting on the electronic boarding pass button 241 shown in FIG. 2D , user operations acting on the electronic boarding pass button 251 shown in FIG. 2H , user operations acting on the electronic boarding pass button 251 shown in FIG. User operation of the button 251 and the like.
  • Fig. 2L exemplarily shows the user interface of the mobile phone displaying the electronic boarding pass.
  • the interface includes a boarding pass 271 and a button 272 .
  • the boarding pass 271 may be used to display information required for boarding.
  • Button 272 may be used to close boarding pass 271 .
  • the boarding pass 271 shows the place of departure (“Shenzhen Baoan T3"), destination ("Beijing Capital T3"), user's name (“Lisa”), cabin class (“K”), seat number (“23D”) , boarding time (“8:00”), boarding gate (“pending”), boarding serial number (“67”), health code and other information.
  • Boarding pass 271 may also include buttons 273 and controls 274 .
  • buttons 273 and controls 274 When a user operation acting on the button 273 is detected, in response to this operation the mobile phone can file the boarding pass 271 to the wallet application, ie the user can open the electronic boarding pass in the wallet.
  • Control 274 may be used to share boarding passes.
  • the handset When a user action on control 274 is detected, in response to the action, the handset may display icons for a number of applications. The icons of the above-mentioned multiple application programs may represent the objects to be shared.
  • the mobile phone in addition to detecting user operations on specific buttons or controls, the mobile phone can also detect user operations on other areas of the card.
  • the above-mentioned specific buttons or controls include: the check-in button 231 shown in FIG. 2C , the button 241 for checking the boarding pass shown in FIG. 2D , and so on. Areas of a card other than the above specific buttons or controls may be referred to as other areas.
  • the mobile phone may display a flight details page.
  • Fig. 2M exemplarily shows the user interface of the mobile phone displaying the flight details page.
  • the flight information displayed on this interface please refer to the introduction of FIG. 2A-FIG. 2J , which will not be repeated here.
  • the interface distinguishes between planned departure time and actual departure time, planned arrival time and estimated arrival time.
  • Scheduled departure and scheduled arrival times are determined when the flight is scheduled. Flight delays due to other factors, such as weather, can cause actual departure times to vary and, accordingly, estimated arrival times to vary.
  • the cards in different scenarios introduced in Fig. 2A-Fig. 2J are the cards displayed when the flight proceeds normally as planned.
  • the card can display a delayed or canceled label.
  • Figure 2N shows a different look of the flight card shown in Figures 2A-2J in the event of a delay. As shown in FIG. 2N , when the user's flight is delayed, the mobile phone can add a delay label to the currently displayed card.
  • Figure 2O shows a different look of the flight card shown in Figures 2A-2J in the event of a cancellation.
  • the mobile phone may display a "flight canceled" mark on the original content displayed on the card.
  • the mobile phone can display a "+1" mark after the arrival time displayed on the flight card, indicating that the arrival time is the next day.
  • Figure 2P shows a flight card displaying a "+1" mark.
  • the flight card can display an early warning label.
  • the flight card can also display the failure label; in other scenarios, it can also display the crash label, etc.
  • the context-based notification display method provided by the embodiment of the present application can also be applied to banner notifications, pull-down notifications, lock screen notifications, and negative one-screen notifications.
  • Banner notification refers to the method of displaying notifications on the top of the screen when the mobile phone is in a running state (the state of displaying the desktop or other application program interface after unlocking). Typically, banner notifications are short-lived.
  • the pull-down notification refers to the notification displayed on the pull-down interface.
  • the pull-down interface is an interface displayed by the mobile phone in response to a sliding operation.
  • Lock screen notifications refer to the way your phone displays notifications on the lock screen. Banner notifications that are not handled by the user in time can be archived into pull-down notifications and lock screen notifications.
  • Negative screen refers to the leftmost page of the mobile phone.
  • the negative screen can display the user's frequently used application program or the shortcut function provided by the program.
  • the shortcut functions provided by this application are, for example, the play/pause/cut song functions provided by the music application.
  • the negative screen can also display the flight card.
  • the above-mentioned banner notification, pull-down notification, lock screen notification, and negative one-screen card are optional. That is, in the process of switching from one situation to another, the content added to the cards shown in Figure 2A- Figure 2Q can also be included in one or more of the above-mentioned banner notifications, pull-down notifications, lock screen notifications, and negative one-screen cards. displayed in it.
  • the mobile phone can also display a banner notification .
  • the banner notification includes the content displayed in the area 222 shown in FIG. 2C.
  • the phone can display lock screen notifications.
  • the lock screen notification includes the content displayed in the area 222 shown in FIG. 2C .
  • the mobile phone displays the above notification user interface in other forms during the context switching process shown in FIG. 2B to FIG. 2C .
  • FIG. 2A-FIG. 2Q For conversion of other scenarios shown in FIG. 2A-FIG. 2Q, reference may be made to the introduction below, and details will not be repeated in this embodiment of the present application.
  • FIG. 3A shows a mobile phone user interface 31 displaying notification content in the form of a banner notification.
  • the mobile phone can receive a notification reminding the user to check-in. Then, the mobile phone may display a user interface 31 as shown in FIG. 3A.
  • the user interface 31 may include a notification window 311 .
  • Notification window 311 shows a banner notification.
  • the notification window 311 may include a control 312 and some prompt messages, such as a prompt indicating that the notification is a flight notification, flight number information indicating which flight the flight is, and so on.
  • Control 312 may prompt the user to check-in.
  • the handset may detect user action on control 312, and in response to the action, the handset may display a check-in page.
  • the mobile phone can set a preset time, and when the preset time is over, the mobile phone can close the notification window 311 .
  • FIG. 3B shows the user interface 32 of the mobile phone displaying notifications on the lock screen interface.
  • the mobile phone can receive a notification reminding the user to check-in. If the mobile phone is in the off-screen state at this time, the mobile phone can turn on the screen to display the lock screen interface. Then, the mobile phone can display the above notification on the lock screen interface, refer to the user interface 32 shown in FIG. 3B.
  • the user interface 32 may include a notification window 321 .
  • the notification window 321 can be used to display the notification that the flight check-in starts.
  • the specific content displayed in the notification window 321 can refer to the introduction of FIG. 3A , and will not be repeated here.
  • a notification shown in the notification window 321 may be called a lock screen notification.
  • the notification displayed on the lock screen interface may include: obtaining an electronic boarding pass.
  • the display in the notification window 321 is replaced with "click to obtain an electronic boarding pass" displayed in the notification window 321 .
  • the mobile phone may display a user interface showing an electronic boarding pass as shown in FIG. 2L.
  • the mobile phone Before displaying the user interface showing the electronic boarding pass shown in FIG. 2L , the mobile phone may not perform the step of verifying the identity of the user. For example, the mobile phone may not display a password keyboard, may not display a user interface for fingerprint unlocking, and may not collect user's facial features, etc. In this way, the user can obtain the electronic boarding pass more quickly.
  • FIG. 3C and FIG. 3D show a set of user interfaces where the mobile phone displays notifications on the pull-down interface.
  • FIG. 3C shows a home page for displaying installed applications on the mobile phone.
  • the mobile phone can detect the sliding operation acting on the main page, refer to the gesture operation shown in FIG. 3C .
  • the mobile phone may display the pull-down interface shown in FIG. 3D.
  • the pull-down interface may include a notification window 331 .
  • the notification window 331 can be used to display the notification of the start of check-in for the flight (refer to the introduction of FIG. 3A and FIG. 3B , which will not be repeated here).
  • a notification shown in the notification window 331 may be referred to as a pull-down notification.
  • the pull-down interface may also include controls 332 .
  • the control 332 allows the user to clear the notifications on the pull-down interface.
  • the mobile phone can detect a user operation acting on the control 332, and in response to the operation, the mobile phone can clear all notifications on the pull-down interface.
  • the mobile phone when the mobile phone displays a banner notification, if the mobile phone does not detect a user operation acting on the notification, such as a click operation, the mobile phone may include the notification in the lock screen notification and the pull-down notification. Specifically, for the banner notification that the user does not handle in time, when the mobile phone displays the lock screen interface, the mobile phone may display the content contained in the above banner notification on the lock screen interface, that is, display a lock screen notification. When the mobile phone displays the pull-down interface, the mobile phone may display the content contained in the above-mentioned banner notification in the pull-down interface, that is, display a pull-down notification.
  • the banner notification 311 shown in FIG. 3A When the mobile phone does not detect any user operation on the banner notification 311 within a preset time, the mobile phone may close the notification. Then, when the mobile phone displays the lock screen interface shown in FIG. 3B , the mobile phone may display the check-in reminder included in the banner notification on the interface, refer to the lock screen notification 321 . When the mobile phone displays the pull-down interface shown in FIG. 3D , the mobile phone may display the check-in reminder included in the banner notification on the interface, refer to the pull-down notification 331 .
  • FIG. 3E shows a user interface 35 displaying one screen negative on the mobile phone.
  • multiple cards can be displayed on one negative screen, including a flight card 341 , a schedule card 342 , a weather card 343 , a music card 344 , a gallery card 345 and so on.
  • the flight card 341 may display a prompt message of open check-in, such as "open check-in”.
  • the flight card on the negative screen and the flight card on the desktop are optional, that is, the mobile phone can display the flight card on the negative screen and the desktop at the same time, and the card can be displayed on the negative screen or the desktop.
  • the method of displaying the flight card on the negative screen is the same as the method of displaying the flight card on the desktop as shown in Fig. 2A- Fig. 2J , and will not be repeated here.
  • the flight card can appear as shown in Figure 2I, displaying the information that the user cares about during the boarding stage, that is, the boarding gate, seat number and other information.
  • the boarding stage refers to a situation in which the user arrives at the departure airport and the departure time is approaching. Whether the departure time is approaching can be judged by confirming whether the current time is within the preset approaching time period. For example, if the departure time is 8:00, the mobile phone can determine that 7:30-8:00 is the approaching departure time. If the current time is within the aforementioned near-departure time, the mobile phone can confirm the near-departure time.
  • the mobile phone may also display a floating window.
  • the mobile phone may detect whether an immersive application program is currently running.
  • the above-mentioned immersive application program is an application program capable of presenting content in a full screen.
  • users are usually not easy to receive system notifications, especially weak notifications.
  • Immersive applications can be: video applications (such as etc.), gaming applications (such as etc.), music applications or calling applications, etc., or small programs in some applications (such as The applet in the applet, the applet may be a video application program, a game application program or a music application program).
  • the mobile phone may display a floating window on a layer of the user interface of the application program currently being displayed.
  • the floating window can display a control for the user to open the electronic boarding pass at any time.
  • the above-mentioned floating window can always be placed on the layer currently being displayed by the application program, that is, placed on the top layer and will not be covered.
  • the above-mentioned floating window is movable.
  • the mobile phone can display the floating window in an area designated by the user, thereby avoiding occlusion and affecting user experience.
  • the above floating window may also be fixed.
  • FIG. 3F-FIG. 3H show that when an immersive application program is running, the mobile phone displays a set of user interfaces of floating windows on the user interface provided by the application program.
  • FIG. 3F shows the user interface 36 for the mobile phone to play a video.
  • the user interface 36 may include a floating window 351 .
  • the floating window 351 can be used to display the electronic boarding pass.
  • the mobile phone can detect the user's operation acting on the floating window 351, and in response to the operation, the mobile phone can display the user interface 37 in FIG. 3G.
  • the floating window 351 can be expanded into the appearance shown by the floating window 352 .
  • the floating window 352 may include a control 353 ("View Boarding Pass").
  • the mobile phone may display the electronic boarding pass shown in FIG. 2M .
  • the foregoing operations are, for example, click operations, slide operations, voice control, etc., which are not limited in this embodiment of the present application.
  • the floating window 352 may also display a control 354 .
  • Control 354 may be used to prompt the user to proceed to the gate to prepare for boarding.
  • the control 354 may use a carousel manner to exchange and display boarding prompt (“start boarding”) and boarding gate (“K50”) information within a preset time.
  • the mobile phone can set the preset time as 2 seconds.
  • the mobile phone may display "start boarding” and the control 353 .
  • start boarding can be replaced with "K50 boarding gate", as shown in Figure 3H.
  • the mobile phone can repeatedly and alternately display the floating window 352 shown in FIG. 3G and FIG. 3H .
  • the mobile phone can remind the user to prepare for boarding through the flight card (refer to Figure 2I), banner notification, etc.
  • the mobile phone can display the above-mentioned floating window.
  • the mobile phone can also remind the user to prepare to board the plane through the floating window.
  • the floating window is small, and the user can freely adjust the position of the floating window, so the floating window will not cause great interference to the user.
  • Fig. 3A-Fig. 3G show different forms of mobile phone displaying notifications in different scenarios. It can be understood that the different notification forms described above are not mutually exclusive, that is, the mobile phone can display notifications in multiple forms at the same time. In this way, no matter what scenario the user is in, the user can see the above notification in time. Furthermore, users can respond in a timely manner to avoid delays in travel plans.
  • the system 10 may include an electronic device 100 and a cloud 200 .
  • the electronic device 100 is the mobile phone described above.
  • the cloud 200 stores all the data that the card needs to display.
  • Data stored in the cloud 200 may be sent to the electronic device 100 through a push mechanism.
  • a notification received by an electronic device through a push mechanism may be called a push notification (push notification, push notification).
  • the electronic device 100 may send a query request to the cloud 200, and then obtain the data required for displaying the card from the cloud 200.
  • the data displayed on the cards can be obtained from the cloud 200 .
  • the cloud 200 includes two interfaces (Application Programming Interface, API): a push (push) interface and a response interface.
  • the cloud 200 can call the push interface to send a push notification to the electronic device 100 .
  • the cloud 200 may invoke a response interface to send the data to the electronic device 100 .
  • the electronic device 100 includes a notification display application and a notification receiving module.
  • the notification display application is a system-level application installed on the electronic device 100 .
  • the application includes a data acquisition module, a cloud toolkit (cloud SDK), a decision-making module, and a display module.
  • cloud SDK cloud SDK
  • the data acquisition module can be used to acquire status data of the electronic device 100 .
  • the above state data includes: time data, location data, short message, cellular signal.
  • the time data refers to the data obtained by the electronic device 100 obtaining the current time.
  • the electronic device 100 can obtain the current time by reading the system time. In other implementation manners, the current time can also be synchronized through the network, that is, the current time can be obtained through the network. In the flight card shown in FIG. 2A-FIG. 2J , the electronic device 100 can judge whether the check-in time is reached, whether the departure time is approaching, etc. can be completed through the above time data.
  • the location data refers to the data obtained by the electronic device 100 indicating the geographic location of the device.
  • the electronic device 100 can be obtained through methods such as the Global Positioning System (Global Positioning System, GPS), the wireless fidelity (Wireless Fidelity, Wi-Fi) network connected to the electronic device 100, and the cellular signal used by the electronic device 100.
  • the embodiment of the present application does not limit the method for acquiring location data.
  • the electronic device 100 determines whether the user has arrived at the departure airport, the destination airport, etc., based on the above location data.
  • the short message refers to short message information received by the electronic device 100 .
  • the electronic device 100 can detect whether it has received new short message information. If a newly received short message is detected, the electronic device 100 can identify the source of the short message. If the short message belongs to a specific source, the electronic device 100 can read the content of the short message. For example, the electronic device 100 may acquire the user's flight itinerary through a ticketing SMS. Specifically, the subsequent embodiments will introduce in detail the method of obtaining the user's flight through the ticket issuing SMS, which will not be expanded here.
  • the electronic device 100 can also detect whether the device uses a cellular network.
  • the electronic device 100 may detect whether the device uses the cellular network by detecting cellular data.
  • the electronic device 100 can make a judgment through cellular data. Specifically, if it is confirmed that no cellular data is generated within a period of time, the electronic device 100 may confirm that the user has boarded the plane.
  • the aforementioned period of time is a preset time. If the generation of cellular data is detected after confirming that the user has boarded the plane, the electronic device 100 may confirm that the user has arrived at the destination airport.
  • the electronic device 100 in the process of detecting whether the user boards the plane and whether the user arrives at the destination, the electronic device 100 will also obtain time data, location data, and the like.
  • the decision module can judge the scene where the user is in according to the above state information. Then, the decision-making module can instruct the display module to update the displayed content according to the recognized scene.
  • the decision-making module may confirm that the user is in the context of checking-in. At this time, the decision-making module may instruct the cloud SDK to obtain the check-in data from the cloud 200 .
  • the decision-making module may confirm that the user enters the boarding preparation stage. At this time, the decision-making module can instruct the cloud SDK to obtain data such as boarding gate and seat number from the cloud 200 .
  • the cloud SDK is a toolkit provided by the cloud 200 for the electronic device 100 to access the cloud 200, including multiple data read and write interfaces.
  • the electronic device 100 can request the cloud 200 for the data required in the card presentation process through the reading interface provided by the cloud SDK, such as the flight date, departure place, destination and other data displayed on the card 215 .
  • the electronic device 100 can write changed data to the cloud 200 through the writing interface provided by the cloud SDK. For example, after completing check-in, the electronic device 100 can write the seat number to the cloud 200 through the writing interface provided by the cloud SDK.
  • Data obtained by the cloud SDK from the cloud 200 can be sent to the display module.
  • the display module can display the above data in the flight card (card 215).
  • the display module may display the card 215 shown in FIG. 2C.
  • the card 215 may display a reminder message to start check-in, such as "check-in has started".
  • the display module can display the controls (check-in button 231 ) provided by the cloud SDK for handling check-in procedures.
  • the electronic device 100 may display the user interface for check-in procedures shown in FIG. 2K .
  • the electronic device 100 also includes a notification receiving module.
  • the notification receiving module can be used to receive the notifications that the cloud 200 actively sends to the electronic device 100 .
  • the electronic device 100 can obtain the flight information of the user by detecting the short message of the ticket.
  • the electronic device 100 may also receive a push notification (push notification, push notification) from the cloud 200 through the notification receiving module to generate a flight card.
  • the push notification may include the user's flight information.
  • the cloud 200 may generate a flight record of the user.
  • the record includes passenger name, passenger ID card, phone number, order time, date (date of flight departure), departure place, departure time, destination, arrival time, flight number and so on.
  • the cloud 200 can call the push interface to send a push notification to the electronic device 100 .
  • the push notification may include passenger name, date, departure place, departure time, destination, arrival time, flight number and other information.
  • the notification receiving module of the electronic device 100 may receive the above push notification. Then, the above push notification can be further sent to the data acquisition module. After detecting that the data acquisition module has received the above-mentioned push notification, the decision-making module may instruct the display module to display the content contained in the above-mentioned push notification on the flight card.
  • the electronic device 100 there are two ways for the electronic device 100 to obtain data and services from the cloud 200: one is to send a data or service request to the cloud 200 through the cloud SDK; , actively send a notification to the electronic device 100 .
  • the electronic device 100 acquires the data or services it needs from the cloud 200 according to its needs. For example, when the mobile phone judges that the user's seat number should be displayed in the card, the mobile phone may send a request to the cloud 200 to obtain the user's seat number. In response to the request sent by the mobile phone, the cloud 200 may send the user's seat number to the mobile phone. The phone can then display the user's seat number.
  • the electronic device 100 can know the change of the user's itinerary in time through the notification pushed by the cloud 200 .
  • the cloud 200 can update the user's itinerary plan recorded in the cloud 200, and replace the date, flight number and other information in the original itinerary with the date and flight number after the change.
  • the cloud 200 can send the updated itinerary information to the mobile phone.
  • the mobile phone can update the information displayed on the card in time, so as to remind the user in a more timely manner and prevent the user from missing the itinerary.
  • the cloud 200 is usually provided by a third party.
  • the information involved in the flight card usually requires the airline or a third party that collects flight information of many airlines (such as )supply.
  • the method for the electronic device 100 to obtain data or services from the cloud provided by a third party alone is not preferred.
  • system 10 can also be represented as shown in FIG. 4B .
  • system 10 may also include a cloud 300 .
  • the cloud 300 is a data collection constructed for the electronic device 100 , that is, all data required by the electronic device 100 is stored in the cloud 300 . It can be understood that the data stored in the cloud 300 is obtained from the cloud 200 .
  • the cloud 200 can detect the change of the stored data, and then the cloud 200 can send the changed data to the cloud 300 in the form of push notification. Furthermore, the cloud 300 can send the changed data to the electronic device 100 . For example, during the process of rebooking, the cloud 200 may detect that the user's flight number, departure time and other data have changed. Then, the cloud 200 can send the changed data to the cloud 300 in the form of a push notification. After receiving the above-mentioned changed data, the cloud 300 can modify the flight number, departure time and other data stored by itself. Then, the cloud 300 can transmit the changed data to the electronic device 100 . In this way, the electronic device 100 can display information such as flight number and departure time after the rebooking.
  • the electronic device 100 can obtain data from the cloud 300 at any time, thereby avoiding direct contact with the third-party cloud (cloud 200 ).
  • the cloud 300 can also centrally manage the data of the electronic device 100 .
  • FIG. 5A shows a flow chart of the flight card in the electronic device 100 booking scenario.
  • S501 The cloud 200 generates a short message for ticket issuance.
  • the cloud 200 can generate a flight record of the user.
  • the record includes passenger name, passenger ID card, phone number, order time, date (date of flight departure), departure place, departure time, destination, arrival time, flight number and so on.
  • the electronic device 100 may receive the ticketing short message sent by the cloud 200 .
  • the cloud 200 may acquire the user's phone number from the flight record.
  • the cloud 200 can set the above phone number as the recipient of the short message.
  • the cloud 200 can extract the data required for issuing the ticket SMS from the above-mentioned flight records.
  • the data required for issuing a ticket SMS includes: passenger name, flight number, departure place and departure time, destination and arrival time, etc.
  • the ticketing information may also include more information, which is not limited here.
  • S502 The cloud 200 sends a ticket issuing short message to the electronic device 100.
  • the cloud 200 can generate a short message for issuing tickets. Then, the cloud 200 can send the above-mentioned ticket issuing SMS to the electronic device corresponding to the above-mentioned phone number.
  • the user is the user of the electronic device 100 , and the user's phone number corresponds to the electronic device 100 .
  • the electronic device 100 can receive the ticketing short message sent by the cloud 200, that is, the user can receive the above ticketing short message.
  • S503 The electronic device 100 identifies the source of the short message, and extracts the content of the ticket issuing short message.
  • the data acquisition module of the card application program can perceive the above-mentioned ticketing short message received by the electronic device 100. Further, the data acquisition module can extract the passenger name, flight number, departure place and departure time, destination and time from the above-mentioned ticketing short message. Arrival time and other data.
  • the electronic device 100 may confirm through the source of the short message whether the short message is sent by an airline company. After confirming that it is a short message sent by the airline, the electronic device 100 can analyze the content of the short message to check whether it is a short message for ticketing. If the above-mentioned passenger name, flight number and other data cannot be obtained after parsing the short message, the electronic device 100 can confirm that the above short message is not a short message for ticketing. On the contrary, the electronic device 100 can confirm that the above-mentioned short message is a ticket-issuing short message, and the electronic device 100 can display the above-mentioned passenger name, flight number and other data in the flight card.
  • the electronic device 100 may receive a text message from "95583" (Air China International).
  • the text message is, for example, "Dear member: Hello, your scheduled Air China CA1314 Shenzhen-Beijing, departure 2021-01-09 8:00 Shenzhen Baoan T3, arrival 2021-01-09 11:20 Beijing Capital T3, Passenger Lisa. Please bring valid documents to the airport two hours in advance to avoid missing the flight. I wish you a pleasant journey!
  • the electronic device 100 can confirm that the above short message is a short message sent by Air China. Then, the electronic device 100 can parse the content of the above-mentioned short message. Taking the content shown in the above text message as an example, the electronic device 100 can obtain: flight number (“CA1314”), departure time (“2021-01-09 8:00”), departure place (“Shenzhen Baoan T3”) , arrival time ("2021-01-09 11:20”), destination ("Beijing Capital T3”) and other data.
  • flight number (“CA1314”)
  • departure time (“2021-01-09 8:00”)
  • departure place (“Shenzhen Baoan T3”)
  • arrival time 2021-01-09 11:20
  • destination Beijing Capital T3
  • the short message may also be provided with a label indicating the type of the short message, such as express short message, advertisement short message, ticket issuing short message, and the like. Therefore, the electronic device 100 can also distinguish the ticketing short message sent by the airline through the above label. After confirming that the short message is a ticket issuing short message through the label, the electronic device 100 may extract the content of the ticket issuing short message, refer to the foregoing introduction, and details will not be repeated here.
  • the electronic device 100 generates and displays a flight card.
  • the electronic device 100 can generate a flight card.
  • the card may include the data described above.
  • the electronic device 100 can display the above-mentioned airline card, refer to the card 215 shown in FIG. 2A .
  • the ticketing information displayed on the card includes: "CA1314, January 9, Monday, Shenzhen Baoan T3, 8:00, Beijing Capital T3, 11:20"
  • the card shown in Figure 2A can be It is called the flight card of the ticketing stage.
  • the electronic device 100 can confirm whether the user has arranged a flight by monitoring the short message of the device. Moreover, the electronic device 100 can also extract the user's flight data by analyzing the ticketing short message, and then generate a flight card. In this way, users can obtain the information of their scheduled flights through the flight card at any time, thereby avoiding delays in the itinerary.
  • the electronic device 100 may also obtain the above data (flight number, departure time, departure place, etc.) by receiving a push notification.
  • the cloud 200 after the user finishes purchasing the air ticket, the cloud 200 generates a push notification.
  • the specific content contained in the push notification please refer to the above-mentioned ticket issuing SMS, and will not repeat them here.
  • the cloud 200 may call the push interface to send the push notification to the electronic device 100 .
  • the electronic device 100 may receive the notification.
  • the electronic device 100 has a notification receiving module. This module can be used to receive push notifications. Therefore, the module can receive the push notification sent by the above cloud 200 .
  • the electronic device 100 After receiving the push notification sent by the cloud 200, the electronic device 100 can parse the above notification, and then obtain the flight information included in the notification. Therefore, the electronic device 100 can extract the user's flight data from the notification, including flight number, departure time, departure place and so on.
  • the data obtaining module may obtain the above push notification from the notification receiving module. Then, the cloud SDK can analyze the above push notification, and then get the user's flight data. Further, the electronic device 100 may generate a flight card according to the above flight data, and display the card. For the above-mentioned cards, reference may be made to the card 215 shown in FIG. 2A .
  • the mobile phone may display an authentication page.
  • Authentication pages can display multiple text input boxes. Users can fill in their own name, ID card number, mobile phone number and other identity information through the above input box.
  • the mobile phone can use the above identity information to request the itinerary (ie flight) of the user corresponding to the above identity to the cloud 200 .
  • the mobile phone can store the above identity information, so as to obtain the user's flight data from the cloud 200 in the future. In this way, the user does not need to repeatedly input his identity information to the mobile phone.
  • the electronic device 100 can avoid identifying and extracting short messages. In this way, the electronic device 100 can obtain the user's flight data more timely and conveniently.
  • the electronic device 100 may display a notice card.
  • the electronic device 100 may replace the flight card displayed at the ticketing stage with a notice card.
  • the notice card includes the check-in notice.
  • the check-in notice can remind the user of the expected check-in time for the flight.
  • the card 215 shown in FIG. 2B may be referred to as a teaser card.
  • the area 222 may display "Estimated open check-in, 18:00 today". After seeing the above prompt, the user may know that he can check in after 18:00 today.
  • S512 The cloud 200 detects that the user's flight starts to check in, and generates a push notification.
  • the cloud 200 may detect an event when check-in for the user's flight begins. Specifically, the cloud 200 can acquire the current time. When it is determined that the current time is consistent with the check-in time of the user's flight, the cloud 200 determines the start of check-in for the user's flight. Then, the cloud 200 may call the push interface to send a push notification of starting check-in to the electronic device 100 .
  • the electronic device 100 generates and displays a flight card containing an open check-in reminder.
  • the notification receiving module of the electronic device 100 may receive the above notification. Further, the above notification can be sent to the data acquisition module. The data acquisition module can report the above notification to the decision-making module. At this point, the decision-making module may know that the user's flight has started to check-in. Then, the decision module may instruct the display module to display the flight card including the check-in reminder.
  • the above-mentioned check-in reminder is, for example, "check-in is open”. As shown in FIG. 2C , the area 222 of the card 215 may display "open for check-in". After seeing the above prompt information, the user may know that he can check-in.
  • the above-mentioned flight card including the check-in reminder may also include a check-in button.
  • the check-in button can be used for check-in procedures. Specifically, when a user operation acting on the check-in button is detected, the electronic device 100 may display a user interface for checking-in and seat selection. As shown in FIG. 2C , the area 222 of the card 215 may also include a check-in button 231 . When a user operation acting on the check-in button 231 is detected, the electronic device 100 may display a user interface for checking-in and seat selection.
  • the electronic device 100 can also be used to confirm whether the user's flight check-in starts.
  • the electronic device 100 may acquire time data.
  • the time data includes the time when check-in starts for the flight and the current time.
  • the electronic device 100 may confirm that the user's flight starts to check-in.
  • the electronic device 100 can generate and display a flight card including a check-in reminder, refer to the card 215 shown in FIG. 2C .
  • S514 The user performs check-in procedures through the electronic device 100 .
  • the electronic device 100 After displaying the flight card containing the check-in reminder, the electronic device 100 can detect whether there is a user operation on the check-in button. After detecting a user operation acting on the check-in button, in response to the operation, the electronic device 100 may display a user interface for checking-in and seat selection.
  • the electronic device 100 may provide a read interface through the cloud SDK, and send a request for handling check-in procedures to the cloud 200 .
  • the cloud 200 may send the seat distribution data of the flight to the electronic device 100 .
  • the above seat distribution data includes the spatial position of each seat, and also includes whether the seat can be selected.
  • the electronic device 100 may display a user interface for check-in and seat selection.
  • the user interface displays all seats available for the flight. Among them, some seats are not optional (selected by others), and some seats are optional (not selected by others). Users can select their own seats among the seats displayed on this interface.
  • the electronic device 100 may send the data of the seat selected by the user, that is, the seat number, to the cloud 200 .
  • the cloud 200 may store the seat data in the flight record.
  • the cloud 200 also needs to detect whether the user's seat data meets the requirements. For example, when the seat selected by the user is available, the user's seat data meets the requirements, otherwise, the user's seat data does not meet the requirements, that is, there is a conflict.
  • the cloud 200 may send a confirmation signal to the electronic device 100, that is, the check-in is successful. At this time, the selected seat of the user is locked as the user's seat.
  • S515 The electronic device 100 updates the content in the card to display the flight card after the check-in is completed.
  • the electronic device 100 may display the flight card after check-in is completed.
  • the flight card processing after check-in includes not only the basic information of the flight (date, departure time, departure place, arrival time, destination), but also the user's seat number.
  • the decision-making module of the notification display application can confirm that the user has completed the check-in operation.
  • the decision-making module may instruct the display module to display the flight card after check-in is completed.
  • the display module can obtain the seat number selected by the user from the cloud SDK. Then, the display module can replace the prompt message of starting check-in displayed on the right side of the card with the above-mentioned seat number.
  • the left area (area 221 ) of the card 215 can display the basic information of the flight.
  • the right area (area 222 ) of the card 215 can display a prompt message that the user has checked in and the seat number selected by the user when checking in.
  • the above prompt message is, for example, "check-in and seat selection".
  • the above-mentioned seat number is, for example, "23D" shown in FIG. 2D.
  • FIG. 5C shows a flow chart of the electronic device 100 changing the flight card during the boarding stage.
  • S521 The electronic device 100 detects that the user is in a boarding situation.
  • the electronic device 100 may detect that the user is in a boarding situation.
  • the boarding situation refers to the situation where the user arrives at the departure airport and the departure time is approaching. Specifically, the electronic device 100 may determine whether the user is in a boarding situation through status information.
  • the status information here includes: time data, location data.
  • the time data includes departure time and current time.
  • the current time can be obtained by acquiring the system time of the electronic device 100 .
  • the electronic device 100 may obtain the current time through network time synchronization.
  • the location data can be acquired through methods such as GPS, Wi-Fi connected to the electronic device 100 , and cellular signals used by the electronic device 100 .
  • the electronic device 100 can set a preset time. If the current time is within the preset time before the departure time, the electronic device 100 may confirm that the current time is close to the departure time. For example, the departure time of the user's flight is "8:00", and the electronic device 100 can set 20 minutes before the departure time, that is, "7:40-8:00", as the near departure time. If the current time is between "7:40-8:00", the electronic device 100 may confirm that the user's flight is about to take off.
  • the electronic device 100 can confirm that the user is about to board the plane.
  • the electronic device 100 acquires data required by the boarding card from the cloud 200 .
  • the electronic device 100 may display the flight card (boarding card) of the boarding stage.
  • the content displayed on the boarding card also includes: boarding gate, seat number, refer to Figure 2I.
  • the electronic device 100 can request the data required by the boarding card from the cloud 200, including the basic information of the flight (flight number, date, departure time, arrival time, etc.) and Gate, seat number, etc.
  • the cloud 200 may send the electronic device 100 the data required for the boarding card.
  • the electronic device 100 generates and displays a boarding card.
  • the electronic device 100 may generate a boarding card. Then, the display module can display the above-mentioned boarding card on the screen of the electronic device 100, refer to the user interface shown in FIG. 2I.
  • the user when seeing the flight card, the user can quickly learn information such as the boarding gate and seat number, and then the user can quickly complete the boarding and avoid finding the wrong boarding gate and seat.
  • the electronic device 100 displays the electronic boarding pass.
  • the boarding card may also include a boarding pass button.
  • the electronic device 100 may display the user's electronic boarding pass.
  • the electronic device 100 may send a request to the cloud 200 to obtain the data required for the electronic boarding pass through the read interface provided by the cloud SDK.
  • the data required for an electronic boarding pass includes: passenger name, flight number, date, destination, cabin class, seat number, boarding gate, and health code, etc.
  • the cloud 200 can extract the above data from the user's flight record. Then, the cloud 200 may transmit the above data to the electronic device 100 .
  • the cloud SDK of the electronic device 100 can receive the above data. Then, the decision-making module may instruct the display module to display the above data, that is, to display the electronic boarding pass.
  • the user's flight record stored in the cloud 200 will be changed.
  • the content displayed on the flight card of the electronic device 100 should be changed accordingly, so as not to mislead the user.
  • FIG. 5D shows a flow chart for the electronic device 100 to refresh the displayed content of the flight card according to operations such as flight change.
  • S531 The cloud 200 detects the flight change transaction.
  • the user can go through procedures such as refund or rebooking, thereby changing the itinerary.
  • the user's flight record stored in the cloud 200 will be changed accordingly.
  • the cloud 200 may mark the user's flight record as invalid.
  • the cloud 200 may change information such as the flight number and departure time stored in the flight record to information about the rebooked flight.
  • the flight originally scheduled by the user is "depart from Shenzhen Bao'an T3 at 8:00 am and arrive at Beijing Capital T3 at 11:20 am”.
  • the departure time of the user recorded in the cloud 200 is "8:00”
  • the arrival time is "11:20”.
  • the user can change the above-mentioned flight to "departure from Shenzhen Baoan T3 at 11:00 am and arrive at Beijing Capital T3 at 13:20 pm".
  • the user's departure time recorded in the cloud 200 may be changed to "11:00”, and the arrival time may be changed to "13:20".
  • S532 The electronic device 100 receives a change notification.
  • the cloud 200 may send a change notification to the electronic device 100 .
  • the cloud 200 can invoke the push interface to send a push notification (change notification) to the electronic device 100 .
  • the push notification may instruct the electronic device 100 to request data of the user's flight to the cloud 200 .
  • the notification receiving module of the electronic device 100 may receive the above push notification.
  • the electronic device 100 acquires the data of the user's flight from the cloud 200 .
  • the electronic device 100 can parse the above notification. After analysis, the electronic device 100 may confirm that the notification indicates that the electronic device 100 requests the cloud 200 for the data of the user's flight.
  • the electronic device 100 may send a request to acquire the user's flight data to the cloud 200 .
  • the above user's flight data may include: flight number, departure time, departure place, arrival time, destination and so on.
  • the cloud 200 may transmit the above data to the electronic device 100 .
  • the electronic device 100 can obtain the flight data after the refund or rebooking. For example, after the user changes the flight to "depart from Shenzhen Bao'an T3 at 11:00 am and arrive at Beijing capital T3 at 13:20 pm", the departure time obtained by the electronic device 100 can be changed to "11:00", and the arrival time can be changed to "13:20".
  • S534 The electronic device 100 updates the content displayed on the flight card.
  • the electronic device 100 After receiving the above changed data, the electronic device 100 can generate a new flight card. Further, the electronic device 100 may display the above-mentioned new flight card.
  • the push notification sent by the cloud 200 may also include changed data.
  • the electronic device 100 can directly obtain the changed flight data. Then, the electronic device 100 can generate a new flight card according to the above-mentioned changed flight data, and then the electronic device 100 can display the new flight card.
  • FIG. 5E shows a flow chart of the electronic device 100 displaying the flight card after arriving at the destination.
  • S541 The cloud 200 detects that the flight arrives at the destination.
  • the cloud 200 can detect whether the plane has landed at the destination airport, that is, whether the user has arrived at the destination. Specifically, when the current time is the arrival time of the flight, the cloud 200 confirms that the plane taken by the user has landed at the destination airport, that is, whether the user has arrived at the destination.
  • S542 The electronic device 100 receives a landing notification.
  • the cloud 200 may generate a push notification.
  • This notification may be referred to as a landing notification.
  • the notification can be used to instruct the electronic device 100 to request the data (flight data) required to display the flight card from the cloud 200 .
  • the data required for the flight card includes baggage carousel information.
  • the luggage carousel information is used to indicate the location where the user's luggage is stored.
  • the cloud 200 may call the push interface to send the above push notification to the electronic device 100 .
  • the electronic device 100 may receive the above landing notification.
  • the electronic device 100 includes a notification receiving module. This module can be used to receive push notifications. Therefore, the notification receiving module can receive the landing notification sent by the cloud 200 .
  • S543 The electronic device 100 requests flight data from the cloud 200 .
  • the electronic device 100 may send a request to the cloud 200 .
  • the cloud SDK can provide a read interface for the electronic device 100 to read data from the cloud 200 .
  • the notification shows that the application can read the user's flight record from the cloud 200 through the cloud SDK.
  • the cloud 200 may transmit the user's flight data to the electronic device 100 .
  • the flight data includes baggage carousel information.
  • S544 The electronic device 100 displays the flight card after arrival.
  • the electronic device 100 After receiving the flight data sent by the cloud 200, the electronic device 100 can generate a new flight card, and then display the card.
  • the cloud SDK can generate a new flight card based on the above flight data.
  • the flight card includes baggage carousel information.
  • the decision-making module may instruct the display module to display the new flight card on the screen of the electronic device 100 .
  • the electronic device 100 may display the user interface shown in FIG. 2J .
  • area 222 of flight card 215 may display a baggage carousel.
  • the user can see his luggage information after turning on his mobile phone after landing, and then the user can go to the place indicated by the luggage carousel to retrieve his luggage. This avoids the user's operation of querying luggage information, saves user operations, and improves user experience.
  • S545 The electronic device 100 closes the flight card.
  • the electronic device 100 may close the flight card under preset conditions. When the electronic device 100 closes the flight card, it is considered that the itinerary indicated by the flight card is completed.
  • the electronic device 100 can set a preset time. After the preset time expires, the electronic device 100 may confirm that the user has completed the flight itinerary and left the destination airport.
  • the aforementioned preset time may be 30 minutes.
  • the electronic device 100 may confirm that the 30th minute after the arrival time of the flight is the time when the user completes the trip, that is, the time when the user leaves the airport.
  • the electronic device 100 can also acquire location data.
  • the electronic device 100 can combine the time and location data to determine whether the user has left the destination airport. If the current time exceeds the arrival time by 30 minutes or more, and the current location indicates that the electronic device 100 is not within the geographic range of the destination airport, the electronic device 100 confirms that the user has completed the trip and has left the destination airport.
  • the electronic device 100 may close the flight card.
  • the electronic device 100 can detect whether the user arrives at the destination airport by itself. Specifically, the electronic device 100 may periodically acquire time data and location data. When the time data indicates that the current time is after the arrival time, and the location data indicates that the current location is within the geographic range of the destination airport, the electronic device 100 may confirm that the user has arrived at the destination airport.
  • the electronic device 100 may also periodically detect whether the user uses cellular data after the take-off time. If it is detected that the user generates cellular traffic, the electronic device 100 may determine that the user has arrived at the destination airport.
  • the above two methods can also be combined to determine whether the user has arrived at the destination airport.
  • the electronic device 100 After detecting that the user has arrived at the destination airport, the electronic device 100 can obtain flight data from the cloud 200 , further, the electronic device 100 can generate and display a flight card after arriving at the destination. For subsequent methods, refer to S543-S545, which will not be repeated here.
  • the context-based notification display method provided by the embodiment of this application can also be implemented in high-speed rail, health codes, and clock-in at work.
  • the embodiment of the present application will sequentially introduce the application of the context-based notification display method in scenarios such as high-speed rail.
  • FIG. 6A-FIG. 6D show a set of user interfaces for the application of the context-based notification display method in high-speed rail.
  • High-speed rail data includes: train number, date, departure place, departure time, destination, arrival time, etc. Then, the mobile phone can present the high-speed rail data in the form of a high-speed rail card.
  • mobile phones can also receive The push notification sent to get the high-speed rail data.
  • the card 1011 can be called a high-speed rail card.
  • Card 1011 shows a high-speed rail itinerary, including train number (“G1314”), date (“January 9”), departure place (“Shenzhen North”), departure time (“8:00”), destination ( "Guangzhou South”), arrival time ("11:20”).
  • the mobile phone can monitor the current time and judge whether it is close to the departure time. Similarly, the mobile phone can determine whether the current time is close to the departure time by setting a preset time. For example, the aforementioned preset time may be 4 hours. When the current time is within 4 hours before the departure time, the mobile phone can confirm that the departure time is approaching.
  • the phone can obtain its own system time. This system time can be used as the current time. Then, according to the above-mentioned system time and the above-mentioned preset time, the mobile phone can judge whether it is close to the departure time. For example, the mobile phone obtains that the system time is 6:00 am on January 9th, and the departure time of the high-speed rail is 8:00, and then the mobile phone can confirm that there are still 2 hours before the departure time. At this time, the mobile phone can display the user interface 62 shown in FIG. 6B.
  • the mobile phone can adjust the content displayed in the original card 1011.
  • the adjusted card 1011 may appear as shown in the card 1012 .
  • Card 1012 may include a left area and a right area. Similar to the flight card, the left area can display the basic information in the high-speed rail ticket, including: departure place, departure time, destination, arrival time, etc. The area on the right side can display a reminder that the departure time is approaching, such as displaying the countdown to departure ("distance to departure: 2 hours"). When the user sees the above prompt, the user can know that the departure time is approaching, and then the user can go to the high-speed rail station to avoid delays in travel.
  • the mobile phone can also obtain location data. Through the location data, the mobile phone can determine whether the user has arrived at the high-speed rail station.
  • the method of obtaining the location data by the mobile phone can refer to the flight card introduced above, so I won’t go into details here.
  • the mobile phone can update the content displayed in the card 1012. Specifically, the mobile phone can display information such as ticket gates and seat numbers on the high-speed rail card. As shown in FIG. 6C , the updated card 1012 may appear as a card 1013 .
  • the content displayed on the card 1013 may include: train number ("G1314"), date ("January 9"), departure time ("8:00”), arrival time ("11:20”), destination ("Guangzhou South”), seat number ("8 car 11A”), ticket gate ("A12”).
  • the seat number and ticket gate are added after detecting that the user arrives at the high-speed rail station.
  • the mobile phone can determine whether to leave the car through the current time.
  • the mobile phone can obtain the system time and departure time.
  • the mobile phone can confirm that the car has started.
  • the mobile phone can display the user interface 64 shown in FIG. 6D.
  • the user interface 64 shows the appearance of the high-speed rail card after departure (card 1014).
  • the content displayed on the card 1014 may include: train number ("G1314"), date ("January 9"), departure time ("8:00”), arrival time ("11:20”), departure place (“Shenzhen North”), destination ("Guangzhou South”), seat number ("8 car 11A”).
  • the right area of the card 1014 may display the seat number of the user. Meanwhile, the content displayed on the card 1014 does not include ticket gate information.
  • Fig. 7 shows the user interface where the mobile phone displays the health code while displaying the flight card (or high-speed rail card).
  • the mobile phone When the mobile phone detects that the user arrives at the airport (or high-speed rail station) through location data, the content displayed on the flight card will add information such as check-in counters and boarding gates; the content displayed on the high-speed rail card will add information such as ticket gates, compartments, and seat numbers. . At this time, the mobile phone can display the health code card under the flight card (or high-speed rail card).
  • Fig. 7 shows the user interface 71 of the mobile phone displaying the health code card.
  • the user interface 71 may include a flight card 1101 and a health code card 1102 .
  • the flight card 1101 is the card after the mobile phone detects that the user arrives at the airport.
  • the health code card 1102 is the card displayed after the mobile phone detects that the user has arrived at the airport.
  • the mobile phone when arriving at the airport, can obtain the location data of the device through GPS and other means. Using this location data, the phone can confirm that the user has arrived at the airport. Then, the mobile phone can change the flight card to the one shown in the flight card 1101 , and at the same time, the mobile phone can also display the health code card 1102 under the flight card 1101 .
  • the health code card 1102 may include a control 1103 , a control 1104 , a control 1105 , and a control 1106 .
  • the mobile phone may display a user interface including a health code.
  • the mobile phone may display a page for filling out the travel registration.
  • the mobile phone may display an interface containing the user's nucleic acid detection records.
  • the handset may display an interface containing the user's vaccination records.
  • the user can click on the corresponding control, and then the user can obtain the information. For example, a user may click on control 1103 when going through security to enter an airport.
  • the mobile phone may display a user interface including a health code. The user can then show the health code to security personnel.
  • the mobile phone can detect whether the current time reaches the departure time. When the departure time is reached, the mobile phone can close the health code card. When it is detected that the current time reaches the landing time, the mobile phone can display the health code card 1102 again. I won't go into details here.
  • the mobile phone can display the health code card 1102 again.
  • the introduction in FIG. 2J that is, to judge whether the user has arrived at the destination airport through the current time and current location.
  • the phone can also turn off the health code card.
  • the method of confirming and closing the flight card (or high-speed rail card) on the mobile phone please refer to the introduction in FIG. 5E , which will not be repeated here.
  • the mobile phone can also always display the health code card during the period from preparing to board the plane to leaving the airport. That is, the mobile phone does not need to close the health code card after detecting takeoff. In this way, after the arrival at the destination airport is detected, the mobile phone does not need to re-display the health code card. Then, when the mobile phone closes the flight card (or high-speed rail card), the mobile phone can close the health code card.
  • the mobile phone can also determine whether to display the health code floating window according to whether the immersive application program is currently running.
  • the mobile phone can detect whether the immersive application is currently running (the method for detecting whether the mobile phone is currently running the immersive application refers to the introduction in Figure 3F, and will not be repeated here). After detecting that the mobile phone is currently running an immersive application, the mobile phone can display a health code floating window in the user interface of the immersive application. When a user operation acting on the floating window of the health code is detected, the mobile phone can display a user interface including the health code, vaccination records, nucleic acid records, etc.
  • the user when running an immersive application on the mobile phone, the user can quickly obtain information such as the health code through the floating window of the health code (for example, by clicking the floating window, etc., the same method as the previous embodiment can be selected, and will not be repeated here. ), so as to quickly and conveniently provide security check staff for inspection, save time and improve user experience.
  • the phone can obtain the current time and current location.
  • the mobile phone can determine whether the user arrives at the office area before the specified working time (ie clock in at work), or whether the user leaves the office area after the specified time off work (ie clock in at work).
  • the mobile phone can display a notification of clocking in at work in the clock-in card.
  • the above preset clock-in completion time includes: the user preset time, the default time set by the developer when designing the card, and the time obtained by the mobile phone learning the user's historical clock-in records.
  • FIG. 8A shows a user interface 81 in which the mobile phone displays clock-in notices at work in the clock-in cards.
  • the user interface 81 may include a card 1201 , a time indicator 1202 .
  • Card 1201 may include button 1203 .
  • a time indicator 1202 indicates that the current system time is 8:45 (current time).
  • the designated start time for work is 9:00. This means that the user arrives at the office area before the specified working time.
  • the business hours specified above are preset.
  • the button 1203 can be used to receive the user's check-in operation. After detecting the user's operation on the button 1203, the mobile phone can obtain the current location. When the current location is within the geographical range of the office area, the mobile phone can confirm that the user arrives at the office area before the specified working time. At this time, the mobile phone can generate the record of the user's clock-in at work, that is, the user completes the clock-in at work.
  • the mobile phone may display the user interface shown in FIG. 8B.
  • the button 1203 can display that the user has completed checking in.
  • the button 1203 may also display the time when the user finishes clocking in for work, such as "8:45".
  • the mobile phone may continue to display the card shown in FIG. 8B .
  • the mobile phone may also display a switch control. After detecting a user operation acting on the above-mentioned switch control, in response to the operation, the mobile phone can close the above-mentioned card. In other embodiments, the mobile phone may close the above-mentioned card after a preset display time of the card shown in FIG. 8B.
  • the mobile phone can detect whether the conditions for clocking out of get off work are met. First of all, the mobile phone can judge whether it is the off-duty time according to the time. When the current time reaches the off-duty time, or after the off-duty time, the mobile phone can display the off-duty clock-in notification. Similarly, the above off-duty time is also preset.
  • FIG. 8C shows a user interface 83 where the mobile phone displays a clock-out notification in the clock-in card.
  • the user interface 83 may include a card 1201 , a time indicator 1212 .
  • Card 1201 may include button 1213 .
  • the time indicator 1212 indicates that the current system time is 17:00.
  • the designated closing time is 17:00. That is to say, the current time has already met the requirement of getting off work.
  • the mobile phone can detect whether the user performs an off-duty clock-in operation.
  • the button 1213 can be used to receive the user's check-in operation.
  • the mobile phone detects a user operation acting on the button 1213, the mobile phone can obtain the current location. If it is confirmed that the current location is within the geographical range of the office area, the off-duty clock-in is successful.
  • the mobile phone can generate the user's off-duty clock-in record, that is, the user completes the off-duty clock-in.
  • the mobile phone may display the user interface shown in FIG. 8D .
  • the button 1213 can display that the user has completed checking in.
  • the button 1203 can also display the time when the user completes the clock-out, such as "17:00".
  • the mobile phone can close the off-duty clock-in notification.
  • the mobile phone can re-display the clock-in notification after get off work.
  • the mobile phone may always display the notification of clocking out of get off work.
  • the first card may be the card showing the flight itinerary shown in Figure 2A- Figure 2Q; the first card may be the card showing the high-speed rail itinerary shown in Figure 6A- Figure 6D; the first card may also be It is the punch card shown in Figure 8A-8B.
  • the area 221 (the left area) may be called the first area
  • the area 222 (the left area) may be called the second area.
  • the content displayed in the first area can be called the first content, for example, "Shenzhen Bao'an T3 8:00 Beijing Capital T3 11:20".
  • the content displayed in the second area may be called the second content, for example, "check-in is expected to open at 18:00 today”.
  • the first state is the state of displaying the check-in notice.
  • the state of displaying the check-in reminder may be referred to as the second state.
  • the content displayed in the first area may be referred to as the first content, for example, "Shenzhen Bao'an T3 8:00 Beijing Capital T3 11:20".
  • the content displayed in the second area may be referred to as third content.
  • the third content is "open check-in” and the check-in seat selection button 231 .
  • the card shown in FIG. 2C is the card in the first state
  • the card shown in FIG. 2D can be called the card in the second state.
  • the content displayed in the right area of the card shown in FIG. 2C may be called the second content
  • the content displayed in the right area of the card shown in FIG. 2D may be called the third content. The same applies to other states.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2I may be referred to as a third state.
  • the content displayed in the area 221 of the card shown in FIG. 2I may be called the fourth content; the content displayed in the area 222 may be called the fifth content.
  • the content displayed in the notification bar (banner notification, lock screen notification, pull-down notification) may be referred to as sixth content.
  • the status of the electronic device 100 displaying the flight card shown in FIG. 2B may be referred to as the status of displaying the check-in notice.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2C may be referred to as the state in which the check-in reminder is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2D may be referred to as a state informing the user that the flight has been checked in.
  • the status of the electronic device 100 displaying the flight card shown in FIG. 2E may be referred to as the status of displaying the check-in countdown.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2F may be referred to as the state in which the check-in counter is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2G may be referred to as the state in which the departure reminder is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2H may be referred to as the state in which the travel time is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2L may be referred to as the state in which the health code is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2I may be referred to as a state of starting to board the plane.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 2J can be referred to as the state in which the baggage carousel is displayed.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 6B may be referred to as a state in which the user is reminded that the high-speed train is about to depart.
  • the state in which the electronic device 100 displays the flight card shown in FIG. 6C may be referred to as reflecting the state that the user has arrived at the high-speed rail station.
  • the status of the electronic device 100 displaying the flight card shown in FIG. 6D may be referred to as a status reflecting that the high-speed train has already departed.
  • the electronic device 100 is a mobile phone.
  • the electronic device 100 can also be a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant ( personal digital assistant, PDA), augmented reality (augmented reality, AR) equipment, virtual reality (virtual reality, VR) equipment, artificial intelligence (artificial intelligence, AI) equipment, wearable equipment, vehicle equipment, smart home equipment and / Or a smart city device, the embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, And/or a universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • mobile industry processor interface mobile industry processor interface
  • MIPI mobile industry processor interface
  • general-purpose input and output general-purpose input/output
  • GPIO general-
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the capabilities provided by the mobile communication module 150 and the wireless communication module 160 for the electronic device 100 include: acquiring location data (current location) through GPS, acquiring location data through cellular data, and acquiring and uploading and downloading through cellular data service etc.
  • the electronic device 100 can determine the user's situation based on the location data and other state information (such as time, etc.). Further, the electronic device 100 may update the content displayed in other types of notifications such as cards according to the situation of the user.
  • the upload and download service can support the electronic device 100 to obtain content displayed in other types of notifications such as cards.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the user interfaces shown in FIGS. 2A-2J, 3A-3F, 6A-6D, 7, and 8A-8B can be displayed through the GPU and the display screen 194 .
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • RAM random access memory
  • NVM non-volatile memory
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.;
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous Dynamic random access memory double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR5SDRAM double data rate synchronous dynamic random access memory
  • Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
  • flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc., and according to the potential order of storage cells, it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi- Level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc., can include universal flash storage (English: universal flash storage, UFS ), embedded multimedia memory card (embedded multi media Card, eMMC), etc.
  • SLC single-level storage cells
  • MLC multi-level storage cells
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • embedded multimedia memory card embedded multi media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the touch sensor 180K may support user operations such as clicking and sliding on the screen, and in response to the above operations, the electronic device 100 may display a user interface corresponding to the operations.
  • the touch sensor 180K may detect a user operation on the button 251 by the user, and in response to the operation, the electronic device 100 may display a user interface including an electronic boarding pass.
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • electronic devices such as mobile phones can split the content of a notification into different parts according to different situations of the user. Then, according to the current situation of the user, selectively display part of the content in the above notification. In this way, users can not only obtain more and comprehensive information, but also enable users to quickly and accurately obtain the information they want to know most in the current situation, avoiding tedious and inconvenient information piles.
  • UI user interface
  • the term "user interface (UI)" in the specification, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the internal form of information Conversion to and from a form acceptable to the user.
  • the user interface of the application program is the source code written in specific computer languages such as java and extensible markup language (XML). Such as pictures, text, buttons and other controls.
  • Control also known as widget (widget)
  • Typical controls include toolbar (toolbar), menu bar (menu bar), text box (text box), button (button), scroll bar (scrollbar), images and text.
  • the properties and contents of the controls in the interface are defined through labels or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or property in the interface, and after the node is parsed and rendered, it is presented as the content visible to the user.
  • the interfaces of many applications, such as hybrid applications usually include web pages.
  • a web page, also called a page, can be understood as a special control embedded in the application program interface.
  • a web page is a source code written in a specific computer language, such as hyper text markup language (GTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • GTML hyper text markup language
  • cascading style Tables cascading style sheets, CSS
  • java scripts JavaScript, JS
  • the specific content contained in the web page is also defined by the tags or nodes in the source code of the web page.
  • GTML defines the elements and attributes of the web page through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种基于情境的通知显示方法和装置,该方法可应用于手机等电子设备。在该方法中,电子设备可以依据用户所处的不同情境,将一个通知中的内容拆分成不同部分。然后,根据当前用户所处的情境,选择性地展示上述通知中的部分内容。这样,用户既可以获得多而全面的信息,又可以使用户快速准确的获得当前情境下最想要了解的信息,避免信息堆砌带来的繁琐、不方便。

Description

基于情境的通知显示方法和装置
本申请要求于2021年5月28日提交中国专利局、申请号为202110606593.6、申请名称为“基于情境的通知显示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及基于情境的通知显示方法和装置。
背景技术
现有卡片通常用一张卡片概括所有的基本信息和功能。卡片上的信息和功能堆砌,使得用户难以寻找重要信息。当卡片想要尽可能地展示更多的信息和功能时,卡片也就越大越长。对于用户来说,用户难以清晰、直接的获取到当下场景最需要的信息,从而降低了卡片的易读性。
发明内容
本申请提供了基于情境的通知显示方法和装置。实施该方法,手机等电子设备可以依据用户所处的不同情境,在卡片中显示当前情境下用户更关心的内容。这样,用户既可以获得多而全面的信息,又可以使用户快速准确的获得当前情境下最想要了解的信息。
第一方面,本申请实施例提供了一种通知显示方法,该方法应用于电子设备,其特征在于,该方法包括:显示第一用户界面,第一用户界面显示有第一卡片,第一卡片包括第一区域和第二区域,第一区域与第二区域不重叠,第一区域显示第一内容,第二区域显示第二内容,其中,第二内容用于指示用户所处状态为第一状态,第二内容与第一内容相关联;检测到用户所处状态为第二状态,第二状态与第一状态不同;响应于用户所处的状态为第二状态,第一区域显示第一内容,第二区域显示第三内容,第三内容用于指示用户所处状态为第二状态,第三内容与第二内容不同,第三内容与第一内容相关联;其中,第一状态和第二状态是与用户所处的地理位置,和/或,时间有关联的状态。
实施第一方面提供的方法,电子设备可以检测到用户所处的状态的变化。电子设备可确定变化后的状态下,用户关心的信息。然后,电子设备可在卡片中显示上述信息。这样,用户既可以获得多而全面的信息,又可以使用户快速准确的获得当前情境下最想要了解的信息,避免信息堆砌带来的繁琐、不方便。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:检测到用户所处状态为第三状态,第三状态与第二状态不同;响应于用户所处的状态为第三状态,第一区域显示第四内容,第二区域显示第五内容,第四内容与第一内容不同,第五内容与第三内容不同,第五内容用于指示用户所处状态为第三状态,第五内容与第四内容相关联其中,第四内容与第一内容相关联,第四内容的显示形式与第一内容的显示形式不同,且第四内容的文本内容和第一内容的文本内容相同;第三状态是与用户所处的地理位置,和/或,时间有关联的状态。
实施上述实施例提供的方法,电子设备在变更第二区域中显示的内容的过程中,还可以变更第一区域中显示的内容。这样使得卡片显示的内容更加灵活。
结合第一方面的一些实施例,在一些实施例中,在检测到用户所处状态为第二状态之后,该方法还包括:显示消息通知,消息通知是横幅通知、锁屏通知、下拉通知中的一个或多个,消息通知包括第六内容,第六内容用于指示用户所处状态为第二状态,第六内容与第三内容相关联。
实施上述实施例提供的方法,电子设备不仅可以通过更新卡片提示用户状态变化,还可以通过横幅通知、锁屏通知等通知方式提醒用户上述变化。这样,当电子设备未处于显示卡片的用户界面时,电子设备也可通过其他通知形式及时地提醒用户。
结合第一方面的一些实施例,在一些实施例中,在检测到用户所处状态为第二状态之后,该方法还包括:在第一用户界面显示第二卡片,第二卡片包括获取健康码,和/或,核酸记录,和/或,疫苗记录的控件。
实施上述实施例提供的方法,电子设备还可在第二状态时,显示包括获取健康码、核酸记录、疫苗记录的快捷方式的卡片。这样,电子设备就可在用户需要的时候自动的显示上述卡片,从而为用户提供更方便快捷的使用体验。
结合第一方面的一些实施例,在一些实施例中,第一卡片为航班卡片;第一状态、第二状态和第三状态分别为:提醒用户办理值机手续的状态、提醒用户前往机场的状态、反映用户准备登机的状态和反映用户抵达目的地的状态中的一个。
结合第一方面的一些实施例,在一些实施例中,提醒用户办理值机手续的状态包括:显示值机预告的状态、显示值机提醒的状态、提示用户已值机的状态、显示值机倒计时的状态或显示值机柜台的状态;或者,提醒用户前往机场的状态包括:显示出发提醒的状态或显示路程时间的状态;或者,反映用户准备登机的状态包括:显示健康码的状态、开始登机的状态或显示登机口的状态;或者,反映用户抵达目的地的状态包括:显示行李转盘的状态、显示酒店位置的状态或显示旅游景点的状态。
结合第一方面的一些实施例,在一些实施例中,第一内容包括:航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间中的一个或者多个;第二内容、第三内容和第五内容分别包括:航班的值机预告、值机提醒、已值机提醒、值机倒计时、值机柜台、出发提醒、路程时间、座位号、登机口、行李转盘、酒店位置、旅游景点位置中的一个或多个;第四内容包括:航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间、值机柜台、座位号、登机口中的一个或者多个。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:当第一状态、第二状态或者第三状态为反映用户准备登机的状态时;确定电子设备正在运行沉浸式应用程序,显示悬浮窗,悬浮窗用于显示登机提醒;其中,沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
实施上述实施例提供的方法,在检测到用户正在使用沉浸式应用程序时,该电子设备可显示悬浮窗。该悬浮窗可以展示提示信息和快捷方式。这样,用户在使用沉浸式应用程序时,也能快速地获取通知,避免延误。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:检测到用户对悬浮窗的第一操作;响应于第一操作,显示电子登机牌,其中第一操作为点击操作、长按操作滑动操作或语音控制操作中的一个。
实施上述实施例提供的方法,用户可以在需要展示电子登机牌时,点击悬浮窗,从而快速获得电子登机牌。
结合第一方面的一些实施例,在一些实施例中,第一卡片为展示高铁行程的卡片;第一状态、第二状态和第三状态分别为:提醒用户高铁即将启程的状态、反映用户已经抵达高铁站的状态和反映高铁已经启程的状态中的一个。
结合第一方面的一些实施例,在一些实施例中,第一内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间中的一个或多个;第二内容、第三内容和第五内容分别包括:出发提醒、车厢号、座位号、检票口中的一个或多个;第四内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间、出发提醒、车厢号、座位号、检票口中的一个或多个。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:当第一状态、第二状态或者第三状态为反映用户已经抵达高铁站的状态时;确定电子设备正在运行沉浸式应用程序,显示悬浮窗,悬浮窗用于显示电子车票二维码;其中,沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
实施上述实施例提供的方法,在检测到用户正在候车室候车,且正在使用沉浸式应用程序时,该电子设备可显示悬浮窗。该悬浮窗可以供用户快速获取电子设备二维码,从而快速通过安检。这样,用户在使用沉浸式应用程序时,也能快速地获取通知,避免延误。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:检测到用户对悬浮窗的第一操作;响应于第一操作,显示电子设备二维码,其中第一操作为点击操作、长按操作、滑动操作或语音控制操作中的一个。
这样,用户可以在需要展示电子车票二维码时,点击悬浮窗,从而快速获得电子车票二维码。
结合第一方面的一些实施例,在一些实施例中,第一卡片为打卡卡片。这样,电子设备可以通过状态检测,及时更新卡片中的打卡通知。进而,用户可以通过该卡片快速完成打卡。
结合第一方面的一些实施例,在一些实施例中,第一状态为显示上班打卡提醒的状态,第二状态为显示下班提醒的状态。
结合第一方面的一些实施例,在一些实施例中,第一内容包括打卡提醒,第二内容包括上班打卡控件、上班打卡时间或用户是否打卡中的一个或多个,第三内容包括:下班打卡控件、下班打卡时间或用户是否打卡中的一个或多个。
第二方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器和一个或多个存储器;其中,一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器和一个或多个存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行:
显示第一用户界面,第一用户界面显示有第一卡片,第一卡片包括第一区域和第二区域,第一区域与第二区域不重叠,第一区域显示第一内容,第二区域显示第二内容,其中,第二内容用于指示用户所处状态为第一状态,第二内容与第一内容相关联;检测到用户所处状态为第二状态,第二状态与第一状态不同;响应于用户所处的状态为第二状态,第一区域显示第一内容,第二区域显示第三内容,第三内容用于指示用户所处状态为第二状态,第三内容与第二内容不同,第三内容与第一内容相关联;其中,第一状态和第二状态是与用户所处的地理位置,和/或,时间有关联的状态。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,具体用于调用计算机指令以使得电子设备执行:检测到用户所处状态为第三状态,第三状态与第二状态不同;响应于用户所处的状态为第三状态,第一区域显示第四内容,第二区域显示第五内容,第四内容与第一内容不同,第五内容与第三内容不同,第五内容用于指示用户所处状态为第三状态,第五内容与第四内容相关联其中,第四内容与第一内容相关联,第四内容的显示形式与第一内容的显示形式不同,且第四内容的文本内容和第一内容的文本内容相同;第三状态是与用户所处的地理位置,和/或,时间有关联的状态。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:显示消息通知,消息通知是横幅通知、锁屏通知、下拉通知中的一个或多个,消息通知包括第三内容,第三内容用于指示用户所处状态为第二状态。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:在第一用户界面显示第二卡片,第二卡片包括获取健康码,和/或,核酸记录,和/或,疫苗记录的控件。
结合第三方面的一些实施例,在一些实施例中,第一卡片为航班卡片;第一状态、第二状态和第三状态分别为:提醒用户办理值机手续的状态、提醒用户前往机场的状态、反映用户准备登机的状态和反映用户抵达目的地的状态中的一个。
结合第三方面的一些实施例,在一些实施例中,提醒用户办理值机手续的状态包括:显示值机预告的状态、显示值机提醒的状态、提示用户已值机的状态、显示值机倒计时的状态或显示值机柜台的状态;或者,提醒用户前往机场的状态包括:显示出发提醒的状态或显示路程时间的状态;或者,反映用户准备登机的状态包括:显示健康码的状态、开始登机的状态或显示登机口的状态;或者,反映用户抵达目的地的状态包括:显示行李转盘的状态、显示酒店位置的状态或显示旅游景点的状态。
结合第三方面的一些实施例,在一些实施例中,第一内容包括:航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间中的一个或者多个;第二内容、第三内容和第五内容分别包括:航班的值机预告、值机提醒、已值机提醒、值机倒计时、值机柜台、出发提醒、路程时间、座位号、登机口、行李转盘、酒店位置、旅游景点位置中的一个或多个;第四内容包括:航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间、值机柜台、座位号、登机口中的一个或者多个。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:当第一状态、第二状态或者第三状态为反映用户准备登机的状态时;确定电子设备正在运行沉浸式应用程序,显示悬浮窗,悬浮窗用于显示登机提醒; 其中,沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:检测到用户对悬浮窗的第一操作;响应于第一操作,显示电子登机牌,其中第一操作为点击操作、长按操作滑动操作或语音控制操作中的一个。
结合第三方面的一些实施例,在一些实施例中,第一卡片为展示高铁行程的卡片;第一状态、第二状态和第三状态分别为:提醒用户高铁即将启程的状态、反映用户已经抵达高铁站的状态和反映高铁已经启程的状态中的一个。
结合第三方面的一些实施例,在一些实施例中,第一内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间中的一个或多个;第二内容、第三内容和第五内容分别包括:出发提醒、车厢号、座位号、检票口中的一个或多个;第四内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间、出发提醒、车厢号、座位号、检票口中的一个或多个。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:当第一状态、第二状态或者第三状态为反映用户已经抵达高铁站的状态时;确定电子设备正在运行沉浸式应用程序,显示悬浮窗,悬浮窗用于显示电子车票二维码;其中,沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
结合第三方面的一些实施例,在一些实施例中,一个或多个处理器,还用于调用计算机指令以使得电子设备执行:检测到用户对悬浮窗的第一操作;响应于第一操作,显示电子设备二维码,其中第一操作为点击操作、长按操作、滑动操作或语音控制操作中的一个。
结合第三方面的一些实施例,在一些实施例中,第一卡片为打卡卡片。这样,电子设备可以通过状态检测,及时更新卡片中的打卡通知。进而,用户可以通过该卡片快速完成打卡。
结合第三方面的一些实施例,在一些实施例中,第一状态为显示上班打卡提醒的状态,第二状态为显示下班提醒的状态。
结合第三方面的一些实施例,在一些实施例中,第一内容包括打卡提醒,第二内容包括上班打卡控件、上班打卡时间或用户是否打卡中的一个或多个,第三内容包括:下班打卡控件、下班打卡时间或用户是否打卡中的一个或多个。
第四方面,本申请实施例提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。
可以理解地,上述第二方面提供的电子设备、第三方面提供的电子设备、第四方面提供的计算机存储介质、第五方面提供的计算机程序产品均用于执行本申请实施例所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
图1A-图1B是本申请实施例提供的一组显示现有卡片的用户界面;
图1C是本申请实施例提供的航班出行流程图;
图2A-图2M是本申请实施例提供的一组显示卡片的用户界面;
图2N-图2Q是本申请实施例提供的卡片可能的其他形态的示意图;
图3A-图3H是本申请实施例提供的显示其他类型通知的用户界面;
图4A-图4B是本申请实施例提供的基于情境的通知显示方法的系统图;
图5A-图5E是本申请实施例提供的基于情境的通知显示方法的流程图;
图6A-图6D是本申请实施例提供的另一种应用场景的用户界面;
图7是本申请实施例提供的另一种应用场景的用户界面;
图8A-图8D是本申请实施例提供的另一种应用场景的用户界面;
图9是本申请实施例提供的电子设备的硬件结构图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。
以航班卡片为例,图1A和图1B示出了手机展示航班卡片的2种形式。
如图1A所示,卡片101可包括航班号101A、日期101B、时间和地点101C。其中时间包括起飞时间(“8:00”)和抵达时间(“11:20”),地点包括出发地(“深圳宝安T3”)和目的地(“北京首都T3”)。
图1A示出的卡片尺寸较小,显示的信息也较少。采用上述卡片的优点是用户可以快速锁定该卡片想要展示的信息,例如,起飞时间和抵达时间。但是,上述展示的卡片的缺点也比较明显:用户无法得到更多的信息,例如什么时候可以开始值机、哪些柜台可以办理值机、登机口是哪一个等等。
图1B所示的卡片展示了关于航班的更多信息。例如,卡片111可包括航班号111A、日111B期、时间和地点111C、值机柜台112、登机口113以及行李转盘114等。其中,111A、日111B期、时间和地点111C可参考图1A的介绍,这里不再赘述。
在需要办理值机信息时,用户可通过值机柜台112了解值机信息。在登机之前,用户可以通过登机口113了解登机口信息。在抵达目的地后,用户可通过行李转盘114了解托运行李的信息。当然,卡片111还可包括按钮115。当检测到作用于按钮115的用户操作时,手机可显示关于卡片111所展示的航班的更多信息。这样,卡片111基本上展示关于该航班的全部信息。
但是,此时的卡片111的尺寸明显更大、更长。这也就导致卡片上的信息和功能堆砌。进一步的,用户无法第一眼就定位想要的信息。例如,当用户想要获取行李转盘信息时,用户可能第一眼看到的是起飞时间和落地时间。
为了使卡片展示尽可能多的信息,同时又兼顾卡片的简洁性,本申请实施例提供了一种基于情境的通知显示方法和装置。该方法可应用于手机上。实施本申请实施例提供的方法,手机上展示的卡片可以包括更多的信息,例如图1B所示的值机柜台112、登机口113等等。同时,该卡片又可以根据当前所处的场景,选择性的展示上述更多的信息。例如,在开放值机时,该卡片可显示值机柜台112所示的信息。当开始登机时,该卡片可显示登机口113所示的信息,并不再显示值机柜台112所示的信息。
这样,在一个卡片中,用户既可以获得多而全面的信息,又可以使用户快速准确的获得想要了解的信息,避免信息堆砌带来的繁琐、不方便。
不限于手机,提供展示航班卡片的电子设备(电子设备100)还可以是平板电脑、桌面型计算机、膝上型计算机、笔记本电脑、虚拟现实(virtual reality,VR)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备等等。本申请实施例对该电子设备100的具体类型不作特殊限制。可以理解的,航班卡片在其他类型的电子设备上的应用可参考手机类型的电子设备。本申请实施例也将主要以手机为例说明本申请实施例提供的方法。
图1C示出了用户乘坐航班出行的流程。这一流程也可称为航班的生命期。如图1C所示,乘坐航班出行的流程可分为3部分:出行前、出行中和出行后。图1C中示出的每一个节点可称为一个情境。
出行前包括用户购买机票到抵达出发地机场这一过程,包括:订票、航班变更/取消、目的地天气、值机/选座、接机预订、出发去机场、达到机场等细分情境。出行中是指用户达到机场至完成登机这一过程,其中包括:健康码、登机牌/托运、安检、航班延误、登机口变更、候机厅候机、登机等细分情境。出行后是指用户抵达目的地机场之后的过程,包括:提取行李、打车去酒店、商务/旅行等细分情境。
手机在显示航班卡片时,可以根据用户所处的某一具体情境,显示用户在当前情境下更为关心的信息,即调整航班卡片中显示的内容。
当然,上述情境并非都需要航班卡片调整卡片中显示信息。例如,在值机选座的情境中,卡片可显示开放值机的时间,同时,卡片还可显示用户办理值机手续的按钮;而在安检情境中,卡片中显示的内容可不做调整。这也就是说,上述例举出的情境是可选的,即手机可以选择性的在某一情境下变更卡片中显示的内容。
当情境变化时,即从一个节点进行到另一个节点,用户关心的信息会发生变化。例如,当用户购买机票后,用户会更关心航班的日期、出发地和目的地;当面临值机/选座时,用户关心的信息包括:什么时候开始值机、是否可线上办理值机;在到达机场后,用户会更关心航班的值机柜台、登机口等信息等等。
本申请实施例提供的基于情境的通知显示方法即,通过感知用户所处的情境,显示该阶段的重要信息的方法。这里的重要信息即用户更关注的信息。
结合图1C所示的航班出行的情境,下面介绍手机根据不同情境变更航班卡片显示的内 容的过程。图2A-图2J示例性示出了一组基于情境的航班卡片的用户界面。下面将结合图2A-图2J示出的用户界面,介绍本申请实施例提供的基于情境的通知显示方法。
图2A-图2J示出的航班卡片对应的情境包括:订票、值机/选座、出发去机场、到达机场、登机、提取行李。
在用户购买机票后,手机可获取用户的出行计划。出行计划包括航班编号、日期、出发地、目的地、时间等。手机获取上述出行计划的方式可包括短信和推送通知(push notification)。
其中,短信是指:手机通过监测航空公司发送的出票短信获取用户的出行计划。推送通知是指:航空公司在确认用户的出行计划后,向用户的手机推送通知。该通知就包括上述出行计划。后续实施例将会详细介绍手机如何通过上述两种方式获取用户的出行计划,这里先不展开。
在手机获取到出行计划之后,手机可在航班卡片中显示上述出行计划。此时,手机显示的卡片可称为订票情境中的航班卡片。图2A示出了手机显示订票情境中的航班卡片的用户界面21。
如图2A所示,用户界面21可包括状态栏211、页面指示符212、常用应用程序图标托盘213,以及多个其他应用程序图标214。其中:状态栏可包括移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符(例如信号强度指示符211A、信号强度指示符211B)、无线高保真(wireless fidelity,Wi-Fi)信号强度指示符211C,电池状态指示符211D、时间指示符211E。
页面指示符212可用于指示当前显示的页面与其他页面的位置关系。
常用应用程序图标的托盘213可以包括多个托盘图标(例如相机应用图标、通讯录应用图标、电话应用图标、信息应用图标),托盘图标在页面切换时保持显示。上述托盘图标是可选的,本申请实施例对此不作限定。
其他应用程序图标214可包括多个应用图标。例如,设置应用图标、应用市场应用图标、图库应用图标、浏览器应用图标等。其他应用程序图标还包括第三方应用程序图标,例如
Figure PCTCN2022073332-appb-000001
应用图标等等
其他应用程序图标214可分布在多个页面,页面指示符还可以用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。可以理解的是,图2A仅仅示例性示出了电子设备100的一个用户界面,不应构成对本申请实施例的限定。
用户界面21可包括卡片215。卡片215中显示的内容为上述出行计划(即航班信息),包括航班编号、日期、出发地、目的地、时间等。例如,卡片215示出的出行计划为“1月9号,由深圳宝安T3飞往北京首都T3,预计出发时间为8:00,抵达时间为11:20,航班编号为CA1314”。
当看到图2A所示的航班卡片时,用户可立即了解到自己的出行计划,而避免登录购买机票的网站或应用程序去查询自己的出行计划。
这里,航班卡片(卡片215)被放置在手机的主页面(home page)。在其他实施例中, 该卡片可也在负一屏显示。这里,负一屏是指手机最左边的页面。本申请实施例对卡片的放置的位置不作限制。
在航班起飞前一段时间,例如起飞前一天,航空公司会开放值机/选座通道。用户可通过航空公司开放的值机/选座通道进行值机/选座等事务。上述值机/选座通道包括线上通道和线下通道。其中,线上通道是指手机、个人电脑等电子设备提供的在线值机的通道。线下通道是指机场值机柜台提供的办理值机的通道。
手机可获取航班开放值机的时间,并检测是否达到值机时间,然后相应地的调整卡片215中显示的信息。
在开放值机前一段时间,航班卡片可显示即将开放值机的提醒。此时的航班卡片可称为值机/选座情境中的航班卡片。上述一段时间是预设的,例如开放值机/选座通道前2小时等等。当看到上述提醒后,用户可知道未来什么时刻可以开始办理值机手续。
图2B示出了手机显示值机/选座情境中的航班卡片的用户界面22。如图2B所示,此时,卡片215可分为左右两部分,区域221(左侧区域)、区域222(右侧区域)。
区域221(左侧区域)可显示航班的基本信息,包括出发地、出发时间、目的地和抵达时间,例如区域221中示出的“深圳宝安T3、8:00、北京首都T3、11:20”。
区域222(右侧区域)可显示即将开放值机的提醒。例如“预计今天18:00开放值机”。通过上述提醒消息,用户可以及时了解到自己购买的航班即将开放值机/选座通道。这样,用户可以进一步安排办理值机手续的时间。
进一步的,手机可检测航空公司是否已经开放值机/选座通道。当检测到以开放值机/选座通道后,手机可显示图2C所示的用户界面23。此时,航班卡片可显示提示用户办理值机手续的消息。
如图2C所示,用户界面23包括卡片215。卡片215包括:区域221(左侧区域)、区域222(右侧区域)。区域221仍然显示航班的基本信息(出发地、出发时间、目的地和抵达时间),参考图2C。但是,此时的区域222不再显示“预计今天18:00开放值机”的提示,而是显示已开放值机的提示,例如“已开放值机”。
同时,区域222还可包括值机按钮231。手机可检测到作用于值机按钮231的用户操作,响应于该操作,手机可显示办理值机手续的用户界面。上述用户操作例如是点击操作。后续实施例将详细介绍办理值机手续的用户界面,这里先不展开。
在办理值机手续的用户界面中,手机可接收到用户选择的座位号数据,并将上述座位号数据发送给航空公司的服务器。在航空公司的服务器确认用户选择的座位号后,手机可显示选择成功的反馈。
这里,确认用户选择的座位号是指确认该座位号是否可选,如果可选,将该座位号对应的用户标记更新为该用户,然后将该座位号的状态变更为不可选(即其他用户不可再选择该座位)。本申请对上述办理值机手续的用户界面不做限定。
可以理解的,若用户的航班所述的航空公司不支持线上办理值机手续,则上述航空卡片可不显示值机按钮231。
当检测到用户已经办理值机手续后,手机可将卡片215中显示的“以开放值机”的提醒更新为“已完成值机”的提醒。图2D示出了手机显示用户办理值机手续后的航班卡片的用户界面24。
如图2D所示,卡片215包括:区域221(左侧区域)、区域222(右侧区域)。同样的,区域221仍然显示航班的基本信息(出发地、出发时间、目的地和抵达时间)。此时区域222不再显示“以开放值机”的提醒,而是显示已完成值机的提醒,例如“已值机选座”。
同时,用户界面23中的值机按钮231可替换为登机牌按钮241。当检测到作用于登机牌按钮241的用户操作时,响应于该操作,手机可显示用户的包含电子登机牌的用户界面。电子登机牌中记录的信息包括:乘客姓名、航班号、日期、目的地、舱位、座位号、登机口以及健康码等等。后续实施例将会详细介绍手机显示电子登机牌的用户界面,这里先不展开。
在其他实施例中,区域222(右侧区域)还可直接显示用户选定的座位号。这样,用户能更方便快捷地获取座位号。
在手机显示图2C所示的用户界面23后,且临近值机截止时间时,如果用户迟迟未办理值机手续,手机可进一步显示截止值机的倒计时。倒计时可以给用户更强烈的提醒。这样,用户可以在看到倒计时后,尽快办理值机手续。
图2E示出了手机显示包括倒计时的航班卡片的用户界面25。
如图2E所示,卡片215包括:区域221(左侧区域)、区域222(右侧区域)。此时,区域222可显示剩余值机时间(即倒计时)。这里,剩余值机时间可通过计算当前时间和起飞时间的差值获得。
例如,用户界面25示出了当前时间为上午6:00,而卡片215对应的航班的起飞时间为8:00,那么,此时距离起飞时间还有2个小时。此时,区域222可显示“距离截止值机还剩2小时”的提醒字样。
随着当前时间的变更,手机可不断更新区域222中显示的倒计时,例如“距离截止值机还剩1小时”、“距离截止值机还剩30分钟”。手机还可将上述提示字样设置为红色,进一步提醒用户。
在显示倒计时的同时,区域222还可显示图2C所示的值机按钮231。当检测到作用于值机按钮231的用户操作时,响应于该操作,手机可显示办理值机手续的用户界面(参考前述介绍,这里不再赘述)。这样,当看到值机截止倒计时后,用户可通过值机按钮231办理值机手续。
当截止值机后,区域222可不再显示上述倒计时,而是显示已截止值机的提示,例如显示“已截止值机”的字样,参考图2E右侧的卡片。上述字样可被设置成红色其他颜色,从而给用户更加强烈的提示。
在显示图2D-图2E所示的任一航班卡片的过程中,手机还可获取位置数据。位置数据可用于判断用户是否进入机场地理范围(即是否到达机场)。后续实施例将会详细介绍手机 获取位置数据的具体方法,这里先不展开。当检测到用户进入机场地理范围后,手机可更新航班卡片中显示的内容。
在手机显示图2D所示的航班卡片的过程中,手机获取指示机场地理范围的位置数据。这时,手机可显示图2F所示的用户界面26。
如图2F所示,卡片215可包括区域221(左侧区域)、区域222(右侧区域)。此时,卡片215的区域222可显示办理值机的柜台,例如“值机柜台G07-G11”。当看到上述柜台后,用户可前往编号“G07”到“G11”中的任意一个柜台,办理值机手续。这样,用户就可以及时了解到自己应该前往哪一个柜台办理值机手续,避免浪费时间、耽误行程。
同时,区域222还可包括值机按钮231。当检测到作用于值机按钮231的用户操作时,响应于该操作,手机可显示办理值机手续的用户界面。这也就是说,在抵达机场后,用户仍然可以通过值机按钮231提供的线上值机/选座通道,办理值机手续。同样的,若用户的航班所属的航空公司不支持线上值机/选择,则上述航班卡片可不显示值机按钮231。
在手机显示图2D所示的航班卡片的过程中,手机获取的位置数据指示用户未进入机场地理范围。同时,手机获取的当前时间指示临近起飞时间。这里的临近起飞时间例如是起飞前2小时、1小时等等。此时,手机可显示图2G所示的用户界面27。
如图2G所示,卡片215可包括区域221(左侧区域)、区域222(右侧区域)。此时,卡片215的区域222可显示出发提醒。具体的,手机可通过当前时间、出发时间(起飞时间)、预计路程时间以及等候时间来确定用户是否应该前往机场。例如,用户界面27显示的当前时间为6:00、航班的起飞时间为8:00、预计路程时间为1个小时、机场候机时间预计30分钟。通过上述4个时间数据,手机可确定用户还剩30分钟。此时区域222可显示“建议30分钟内出发”的提醒。
这里,预计路程时间可通过上述位置数据(手机当前的位置数据)、机场位置数据和手机的移动速度(用户当前的移动速度)计算得到。除了上述数据外,手机还可通过第三方提供的地图接口计算预计路程时间。
其中,手机可通过本设备的移动速度(用户当前的移动速度)判断用户是否乘坐交通工具,从而判断用户是否在前往机场的路上。一般的,人步行的速度为3km/h-5km/h,此时手机的移动速度也就为3km/h-5km/h。当用户乘坐交通工具时,人的移动速度可大幅度提升,例如20km/h、30km/h甚至更快。此时手机的移动速度也就大幅度提升。因此,通过移动速度,手机可按断用户是否乘坐交通工具,是否前往机场。
这样,用户可通过上述提示信息了解到此时应该前往机场了,以免误机。
特别的,此时,手机还可将显示的出发地(“深圳宝安T3”)重点突出,例如将“深圳宝安T3”的字样设置为红色等等。这样,用户可以更直观清晰的获取到出发地,以便于用户前往该出发地。
区域222还可显示有登机牌按钮251。当手机可检测到作用于登机牌按钮251的用户操作,响应于该操作,手机可显示图2L所示的电子登机牌。若用户的航班所属的航空公司不提供电子登机牌,区域222可不显示登机牌按钮251,参考图2G中右侧示出的航班卡片。
当确认用户已经在前往机场的路上时,区域222可实施的更新上述预计路程时间,参考图2H。
手机可按预设时间周期性地获取本设备的位置数据(即用户的位置数据),然后,手机可根据新的本设备的位置数据、机场位置数据以及本设备当前的移动速度(当前的移动速度)计算新的预计路程时间。然后,手机可在区域222中显示新的预计路程时间。例如,图2H示出的“预计20分钟到达”。
区域222还可显示登机牌按钮251。手机可检测到作用于登机牌按钮251的用户操作,响应于该操作,手机可显示用户的电子登机牌。同样的,若用户的航班所属的航空公司不提供电子登机牌,区域222可不显示登机牌按钮251,参考图2H中右侧示出的航班卡片。
若在出发前往机场时,用户未办理值机手续,此时,上述登机牌按钮251可替换成前述介绍的值机按钮231。响应于作用在值机按钮231的用户操作,手机可显示办理值机的用户界面。用户可通过该界面办理线上值机。
当确认用户进入机场地理范围,且已经办理值机手续时,手机可显示图2I所示的用户界面28。用户界面20显示有卡片215。同样的,卡片215可包括区域221(左侧区域)、区域222(右侧区域)。
此时,区域221可显示航班的基本信息。这里,航班的基本信息包括起飞时间(“8:00”)、抵达时间(“11:00”)、目的地(“北京首都T3”)和值机柜台(“G07-G11”)。区域222可显示登机口(“K50”)。
区域222还可包括登机牌按钮251。当用户想获取更多关于该航班的信息时,用户可以点击该按钮。响应于用户的点击操作,手机可展示该航班的电子登机牌。从而,用户可以获取更多的信息。
此时,若检测到登机口变更,手机可更新卡片215中显示的登机口(“K50”)。例如,当登机口更换为“K52”时,手机可将原来显示的“K50”变更为“K52”。特别的,上述变更后显示的登机口可被设置为不同的颜色,例如红色等,从而与其他信息行程显著区分。这样,用户可以更加直观清晰的获取到哪些内容发生了变更。
可选的,区域221中显示的内容,例如起飞时间(“8:00”)、抵达时间(“11:00”)、目的地(“北京首都T3”)等,可按预设的形式进行调整,以达到强调、区分的目的。上述预设的形式包括:预设的颜色、字体、字体粗细等等。例如,在显示起飞时间“8:00”时,采用红色字体显示,从而达到进一步提醒用户的目的。
同样的,若用户的航班所属的航空公司不提供电子登机牌或者不允许在此卡片进行显示(例如,仅允许在官网进行获取),区域222可不显示登机牌按钮251。可选的,作为替代,区域222可显示飞行图标252,此时飞行图标252可指示当前航班不支持显示电子登机牌。
通过检测系统时间和位置数据,手机可确认用户是否抵达目的地机场。具体的,手机可按预设时间周期性的获取的当前的系统时间和位置数据。当上述系统时间在抵达时间之 后,且上述位置数据指示手机在目的地机场地理范围内时,手机可确认用户已抵达目的地机场。此时,手机可显示图2J所示的用户界面。
如图2J所示,卡片215可包括区域221(左侧区域)、区域222(右侧区域)。此时,区域221可显示用户航班的基本信息,包括起飞时间(“8:00”)、抵达时间(“11:00”)、出发地(“深圳宝安T3”)和目的地(“北京首都T3”)。这里,卡片215可强化地理位置信息(包括出发地和目的地)。强化地理位置信息是指:将地理位置信息的字体加粗、增大、或使用特定颜色的字体,从而使用户可以更加清晰直观的看到地理位置信息。这是因为当用户抵达目的机场后会更关注自己所处的位置。
区域222可显示用户托运的行李所在行李转盘。例如图3C中卡片215所示的“行李转盘19”。这样,当用户看到上述信息后,用户可前往编号为19的行李转盘,拿取自己的行李。
然后,当检测到用户离开目的地机场时,手机可关闭卡片215。在其他具体的实施方式中,手机还可获取系统时间。当上述系统时间超过抵达时间后的预设时间时,且用户未处于目的地机场的地理范围内,手机可确认卡片215指示的行程已结束。此时,手机可关闭卡片215。
图2A-图2J示出了在显示航班卡片的过程中,依据不同场景,手机对航班信息进行拆分显示的一系列用户界面。实施上述方法,手机可以根据用户所处的情境,显示该情境下用户最关心的信息。这样,用户既可以通过该航班卡片获取尽可能多的信息,又可避免信息堆砌带来的不便。
下面将介绍图2A-图2J中提及的办理值机选座的用户界面。当检测到作用于值机按钮的用户操作时,手机可显示办理值机选座的用户界面。上述操作例如是:图2C示出的作用于值机按钮231的用户操作、图2E示出的作用于值机按钮231的用户操作、图2F示出的作用于值机按钮231的用户操作等等。
图2K示例性示出了手机显示办理值机选座的用户界面。
如图2K所示,该页面可包括区域261。区域261显示有多个座位图标。其中,座位图标可通过不同颜色区分该座位的状态。例如,参考图标262,白色图标可表示该座位空闲,即未被其他乘客选定。参考图标263,浅灰色图标可表该座位已占用,即被其他乘客选定。因此,白色图标对应的座位是用户可选的,浅灰色图标对应的座位是用户不可选的。
当检测到作用于白色图标的用户操作后,响应于该操作,手机可将该白色图标变更为深灰色,参考图标264。深灰色图标可表示该图标对应的座位为用户选择的座位。这时,手机可显示乘客标签265和按钮266。乘客标签265可表示用户的身份信息。按钮266可用于锁定座位。当检测到作用于按钮266的用户操作时,响应于该操作,手机可显示将该座位的数据发送给航空公司的服务器。在航空公司的服务器确认用户选择的座位号后,手机可显示选择成功的反馈。此时,图标264对应的座位为用户(“Lisa”)选定的座位。
下面将介绍图2A-图2J中提及的显示电子登机牌的用户界面。当检测到作用于电子登机牌按钮的用户操作时,手机可显示电子登机牌。上述操作例如是:图2D示出的作用于电子登机牌按钮241的用户操作、图2H示出的作用于电子登机牌按钮251的用户操作、图2I示出的作用于电子登机牌按钮251的用户操作等等。
图2L示例性示出了手机显示电子登机牌的用户界面。
如图2L所示,该界面包括登机牌271、按钮272。登机牌271可用于展示登机所需的信息。按钮272可用于关闭登机牌271。
登机牌271显示有出发地(“深圳宝安T3”)、目的地(“北京首都T3”)、用户的姓名(“Lisa”)、舱位等级(“K”)、座位号(“23D”)、登机时间(“8:00”)、登机口(“待定”)、登机序号(“67”)、健康码等信息。
登机牌271还可包括按钮273和控件274。当检测作用于按钮273的用户操作,响应于该操作,手机可将登机牌271归档到钱包应用程序,即用户可在钱包中打开电子登机牌。控件274可用于分享登机牌。当检测到作用于控件274的用户操作,响应于该操作,手机可显示多个应用程序的图标。上述多个应用程序的图标可表示接收分享的对象。
在图2A-图2J所示的航班卡片中,除了检测到作用于特定按钮或控件上的用户操作之外,手机还可检测到作用于该卡片的其他区域的用户操作。上述特定按钮或控件包括:图2C所示的值机按钮231、图2D所示的查看登机牌的按钮241等等。卡片中除上述特定按钮或控件之外的区域可称为其他区域。
当检测到作用于上述其他区域的用户操作时,响应于该操作,手机可显示航班详情页。图2M示例性示出了手机显示航班详情页的用户界面。该界面显示的航班信息可参考图2A-图2J的介绍,这里不再赘述。
其中,该界面区分了计划起飞时间和实际起飞时间、计划抵达时间和预计到达时间。计划起飞时间和计划抵达时间是在安排该航班时确定的。由于天气等其他因素出现的航班延误可导致实际起飞时间发生变化,相应地,预计到达时间也会变化。
图2A-图2J介绍的不同情境下的卡片均为航班按计划正常进行的时展示的卡片。当用户的航班出现延误、取消等情况时,卡片可显示延误或取消的标签。
图2N示出了在发生延误的情况下,图2A-图2J所示的航班卡片的不同样子。如图2N所示,当用户的航班发生延误时,手机可在当前显示的卡片上添加延误标签。
图2O示出了在取消的情况下,图2A-图2J所示的航班卡片的不同样子。如图2M所示,当用户的航班被取消的时候,手机可在卡片原来显示的内容之上显示“航班取消”的标记。
当用户的航班的出发时间和抵达时间不在同一天时,手机可在航班卡片显示的抵达时间后显示“+1”的标记,表示抵达时间为第二天的时刻。图2P示出了显示“+1”标记的航班卡片。
参考图2Q,当用户的航班可能会延误时(例如,前序航班没有准时到达或者雷雨天气 等原因导致的延误),航班卡片可显示预警标签。当用户的航班因机器故障或其他故障无法飞行时,航班卡片还可显示故障标签;其他场景,也可以显示如失事标签等。
不限于上述图2A-图2Q介绍的卡片,本申请实施例提供的基于情境的通知显示方法还可应用到横幅通知、下拉通知、锁屏通知、负一屏中。
横幅通知是指:手机处于运行状态(解锁后显示桌面或其他应用程序界面的状态)时,在屏幕上方显示通知的方式。通常,横幅通知持续的时间比较短。下拉通知是指:在下拉界面显示的通知。这里,下拉界面是手机响应于下滑操作显示的界面。锁屏通知是指:手机在锁屏界面中显示通知的方式。用户未及时处理的横幅通知可以被归档到下拉通知、锁屏通知中。
负一屏是指手机最左边的页面。负一屏可显示用户常用的应用程序或该程序提供的快捷功能。这里应用程序提供的快捷功能例如音乐应用程序提供的播放/暂停/切歌功能。在本申请实施例中,负一屏也可显示航班卡片。
可以理解的,上述横幅通知、下拉通知、锁屏通知、负一屏卡片为可选的。即在一个情境转换到另一个情境的过程中,图2A-图2Q所示的卡片中增加的内容,还可在上述横幅通知、下拉通知、锁屏通知、负一屏卡片中的一个或多个中显示出来。
例如,在从显示值机预告的情境中转换到显示办理值机手续提醒的情境的过程中(即卡片由图2B所示的状态更新为图2C所示的状态),手机还可显示横幅通知。该横幅通知中包括图2C所示的区域222中显示的内容。当手机处于锁屏状态时,手机可显示锁屏通知。同样的,该锁屏通知中包括图2C所示的区域222中显示的内容。
下面将介绍在图2B至图2C所示的情境转换的过程中,手机显示上述其他形式的通知用户界面。图2A-图2Q示出的其他情境的转换可参考下面的介绍,本申请实施例将不再赘述。
图3A示出了手机以横幅通知的形式显示通知内容的用户界面31。
当检测到用户的航班开始值机之后,手机可收到提醒用户值机的通知。然后,手机可显示如图3A所示的用户界面31。用户界面31可包括通知窗311。通知窗311示出了一条横幅通知。通知窗311可包括控件312和一些提示消息,例如指示该通知为航班通知的提示、指示该航班为哪一航班的航班编号信息等等。
控件312可提示用户办理值机手续。手机可检测到作用于控件312的用户操作,响应于该操作,手机可显示办理值机手续的页面。
手机可设定一个预设时间,当预设时间结束后,手机可关闭通知窗311。
图3B示出了手机在锁屏界面显示通知的用户界面32。
同样的,当检测到用户的航班开始值机之后,手机可收到提醒用户值机的通知。若此时手机处于灭屏状态,则手机可点亮屏幕,显示锁屏界面。然后,手机可在锁屏界面显示上述通知,参考图3B所示的用户界面32。
如图3B所示,用户界面32可包括通知窗321。通知窗321可同于展示航班开始值机的通知。通知窗321中展示的具体内容可参考图3A的介绍,这里不再赘述。通知窗321示出的一条通知可称为锁屏通知。
特别的,当用户进入机场之后,锁屏界面显示的通知可包括:获取电子登机牌。例如,将通知窗321中显示“点击进行值机选座”替换成“点击获取电子登机牌”。当检测到作用于“点击获取电子登机牌”的用户操作时,响应于该操作,手机可显示图2L所示的展示电子登机牌的用户界面。
在显示图2L所示的展示电子登机牌的用户界面之前,手机可以不进行验证用户的身份的步骤。例如,手机可以不显示密码键盘、不显示指纹解锁的用户界面、不采集用户的人脸特征等。这样,用户可以更快捷地获取到电子登机牌。
图3C、图3D示出了手机在下拉界面显示通知的一组用户界面。
图3C示出了手机上用于展示已安装应用程序的主页面(home page)。在手机显示主页面时,手机可检测到作用于该主页面的下滑操作,参考图3C所示的手势操作。响应于下滑操作,手机可显示图3D所示的下拉界面。
如图3D所示,下拉界面可包括通知窗331。通知窗331可用于展示航班开始值机的通知(参考图3A、图3B的介绍,这里不再赘述)。通知窗331示出的一条通知可称为下拉通知。
下拉界面还可包括控件332。控件332可用户清理下拉界面的通知。手机可检测到作用于控件332的用户操作,响应于该操作,手机可清除下拉界面的所有通知。
可以理解的,当手机显示横幅通知时,若手机没检测到作用于该通知的用户操作,例如点击操作,此时,手机可将该通知归入锁屏通知和下拉通知中。具体的,对于用户没有及时处理的横幅通知,当手机显示锁屏界面时,手机可在该锁屏界面中显示上述横幅通知包含的内容,即显示一条锁屏通知。当手机显示下拉界面时,手机可在该下拉界面中显示上述横幅通知包含的内容,即显示一条下拉通知。
例如图3A所示的横幅通知311。当在预设时间内,手机未检测到作用于横幅通知311的用户操作时,手机可关闭上述通知。然后,当手机显示图3B所示的锁屏界面时,手机可在该界面中显示上述横幅通知包含的值机提醒,参考锁屏通知321。当手机显示图3D所示的下拉界面时,手机可在该界面中显示上述横幅通知包含的值机提醒,参考下拉通知331。
图3E示出了手机上展示负一屏的用户界面35。如图3E所示,负一屏可显示有多个卡片,包括航班卡片341、日程卡片342、天气卡片343、音乐卡片344、图库卡片345等等。当检测到用户的航班开始值机时,航班卡片341可显示开放值机的提示消息,例如“以开放值机”。
负一屏的航班卡片与桌面的航班卡片是可选的,即手机可以同时在负一屏和桌面显示航班卡片,可以在负一屏或桌面显示该卡片。负一屏中显示的航班卡片的方法与图2A-图2J所示的在桌面显示航班卡片的方法一致,这里不再赘述。
当用户所处的情境为登机阶段时(也就是登机情境),航班卡片可呈现图2I所示的样子,显示登机阶段用户关注的信息,即登机口、座位号等信息。
这里,登机阶段是指用户抵达出发地机场且临近起飞时间的情境。是否临近起飞时间 可以通过确认当前时间是否在预设的临近时间段内来判断。例如,若起飞时间为8:00,手机可确定7:30-8:00为临近起飞时间。若当前时间在上述临近起飞时间内,则手机可确认临近起飞时间。
此时,在显示图2I所示的卡片的同时,手机还可显示悬浮窗。具体的,在确定用户处于登机情境后,手机可检测当前是否有运行沉浸式应用程序。可选的,上述沉浸式应用程序是具备全屏呈现内容能力的应用程序。在体验沉浸式应用程序的过程中,用户通常不容易接收到系统通知,特别是弱通知。沉浸式应用程序可以为:视频类应用程序(例如
Figure PCTCN2022073332-appb-000002
Figure PCTCN2022073332-appb-000003
等)、游戏类应用程序(例如
Figure PCTCN2022073332-appb-000004
等)、音乐类应用程序或者通话类应用程序等,也可以是在某些应用程序中的小程序(例如
Figure PCTCN2022073332-appb-000005
中的小程序,小程序可以为视频类应用程序、游戏类应用程序或者音乐类应用程序)。
当确定手机正在运行沉浸式应用程序时,手机可在当前正在显示的该应用程序的用户界面的图层上显示悬浮窗。该悬浮窗可显示有供用户随时打开电子登机牌的控件。在用户使用上述沉浸式应用程序的过程中,上述悬浮窗可一直置于该应用程序当前正在显示的图层之上,即置于顶层图层,不会被覆盖。上述悬浮窗是可移动的。响应于用户作用在该悬浮窗上的拖动操作,手机可在用户指定的区域显示该悬浮窗,从而避免遮挡,影响用户体验。可选的,上述悬浮窗还可以是固定的。
图3F-图3H示出了在运行某一沉浸式应用程序的情况下,手机在该应用程序提供的用户界面显示悬浮窗的一组用户界面。
图3F示出了手机播放视频的用户界面36。用户界面36可包括悬浮窗351。悬浮窗351可用于显示电子登机牌。手机可检测到作用于悬浮窗351的用户操作,响应于该操作,手机可显示图3G的用户界面37。
在用户界面37中,悬浮窗351可展开成悬浮窗352所示的样子。悬浮窗352可包括控件353(“查看登机牌”)。当检测到作用于控件353的用户操作时,响应于该操作,手机可显示图2M所示的电子登机牌。上述操作例如是点击操作、滑动操作、语音控制等等,本申请实施例对此不做限制。
当显示悬浮窗352的时间正处于登机时间时,悬浮窗352还可显示控件354。控件354可用于提示用户前往登机口准备登机。具体的,控件354可采用轮播的方式,在预设的时间内交换显示登机提示(“开始登机”)和登机口(“K50”)信息。
例如,手机可设定预设时间为2秒。在显示悬浮窗352后的第一个2秒时间间隔内,手机可显示“开始登机”和控件353。当第一个2秒结束后,上述“开始登机”可被替换为“K50登机口”,如图3H所示。然后,手机可重复、交替显示图3G和图3H所示的悬浮窗352。
在抵达机场到飞机起飞这一时间段内,当未检测到手机运行沉浸式应用程序时,手机可通过航班卡片(参考图2I)、横幅通知等方式提醒用户准备登机。当检测到手机正在运行沉浸式应用程序时,手机即可显示上述悬浮窗。
这样,当用户在使用时手机观看视频或玩游戏时,手机还可通过悬浮窗提醒用户准备登机。同时,悬浮窗较小,用户可自由调整放置悬浮窗的位置,因此悬浮窗不会对用户产生较大的干扰。
图3A-图3G示出了在不同场景下,手机显示通知的不同形式。可以理解的,上述介绍的不同通知形式不是互斥的,即手机可以同时通过多种形式显示通知。这样,无论用户出于何种场景下,用户都可以及时看到上述通知。进一步的,用户可及时地做出响应,避免延误出行计划。
下面,本申请实施例将结合图4A介绍实现基于情境的通知显示方法的系统10。
如图4A所示,系统10可包括电子设备100、云200。其中,在本申请实施例中,电子设备100为上述介绍的手机。
云200存储有该卡片需要展示的所有数据。云200中存储的数据可通过推送(push)机制发送到电子设备100。电子设备通过push机制接收的通知可称为推送通知(push notification,push通知)。在其他实施方式中,电子设备100可以向云200发送查询请求,进而从云200获取该卡片展示所需要的数据。例如,在图2A-图2J、图3A-图3F所示的卡片中,卡片显示的数据可从云200获取。
云200包括两个接口(Application Programming Interface,API):推送(push)接口和响应接口。云200可调用push接口向电子设备100发送push通知。响应于电子设备100获取数据的请求,云200可调用响应接口,向电子设备100发送数据。
电子设备100包括通知显示应用、通知接收模块。
通知显示应用是安装在电子设备100上的一个系统级应用。该应用包括数据获取模块、云工具包(云SDK)、决策模块、显示模块。
数据获取模块可用于获取电子设备100的状态数据。上述状态数据包括:时间数据、位置数据、短信、蜂窝信号。
时间数据是指电子设备100获取当前时间得到的数据。电子设备100可通过读系统时间来获取当前时间。在其他实施方式中,当前时间还可以通过网络对时完成,即通过网络获取当前时间。在图2A-图2J所示的航班卡片中,电子设备100判断是否到达值机时间、是否临近起飞时间等均可通过上述时间数据完成。
位置数据是指电子设备100获取的指示该设备所处地理位置的数据。电子设备100可通过全球定位系统(Global Positioning System,GPS)、电子设备100连接的无线保真(Wireless Fidelity,Wi-Fi)网络、电子设备100使用的蜂窝信号等方法获取。本申请实施例对于获取位置数据的方法不做限制。在图2A-图2J所示的航班卡片中,电子设备100判断是否用户是否达到出发地机场、目的地机场等可通过上述位置数据完成。
短信是指电子设备100接收到的短信信息。电子设备100可以检测自身是否有接收到新的短信信息。若检测到有新接收到的短信,电子设备100可识别该短信的来源。若该短信属于特定来源的短信,则电子设备100可读取该短信的内容。例如,电子设备100获取用户的航班行程即可通过出票短信获取。具体的,后续实施例将会详细介绍通过出票短信获取用户的航班的方法,这里先不展开。
电子设备100还可检测本设备是否使用蜂窝网络。电子设备100检测本设备是否使用蜂窝网络可通过检测蜂窝数据(celluar data)完成。在检测用户是否登机的过程中、检 测用户是否抵达目的地的过程中,电子设备100可通过蜂窝数据进行判断。具体的,若确认一段时间内无蜂窝数据产生,则电子设备100可确认用户已经登机。上述一段时间是预设的时间。若在确认用户登机之后,检测到有蜂窝数据产生,则电子设备100可确认用户已经抵达目的地机场。
当然,上述通过蜂窝数据确认用户所处情境的方法并不完善。参考图2A-图2J的介绍,在检测用户是否登机的过程中、检测用户是否抵达目的地的过程中,电子设备100还会获取时间数据、位置数据等。
在数据获取模块获取到上述状态信息后,决策模块可根据上述状态信息判断用户所处的场景。然后,决策模块可根据识别到的场景指示显示模块更新显示的内容。
例如,当上述时间数据指示的时间为开始值机的时间时,决策模块可确认用户进入办理值机手续的情境中。此时,决策模块可指示云SDK向云200获取值机数据。当上述时间数据指示的时间临近起飞时间时,例如起飞前20分钟,且位置数据指示用户在机场地理范围内时,决策模块可确认用户进入登机准备阶段。此时,决策模块可指示云SDK向云200获取登机口、座位号等数据。
云SDK是云200为电子设备100提供的用于访问云200的工具包,包括多个数据读写接口。电子设备100可通过云SDK提供的读接口,向云200请求卡片展示过程中需要的数据,例如卡片215中显示的航班的日期、出发地、目的地等数据。电子设备100可通过云SDK提供的写接口,向云200写入发生变更的数据,例如在完成值机后,电子设备100可通过云SDK提供的写接口向云200写入座位号。
云SDK从云200获取的数据可被发送到显示模块。显示模块可将上述数据显示在航班卡片(卡片215)中。
例如,在检测到开始值机后,显示模块可显示图2C所示的卡片215。卡片215可显示开始值机的提醒消息,例如“已开始值机”。同时,显示模块可显示云SDK提供的办理值机手续的控件(值机按钮231)。响应于作用在上述控件的用户操作,电子设备100可显示图2K所示的办理值机手续的用户界面。
后续实施例将详细介绍决策模块根据数据获取模块获取的状态数据更新卡片显示内容的详细流程,这里先不展开。
电子设备100还包括通知接收模块。通知接收模块可用于接收云200主动向电子设备100发送的通知。在前述实施例介绍的方法中,电子设备100可通过检测出票短信,获取用户的航班信息。在本实施例中,电子设备100还可通过通知接收模块接收云200的推送通知(push notification,push通知)生成航班卡片。该push通知可包括用户的航班信息。
具体的,当用户通过第三方应用程序购买机票后,云200可生成一条该用户的航班记录。该记录包括乘客名称、乘客身份证、电话号码、订单时间、日期(航班出发的日期)、出发地、出发时间、目的地、抵达时间、航班号等等。
然后,云200可调用push接口向电子设备100发送push通知。该push通知可包括乘客名称、日期、出发地、出发时间、目的地、抵达时间、航班号等信息。
电子设备100的通知接收模块可接收到上述push通知。然后,上述push通知可被进一步的发送的数据获取模块。在检测到数据获取模块接收到上述push通知后,决策模块可指示显示模块在航班卡片中显示上述push通知中包含的内容。
这也就是说,电子设备100从云200获取数据和服务的方式有两种:一是通过云SDK向云200发送获取数据或服务的请求;二是云200检测到存储的航班记录的数据变化,主动向电子设备100发送通知。
前者,电子设备100根据自己的需求从云200获取自身需要的数据或服务。例如,手机判断应该在卡片中展示用户的座位号时,手机可以向云200发送获取用户座位号的请求。响应于手机发送的请求,云200可向手机发送用户的座位号。然后,手机可显示用户的座位号。
后者,电子设备100可以通过云200推送的通知,及时了解到用户的行程的变化。例如,当用户改签航班后,云200可更新云200中记录的用户的行程计划,即将改签后的日期、航班号等信息替换原来行程中的日期、航班号等信息。然后,云200可将更新后的行程信息发送给手机。这样,手机可以及时地更新卡片展示的信息,从而可以更加及时地提醒用户,避免用户错过行程。
一般的,云200通常为第三方提供的。例如,在电子设备100展示航班卡片的过程中,航班卡片中涉及的信息通常需要航空公司或者集合众多航空公司航班信息的第三方(例如
Figure PCTCN2022073332-appb-000006
)提供。考虑到权限问题,以及对电子设备100的管理问题,电子设备100单独向第三方提供的云获取数据或服务的方式不是优选的。
因此,在另一种实施方式中,系统10还可表示为图4B所示的样子。如图4B所示,系统10还可包括云300。其中,云300是为电子设备100构建的一个数据集合,即云300中存储了电子设备100所需的全部数据。可以理解的,云300中存储的数据是从云200获取的。
云200可检测到存储的数据的变更,然后,云200可将变更后的数据以push通知的方式发送到云300。进一步的,云300可将变更后的数据发送的电子设备100。例如,在改签过程中,云200可检测到用户的航班号、出发时间等数据发生变更。然后,云200可将变更后的数据以push通知的方式发送到云300。在收到上述变更后的数据后,云300可修改自身存储的航班号、出发时间等数据。然后,云300可将变更后的数据发送的电子设备100。这样,电子设备100可显示改签后航班号、出发时间等信息。
这样,电子设备100就可以随时从云300获取数据,从而避免直接接触第三方云(云200)。同时,云300还可对电子设备100的数据进行集中管理。
下面将结合图5A-图5E所示的一组时序图,说明电子设备100根据用户所处的情境变更拆分显示通知的过程。
首先,图5A示出了电子设备100订票情境中的航班卡片的流程图。
S501:云200生成出票短信。
用户可通过航空公司的官方网站、
Figure PCTCN2022073332-appb-000007
等第三方应用程序购买机票。 在完成购买操作之后,云200可生成一条用户的航班记录。该记录包括乘客名称、乘客身份证、电话号码、订单时间、日期(航班出发的日期)、出发地、出发时间、目的地、抵达时间、航班号等等。
然后,电子设备100可收到云200发送的出票短信。具体的,云200可从上述航班记录中获取该用户的电话号码。云200可设定上述电话号码为短信的接收方。
同时,云200可从上述航班记录中提取出票短信需要数据。一般的,出票短信需要的数据包括:乘客名称、航班号、出发地和出发时间、目的地和抵达时间等。当然,出票信息还可包括更多的信息,这里不做限制。
S502:云200向电子设备100发送出票短信。
基于上述乘客名称、航班号、出发地和出发时间等信息,云200可生成一条出票短信。然后,云200可将上述出票短信发送的上述电话号码对应的电子设备。在本申请实施例中,用户为电子设备100的用户,用户的电话号码对应电子设备100。
因此,电子设备100可收到云200发送的出票短信,即用户可收到上述出票短信。
S503:电子设备100识别短信来源,并提取出票短信的内容。
卡片应用程序的数据获取模块可感知到电子设备100收到的上述出票短信,进一步的,数据获取模块可从上述出票短信中提取乘客名称、航班号、出发地和出发时间、目的地和抵达时间等数据。
具体的,电子设备100可通过短信的来源确认该短信是否为航空公司发出短信。在确认为航空公司发出的短信后,电子设备100可解析短信的内容,查看是否为出票短信。如果解析短信后无法获得上述乘客名称、航班号等数据,则电子设备100可确认上述短信不是出票短信。反之,电子设备100可确认上述短信是出票短信,并且电子设备100可将上述乘客名称、航班号等数据显示在航班卡片中。
例如,电子设备100可收到一条来自“95583”(中国国际航空公司)的短信。该短信例如是“尊敬的会员:您好,您预定的中国国际航空公司CA1314深圳-北京、起飞2021-01-09 8:00深圳宝安T3、到达2021-01-09 11:20北京首都T3、乘机人Lisa。请您携带有效证件提前两个小时到机场以免出现误机,祝您旅途愉快!”
通过发送方的号码“95583”,电子设备100可确认上述短信为中国国际航空公司发送的短信。然后,电子设备100可解析上述短信的内容。以上述短信示例性示出的内容为例,电子设备100可获取:航班编号(“CA1314”)、起飞时间(“2021-01-09 8:00”)、出发地(“深圳宝安T3”)、抵达时间(“2021-01-09 11:20”)、目的地(“北京首都T3”)等数据。
此外,短信还可设置有表示短信类型的标签,例如快递短信、广告短息、出票短信等等。因此,电子设备100还可通过上述标签来区分航空公司发出的出票短信。在通过标签确认该短信为出票短信后,电子设备100可提取该出票短信的内容,参考前述介绍,这里不再赘述。
S504:电子设备100生成并展示航班卡片。
在从出票短信中获取到上述数据(航班编号、起飞时间、出发地等等)后,电子设备100可生成一个航班卡片。该卡片可包括上述数据。然后,电子设备100可显示上述航空卡片,参考图2A所示的卡片215。在图2A所示的卡片中,卡片显示的出票信息包括: “CA1314、1月9日、周一、深圳宝安T3、8:00、北京首都T3、11:20”图2A所示的卡片可称为出票阶段的航班卡片。
这样,电子设备100可通过监测本设备的短信,确认用户是否安排了航班出行。并且,电子设备100还可通过解析出票短信,提取用户的航班数据,进而生成航班卡片。这样,用户可以随时通过航班卡片获取自己预定的航班的信息,从而避免耽误行程。
在其他实施例中,电子设备100还可通过接收push通知的方式获取上述数据(航班编号、起飞时间、出发地等)。
在该实施方式中,在用户完成购买机票后,云200生成一条push通知。该push通知包含的具体内容可参考上述出票短信,这里不再赘述。
在生成push通知后,云200可调用push接口,向电子设备100发送push通知。电子设备100可接收到该通知。具体的,电子设备100具备通知接收模块。该模块可用于接收push通知。因此,该模块可接收上述云200发送的push通知。
在接收到云200发送的push通知,电子设备100可以解析上述通知,然后获得该通知包含的航班信息。从而,电子设备100可从该通知中提取出用户的航班数据,包括航班编号、起飞时间、出发地等等。
具体的,在通知接收模块接收到上述push通知后,数据获取模块可从通知接收模块获取上述push通知。然后,云SDK可对上述push通知进行解析,然后得到用户的航班数据。进一步的,电子设备100可根据上述航班数据,生成航班卡片,并显示该卡片。上述卡片可参考图2A所示的卡片215。
可以理解的,在首次生成航班卡片的过程,手机可显示认证页面。认证页面可显示多个文本输入框。用户可通过上述输入框填写自己的姓名、身份证号码、手机号等身份信息。在接收到上述信息后,手机可利用上述身份信息,向云200请求与上述身份对应的用户的行程安排(即航班)。手机可保存上述身份信息,以便于后续向云200获取用户的航班数据。这样,用户就不用重复向手机输入自己的身份信息了。
采用push通知的方法,电子设备100可以避免识别和提取短信。这样,电子设备100可更加及时方便的获取用户的航班数据。
接下来将结合图5B介绍用户办理值机手续后,电子设备100显示值机/选座情境中的航班卡片的流程图。
S511:在开始值机前,电子设备100可显示预告卡片。
在航班开始值机之前的一段预设时间内,电子设备100可将出票阶段显示的航班卡片替换为预告卡片。预告卡片中包括值机预告。值机预告可提示用户该航班预计开始值机的时间。
图2B所示的卡片215可称为预告卡片。此时,区域222可显示“预计开放值机,今天 18:00”。当看到上述提示后,用户可知道自己可以在今天18:00之后办理值机手续。
S512:云200检测到用户的航班开始值机,生成push通知。
云200可检测到当用户的航班开始值机的事件。具体的,云200可获取当前时间。当确定当前时间与用户的航班的值机时间一致时,云200确定用户的航班的开始值机。然后,云200可调用push接口,向电子设备100发送开始值机的push通知。
S513:电子设备100生成并显示包含开放值机提醒的航班卡片。
电子设备100的通知接收模块可接收到上述通知。进一步的,上述通知可被发送到数据获取模块。数据获取模块可将上述通知上报给决策模块。此时,决策模块可知道用户的航班开始值机了。然后,决策模块可指示显示模块显示包含值机提醒的航班卡片。
上述值机提示例如是“已开放值机”。如图2C所示,卡片215的区域222可显示“已开放值机”。当看到上述提示信息后,用户可知道自己可以办理值机手续了。
同时,上述包含值机提醒的航班卡片还可包括值机按钮。值机按钮可用于办理值机手续。具体的,当检测到作用于值机按钮的用户操作时,电子设备100可显示值机选座的用户界面。如图2C所示,卡片215的区域222还可包括值机按钮231。当检测到作用于值机按钮231的用户操作时,电子设备100可显示值机选座的用户界面。
在另一种实施方式中,确认用户的航班是否开始值机还可由电子设备100完成。具体的,电子设备100可获取时间数据。这里,时间数据包括该航班开始值机的时间和当前时间。当电子设备100获得的当前时间为开始值机的时间时,或当前时间在开始值机的时间之后时,电子设备100可确认检测到用户的航班开始值机。此时,电子设备100可生成并显示包含值机提醒的航班卡片,参考图2C所示的卡片215。
S514:用户通过电子设备100办理值机手续。
在显示包含值机提醒的航班卡片后,电子设备100可检测是否有作用于值机按钮的用户操作。当检测到作用于值机按钮的用户操作后,响应于该操作,电子设备100可显示值机选座的用户界面。
具体的,在检测到作用于值机按钮的用户操作后,电子设备100可通过云SDK提供读接口,从向云200发送办理值机手续的请求。响应于该请求,云200可将该航班的座位分布数据发送给电子设备100。上述座位分布数据包括每个座位的空间位置,还包括该座位是否可被选择。
在收到上述座位分布数据后,电子设备100可显示值机选座的用户界面。该用户界面显示有该航班的全部座位。其中,一些座位是不可选的(已被他人选定),一些座位是可选的(未被他人选定)。用户可在该界面显示的座位中,选定自己的座位。
当用户确认自己选定的座位后,电子设备100可将用户选定座位数据,即座位号,发送到云200。
当云200接收到电子设备100发送的座位数据后,云200可将上述座位数据存储到航班记录中。当然,在此之前,云200还需检测用户的座位数据是否符合要求。例如,当用户选择的座位时可获取的时,用户的座位数据是符合要求的,反之,用户的座位数据不符 合要求的,即存在冲突。
在云200确定用户的座位数据是符合要求的后,云200可向电子设备100发送确认信号,即值机成功。这时,用户的选定的座位即本锁定为该用户的座位。
S515:电子设备100更新卡片中的内容,显示完成值机后的航班卡片。
在收到云200发送的值机成功的确认信号后,电子设备100可显示完成值机后的航班卡片。完成值机后的航班卡片处理包括航班的基本信息(日期、出发时间、出发地、抵达时间、目的地)外,还可包括用户的座位号。
具体的,在收到云200发送的值机成功的确认信号后,通知显示应用的决策模块可确认用户已完成值机操作。此时,决策模块可指示显示模块显示完成值机后的航班卡片。
显示模块可从云SDK获取用户选定的座位号。然后,显示模块可将卡片右侧显示的开始值机的提示消息更换为上述座位号。
参考图2D,卡片215的左侧区域(区域221)可显示航班的基本信息。卡片215的右侧区域(区域222)可显示用户已办理值机手续的提示消息和用户在办理值机手续时选定的座位号。上述提示消息例如是“已值机选座”。上述座位号例如是图2D所示的“23D”。
图5C示出了电子设备100在登机阶段变更航班卡片的流程图。
S521:电子设备100检测到用户处于登机情境。
在确认用户已经完成值机操作之后,电子设备100可检测用户处于登机情境。登机情境是指用户抵达出发地机场且临近起飞时间的情境。具体的,电子设备100可通过状态信息判断用户是否处于登机情境。这里的状态信息包括:时间数据、位置数据。
其中,时间数据包括起飞时间和当前时间。当前时间可通过获取电子设备100的系统时间得到。可选的,电子设备100可通过网络对时获取当前时间。位置数据可通过GPS、电子设备100连接的Wi-Fi、电子设备100使用的蜂窝信号等方法获取。
电子设备100可设置一个预设时间。若当前时间在起飞时间前的预设时间内时,电子设备100可确认当前时间临近起飞时间。例如,用户的航班的起飞时间为“8:00”,电子设备100可设定起飞时间之前的20分钟,即“7:40-8:00”,为临近起飞时间。若当前时间在“7:40-8:00”之间时,电子设备100可确认用户的航班即将起飞。
同时,当电子设备100获得位置数据指示电子设备100在机场地理范围内时,即用户已抵达机场,电子设备100可确认用户即将准备登机。
S522:电子设备100向云200获取登机卡片所需的数据。
在确认用户处于准备登机的阶段时,电子设备100可显示登机阶段的航班卡片(登机卡片)。登机卡片中显示的内容除了航班的基础信息外,还包括:登机口、座位号,参考图2I。
具体的,当确认用户处于准备登机的阶段后,电子设备100可向云200请求登机卡片所需的数据,包括航班的基础信息(航班编号、日期、起飞时间、抵达时间等等)和登机口、座位号等等。
响应于电子设备100发送的上述请求,云200可向电子设备100发送上述登机卡片所 需的数据。
S523:电子设备100生成并展示登机卡片。
当接收到云200发送的登机卡片所需的数据后,电子设备100可生成登机卡片。然后,显示模块可在电子设备100的屏幕上显示上述登机卡片,参考图2I所示的用户界面。
这时,当看到该航班卡片时,用户可以快速的了解到登机口、座位号等信息,进而用户可以快速的完成登机,避免找错登机口、座位。
S524:电子设备100展示电子登机牌。
可选的,登机卡片还可包括登机牌按钮。当检测到作用于上述按钮的用户操作,响应于上述操作,电子设备100可展示用户的电子登机牌。
具体的,当检测到作用于上述按钮的用户操作,响应于上述操作,电子设备100可通过云SDK提供的读接口,向云200发送获取电子登机牌所需的数据的请求。电子登机牌所需的数据包括:乘客姓名、航班号、日期、目的地、舱位、座位号、登机口以及健康码等等。
响应于上述请求,云200可从用户的航班记录中提取出上述数据。然后,云200可将上述数据发送到电子设备100。
电子设备100的云SDK可接收到上述数据。然后,决策模块可指示显示模块显示上述数据,即显示电子登机牌。
若用户进行改签、退票等操作,则云200中存储的用户的航班记录会发生变更。此时,电子设备100的航班卡片中显示的内容也要相应地变更,以免误导用户。
图5D示出了电子设备100根据航班变更等操作刷新航班卡片的显示内容的流程图。
S531:云200检测到航班变更事务。
当用户的行程安排发生变化时,用户可办理退票或者改签等手续,从而变更行程。用户执行退票或改签操作时,响应于上述操作,云200中存储的用户的航班记录会相应地变更。具体的,当用户执行退票操作时,响应于该操作,云200可将用户的航班记录标记为无效。当用户执行改签操作时,响应于该操作,云200可将航班记录中存储的航班编号、起飞时间等信息变更为改签后的航班的信息。
例如,用户原来预定的航班为“上午8:00从深圳宝安T3出发,上午11:20抵达北京首都T3”。此时,云200中记录的用户的出发时间为“8:00”、抵达时间为“11:20”。当用户无法准时完成上述航班时,用户可将上述航班改签为“上午11:00从深圳宝安T3出发,下午13:20抵达北京首都T3”。此时,云200中记录的用户的出发时间可变更为“11:00”、抵达时间可变更为“13:20”。
S532:电子设备100收到变更通知。
当云200中存储的用户的航班记录发生变更后,云200可向电子设备100发送变更通知。云200可调用push接口,向电子设备100发送一个push通知(变更通知)。该push通知可指示电子设备100向云200请求用户的航班的数据。电子设备100的通知接收模块可收到上述push通知。
S533:根据变更通知,电子设备100向云200获取用户的航班的数据。
在接收到上述push通知后,电子设备100可解析上述通知。经过解析,电子设备100可确认该通知指示电子设备100向云200请求用户的航班的数据。
响应于该通知,电子设备100可向云200发送获取用户的航班数据的请求。上述用户的航班数据可包括:航班编号、起飞时间、出发地、抵达时间、目的地等等。响应于上述请求,云200可向电子设备100发送上述数据。
然后,电子设备100可获取到退票或改签后的航班数据。例如,在用户将航班改签为“上午11:00从深圳宝安T3出发,下午13:20抵达北京首都T3”后,电子设备100获取的起飞时间可变更为“11:00”、抵达时间可变更为“13:20”。
S534:电子设备100更新航班卡片展示的内容。
在收到上述变更后的数据后,电子设备100可生成新的航班卡片。进一步的,电子设备100可显示上述新的航班卡片。
在其他实施例中,云200发送的push通知也可包括变更后的数据。这样,经过解析,电子设备100可直接得到变更后的航班数据。然后,电子设备100可根据上述变更后的航班数据生成新的航班卡片,然后电子设备100可显示新的航班卡片。
当用户抵达目的地后,航班卡片可显示用户的行李信息,并在一段时间后关闭该卡片。图5E示出了电子设备100显示抵达目的地后的航班卡片的流程图。
S541:云200检测到航班抵达目的地。
云200可检测飞机是否已经降落目的地机场,即用户是否抵达目的地。具体的,当当前时间为航班的抵达时间时,云200确认用户乘坐的飞机已经降落目的地机场,即用户是否抵达目的地。
S542:电子设备100收到降落通知。
在检测到航班已经抵达目的地后,云200可生成一条push通知。该通知可称为降落通知。该通知可用于指示电子设备100向云200请求展示航班卡片所需的数据(航班数据)。这里,航班卡片所需的数据包括行李转盘信息。行李转盘信息用于指示存放用户的行李的位置。
然后,云200可调用push接口,向电子设备100发送上述push通知。
电子设备100可收到上述降落通知。具体的,电子设备100包括通知接收模块。该模块可用于接收push通知。因此,通知接收模块可接收到云200发送的降落通知。
S543:电子设备100向云200请求航班数据。
响应于上述降落通知,电子设备100可向云200发送请求。具体的,云SDK可提供电子设备100向云200读数据的读接口。通知显示应用可通过云SDK从云200读取该用户的航班记录。
响应于电子设备100的读操作,云200可向电子设备100发送用户的航班数据。这里,航班数据包括行李转盘信息。
S544:电子设备100显示抵达后的航班卡片。
在接收到云200发送的航班数据后,电子设备100可生成一张新的航班卡片,然后展 示该卡片。
具体的,在云SDK通过读接口获取到航班数据后,云SDK可根据上述航班数据生成一张新的航班卡片。此时该航班卡片包括行李转盘信息。然后,决策模块可指示显示模块将新的航班卡片显示在电子设备100的屏幕上。参考图2J,在检测到航班已经降落后,电子设备100可显示图2J所示的用户界面。此时,航班卡片215的区域222可显示行李转盘。
这样,用户在降落后打开手机便可看到自己的行李信息,然后,用户即可前往该行李转盘指示的地方取回自己的行李。这避免了用户查询行李信息的操作,节省了用户操作,提升了用户的使用体验。
S545:电子设备100关闭航班卡片。
在显示抵达后的航班卡片后,电子设备100可在预设的情况下关闭该航班卡片。电子设备100关闭航班卡片视为该航班卡片指示的行程完成。
具体的,电子设备100可设定一个预设时间。在该预设时间结束后,电子设备100可确认用户已经完成该航班行程并离开目的地机场。例如,上述预设时间可以为30分钟。电子设备100可确认航班的抵达时间之后的第30分钟为用户完成行程的时刻,即离开机场的时刻。
同时,电子设备100还可获取位置数据。电子设备100可结合时间和位置数据判断用户是否离开目的地机场。若当前时间超过抵达时间30分钟或30分钟以上,且当前位置指示电子设备100不在目的地机场的地理范围内,则电子设备100确认用户已经完成行程并已经离开目的地机场。
在确认用户已经完成行程并已经离开目的地机场后,电子设备100可关闭航班卡片。
在其他实施例中,电子设备100可以自行检测用户是否抵达目的地机场。具体的,电子设备100可周期性的获取时间数据、位置数据。当时间数据指示当前时间在抵达时间之后,且位置数据指示当前位置在目的地机场地理范围内时,电子设备100可确认用户已经抵达目的地机场了。
此外,电子设备100还可在起飞时间之后,周期性地检测用户是否使用蜂窝数据。若检测到用户产生了蜂窝流量,则电子设备100可确定用户已抵达目的地机场。当然,上述两种方法也可结合起来,一起判断用户是否抵达目的地机场。
当检测到用户已抵达目的地机场后,电子设备100可向云200获取航班数据,进一步的,电子设备100可生成并显示抵达目的地后的航班卡片。后续方法可参考S543-S545,这里不再赘述。
不限于航班通知,本申请实施例提供的基于情境的通知显示方法还可实施在高铁、健康码以及上班打卡中。下面,本申请实施例将依次介绍基于情境的通知显示方法在高铁等场景中的应用。
首先,图6A-图6D示出了基于情境的通知显示方法在高铁中应用的一组用户界面。
在购买高铁票后,用户的手机可收到高铁票的出票短信。然后,手机可通过读出票短信的方式,从出票短信中获取用户预订的高铁票的数据。上述数据可称为高铁数据。高铁 数据包括:车次、日期、出发地、出发时间、目的地、抵达时间等等。然后,手机可将高铁数据以高铁卡片的形式呈现出来。
同样的,手机也可以通过接收
Figure PCTCN2022073332-appb-000008
发送的push通知获得高铁数据。这里可参考航班卡片的介绍,不再赘述。
如图6A所示,卡片1011可以被称为一张高铁卡片。卡片1011示出了一趟高铁行程,包括车次(“G1314”)、日期(“1月9日”)、出发地(“深圳北”)、出发时间(“8:00”)、目的地(“广州南”)、抵达时间(“11:20”)。
然后,手机可监测当前时间,并判断当前是否临近出发时间。同样的,手机可通过设定一个预设时间判断当前时间是否临近出发时间。例如,上述预设时间可以为4小时。当当前时间在出发时间之前的4个小时内,手机可确认临近出发时间。
手机可获取自身的系统时间。该系统时间可作为当前时间。然后,依据上述系统时间和上述预设时间,手机可判断是否临近出发时间。例如,手机获取到系统时间为1月9号的上午6:00,高铁的出发时间为8:00,然后,手机可确认距离出发时间还有2小时。此时,手机可显示图6B所示的用户界面62。
在用户界面62中,手机可调整原卡片1011中显示的内容。调整后的卡片1011可呈现卡片1012所示的样子。
卡片1012可包括左侧区域和右侧区域。与航班卡片相似的,左侧区域可显示高铁票中的基本信息,包括:出发地、出发时间、目的地、抵达时间等。右侧区域可显示临近出发时间的提示,例如显示出发倒计时(“距离发车:2小时”)。当用户看到上述提示后,用户可知道临近出发时间,然后用户可前往高铁站,避免耽误出行。
同时,手机还可获取位置数据。通过位置数据,手机可判断用户是否抵达高铁站。手机获取位置数据的方法可参考前述介绍的航班卡片,这里不再赘述。
当确认用户抵达高铁站时,手机可更新卡片1012中展示的内容。具体的,手机可在高铁卡片中显示检票口、座位号等信息。如图6C所示,更新后的卡片1012可呈现卡片1013的样子。
卡片1013显示的内容可包括:车次(“G1314”)、日期(“1月9日”)、出发时间(“8:00”)、抵达时间(“11:20”)、目的地(“广州南”)、座位号(“8车11A”)、检票口(“A12”)。其中,座位号和检票口是在检测到用户抵达高铁站后增加的。
这样,用户看到卡片后便可以立刻了解到自己所搭乘的高铁在哪一个检票口检票,从而避免查询电子车票,节省了用户的操作,提升了用户的使用体验。
然后,手机可通过当前时间确定是否发车。手机可获取系统时间和出发时间。当系统时间已经达到或超过系统时间后,手机可确认已经发车。在确认用户所乘坐的高铁已经出发后,手机可显示图6D所示的用户界面64。用户界面64示出了出发后的高铁卡片的样子(卡片1014)。
卡片1014显示的内容可包括:车次(“G1314”)、日期(“1月9日”)、出发时间(“8:00”)、抵达时间(“11:20”)、出发地(“深圳北”)、目的地(“广州南”)、座位号(“8车11A”)。其中,卡片1014的右侧区域可显示用户的座位号。同时,卡片1014显示的内容不包括检票口信息。
在显示航班卡片(或高铁卡片)时,手机还可在更新航班卡片(或高铁卡片)的同时,显示或关闭健康码卡片。下面将介绍基于情境的通知显示方法在健康码场景中的应用。图7示出了手机在显示航班卡片(或高铁卡片)的同时显示健康码的用户界面。
当手机通过位置数据检测到用户抵达机场(或高铁站)时,航班卡片显示的内容会增加值机柜台、登机口等信息;高铁卡片显示的内容会增加检票口、车厢、座位号等信息。此时,手机可在航班卡片(或高铁卡片)的下方,显示健康码卡片。
图7示出了手机显示健康码卡片的用户界面71。用户界面71可包括航班卡片1101、健康码卡片1102。航班卡片1101为手机检测到用户抵达机场后的卡片。健康码卡片1102为手机检测到用户抵达机场后的显示的卡片。
例如,当抵达机场后,手机可通过GPS等方式获取本设备的位置数据。通过上述位置数据,手机可确认用户已抵达机场。然后,手机可将航班卡片变更为航班卡片1101所示的样子,同时,手机还可在航班卡片1101的下方显示健康码卡片1102。
健康码卡片1102可包括控件1103、控件1104、控件1105、控件1106。当检测到作用于控件1103的用户操作时,响应于该操作,手机可显示包含健康码的用户界面。当检测到作用于控件1104的用户操作时,响应于该操作,手机可显示填写出行登记的页面。当检测到作用于控件1105的用户操作时,响应于该操作,手机可显示包含用户的核酸检测记录的界面。当检测到作用控件1106的用户操作时,响应于该操作,手机可显示包含用户疫苗接种记录的界面。
这样,当用户进入机场需要出示健康码、核酸检测记录等信息时,用户可点击对应地控件,然后,用户可获取该信息。例如,当进行进入机场的安检时,用户可点击控件1103。响应于该用户操作,手机可显示包含健康码的用户界面。然后,用户可向安检人员出示健康码。
然后,手机可检测当前时间是否到达起飞时间。当到达起飞时间时,手机可关闭健康码卡片。当检测到当前时间达到降落时间时,手机可再显示健康码卡片1102。这里不再赘述。
当检测到用户抵达目的地机场时,手机又可再显示健康码卡片1102。这里,确认用户是否抵达目的地机场可参考图2J的介绍,即通过当前时间和当前位置判断用户是否抵达目的地机场。
当手机关闭航班卡片(或高铁卡片)后,手机也可关闭健康码卡片。手机确认关闭航班卡片(或高铁卡片)方法可参考图5E的介绍,这里不再赘述。
当然,在准备登机至离开机场的这一时间内,手机也可一直显示健康码卡片。即,在检测到起飞后,手机也可不关闭健康码卡片。这样,在检测到抵达目的地机场后,手机也就不需要重新显示健康码卡片。然后,在手机关闭航班卡片(或高铁卡片)的同时,手机可关闭健康码卡片。
在其他实施例中,在显示健康码卡片后,手机还可根据当前是否运行沉浸式应用程序来确定是否显示健康码悬浮窗。
具体的,参考图7,在显示健康码卡片后,手机可检测当前是否正在运行沉浸式应用 程序(手机检测当前是否正在运行沉浸式应用程序的方法参考图3F的介绍,这里不再赘述)。当前检测到手机正在运行沉浸式应用程序后,手机可在沉浸式应用程序的用户界面中显示健康码悬浮窗。当检测到作用于健康码悬浮窗的用户操作后,手机可显示包括健康码、疫苗接种记录、核酸记录等在内的用户界面。
这样,在手机运行沉浸式应用程序,用户可通过健康码悬浮窗快速获取健康码等信息(例如,通过点击悬浮窗等操作,可选择与前面的实施例相同的方式,在此不再进行赘述),以便于快速便捷地提供安检工作人员检查,节省时间,提升用户使用体验。
下面将结合图8A-图8B所示的用户界面,介绍基于情境的通知显示方法在上班打卡中的应用。
手机可获取当前时间和当前位置。手机获取当前时间和当前位置的方法可参考前述介绍。根据当前时间和当前位置,手机可判断用户是否在指定上班时间之前到达办公区域(即上班打卡),或是否在指定下班时间之后离开办公区域(即下班打卡)。
在预设的完成上班打卡的时间内,手机可在打卡卡片中显示上班打卡通知。上述预设的完成打卡的时间包括:用户预设的、开发人员在设计卡片时设置的默认时间、手机学习用户历史打卡记录得到的时间。
图8A示出了手机在打卡卡片中显示上班打卡通知的用户界面81。用户界面81可包括卡片1201、时间指示符1202。卡片1201可包括按钮1203。
时间指示符1202指示当前的系统时间为8:45(当前时间)。上班的指定上班时间为9:00。这也就是说,用户在指定上班时间之前到达办公区域。上述指定上班时间是预设的。
按钮1203可用于接收用户的打卡操作。当检测到作用于按钮1203的用户操作后,手机可获取当前位置。当当前位置在办公区域的地理范围内时,手机可确认用户在指定上班时间之前到达办公区域。此时,手机可生成用户的上班打卡记录,即用户完成上班打卡。
在确认用户完成上班打卡后,手机可显示图8B所示的用户界面。此时,按钮1203可显示用户已完成打卡。可选的,按钮1203还可显示用户完成上班打卡的时间,例如“8:45”。
在一些实施例中,在用户完成上班打卡后,手机也可继续显示图8B所示的卡片。在继续显示打卡卡片的过程中,手机还可显示开关控件。当检测到作用于上述开关控件的用户操作后,响应于该操作,手机可关闭上述卡片。在其他实施例中,在预设的显示图8B所示的卡片时间之后,手机可关闭上述卡片。
然后,手机可检测是否满足下班打卡条件。首先,手机可根据时间判断是否到达下班时间,当当前时间达到下班时间时,或在下班时间之后,手机可显示下班打卡通知。同样的,上述下班时间也是预设的。
图8C示出了手机在打卡卡片中显示下班打卡通知的用户界面83。用户界面83可包括卡片1201、时间指示符1212。卡片1201可包括按钮1213。
时间指示符1212指示当前的系统时间为17:00。指定的下班时间为17:00。这也就是说,当前时间已经满足下班的要求。此时,手机可检测用户是否做出下班打卡操作。
按钮1213可用于接收用户的打卡操作。当手机检测到作用于按钮1213的用户操作时, 手机可获取当前位置。如果确认当前位置在办公区域的地理范围,则下班打卡成功。手机可生成用户的下班打卡记录,即用户完成下班打卡。
在确认用户完成下班打卡操作后,手机可显示图8D所示的用户界面。此时,按钮1213可显示用户已完成打卡。可选的,按钮1203还可显示用户完成下班打卡的时间,例如“17:00”。
在一些实施例中,如果当前时间在指定下班时间之后,当前位置不在办公区域的地理范围内,则手机可以关闭下班打卡通知。当当前位置在办公区域的地理范围内时,手机可重新显示下班打卡通知。在其他实施例中,若未检测到用户完成下班打卡操作,手机也可一直显示下班打卡通知。
在本申请实施例中,第一卡片可以为图2A-图2Q所示的显示航班行程的卡片;第一卡片可以为图6A-图6D所示的显示高铁行程的卡片;第一卡片还可以是图8A-图8B所示的打卡卡片。
以显示航班行程的卡片(航班卡片)为例,区域221(左侧区域)可称为第一区域、区域222(左侧区域)可称为第二区域。
参考图2B所示航班卡片,第一区域中显示的内容可称为第一内容,例如“深圳宝安T3 8:00北京首都T3 11:20”。第二区域中显示的内容可称为第二内容,例如“预计开放值机今天18:00”。此时,第一状态为显示值机预告的状态。
在第一状态之后,显示值机提醒的状态可称为第二状态。参考图2C所示用户界面,响应于第二状态,第一区域中显示的内容可称为第一内容,例如“深圳宝安T3 8:00北京首都T3 11:20”。第二区域中显示的内容可称为第三内容。此时,第三内容为“以开放值机”和值机选座按钮231。
若图2C所示的卡片为第一状态时的卡片,则图2D所示的卡片可称为第二状态时的卡片。此时,图2C所示的卡片中的右侧区域中显示的内容可称为第二内容,图2D所示的卡片中的右侧区域中显示的内容可称为第三内容。其他状态同理。
电子设备100显示图2I所示的航班卡片的状态可称为第三状态。图2I所示的卡片的区域221中显示的内容可称为第四内容;区域222所示中显示内容可称为第五内容。在图3A-图3D所示的用户界面中,通知栏(横幅通知、锁屏通知、下拉通知)中显示的内容可称为第六内容。
电子设备100显示图2B所示的航班卡片的状态,可称为显示值机预告的状态。电子设备100显示图2C所示的航班卡片的状态可称为显示值机提醒的状态。电子设备100显示图2D所示的航班卡片的状态可称为提示用户已值机的状态。电子设备100显示图2E所示的航班卡片的状态可称为显示值机倒计时的状态。电子设备100显示图2F所示的航班卡片的状态可称为显示值机柜台的状态。
电子设备100显示图2G所示的航班卡片的状态可称为显示出发提醒的状态。电子设备100显示图2H所示的航班卡片的状态可称为显示路程时间的状态。
电子设备100显示图2L所示的航班卡片的状态可称为显示健康码的状态。电子设备100显示图2I所示的航班卡片的状态可称为开始登机的状态。电子设备100显示图2J所 示的航班卡片的状态可称为显示行李转盘的状态。
电子设备100显示图6B所示的航班卡片的状态可称为提醒用户高铁即将启程的状态。电子设备100显示图6C所示的航班卡片的状态可称为反映用户已经抵达高铁站的状态。电子设备100显示图6D所示的航班卡片的状态可称为反映高铁已经启程的状态。
下面,本申请实施例将结合图9说明电子设备100的硬件结构。
在本申请实施例中,电子设备100是手机。此外,电子设备100还可以是平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备100的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pul se code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术 (infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在本申请实施例中,移动通信模块150和无线通信模块160为电子设备100提供的能力包括:通过GPS获取位置数据(当前位置)、通过蜂窝数据获取位置数据以及通过蜂窝数据与获取上传和下载服务等。
电子设备100可基于位置数据和其他状态信息(例如时间等)判断用户所处的情境。进一步的,电子设备100可根据用户所处的情境更新卡片等其他类型通知中展示的内容。上传和下载服务可支持电子设备100获取卡片等其他类型通知中展示的内容。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在本申请实施例中,图2A-图2J、图3A-图3F、图6A-图6D、图7、图8A-图8B所示的用户界面可通过GPU,显示屏194显示出来。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP 还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(sing le-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套 的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
在本申请实施例中,触摸传感器180K可支持用户作用在屏幕上的点击、滑动等操作,响应于上述操作,电子设备100可显示与该操作对应的用户界面。例如,参考图2I,触摸传感器180K可检测到用户作用在按钮251上的用户操作,响应于该操作,电子设备100可显示包含电子登机牌的用户界面。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音 频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
实施本申请实施例提供的方法,手机等电子设备可以依据用户所处的不同情境,将一个通知中的内容拆分成不同部分。然后,根据当前用户所处的情境,选择性地展示上述通知中的部分内容。这样,用户既可以获得多而全面的信息,又可以使用户快速准确的获得当前情境下最想要了解的信息,避免信息堆砌带来的繁琐、不方便。
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为 页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,GTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如GTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (19)

  1. 一种通知显示方法,应用于电子设备,其特征在于,所述方法包括:
    显示第一用户界面,所述第一用户界面显示有第一卡片,所述第一卡片包括第一区域和第二区域,所述第一区域与所述第二区域不重叠,所述第一区域显示第一内容,所述第二区域显示第二内容,其中,所述第二内容用于指示用户所处状态为第一状态,所述第二内容与第一内容相关联;
    检测到用户所处状态为第二状态,所述第二状态与所述第一状态不同;
    响应于用户所处的状态为第二状态,所述第一区域显示所述第一内容,所述第二区域显示第三内容,所述第三内容用于指示所述用户所处状态为所述第二状态,所述第三内容与所述第二内容不同,所述第三内容与第一内容相关联;
    其中,所述第一状态和所述第二状态是与用户所处的地理位置,和/或,时间有关联的状态。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    检测到用户所处状态为第三状态,所述第三状态与所述第二状态不同;
    响应于用户所处的状态为第三状态,所述第一区域显示第四内容,所述第二区域显示第五内容,所述第四内容与所述第一内容不同,所述第五内容与第三内容不同,所述第五内容用于指示所述用户所处状态为所述第三状态,所述第五内容与第四内容相关联;
    其中,所述第四内容与所述第一内容相关联,所述第四内容的显示形式与第一内容的显示形式不同,且所述第四内容的文本内容和第一内容的文本内容相同;
    所述第三状态是与用户所处的地理位置,和/或,时间有关联的状态。
  3. 根据权利要求1或2所述的方法,其特征在于,在检测到用户所处状态为第二状态之后,所述方法还包括:
    显示消息通知,所述消息通知是横幅通知、锁屏通知、下拉通知中的一个或多个,所述消息通知包括第六内容,所述第六内容用于指示所述用户所处状态为所述第二状态,所述第六内容与第三内容相关联。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,在检测到用户所处状态为第二状态之后,所述方法还包括:在所述第一用户界面显示第二卡片,所述第二卡片包括获取健康码,和/或,核酸记录,和/或,疫苗记录的控件。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一卡片为航班卡片;
    所述第一状态、所述第二状态和所述第三状态分别为:提醒用户办理值机手续的状态、提醒用户前往机场的状态、反映用户准备登机的状态和反映用户抵达目的地的状态中的一个。
  6. 根据权利要求5所述的方法,其特征在于,
    所述提醒用户办理值机手续的状态包括:显示值机预告的状态、显示值机提醒的状态、提示用户已值机的状态、显示值机倒计时的状态或显示值机柜台的状态;或者,
    所述提醒用户前往机场的状态包括:显示出发提醒的状态或显示路程时间的状态;或者,
    所述反映用户准备登机的状态包括:显示健康码的状态、开始登机的状态或显示登机口的状态;或者,
    所述反映用户抵达目的地的状态包括:显示行李转盘的状态、显示酒店位置的状态或显示旅游景点的状态。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,
    所述第一内容包括:所述航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间中的一个或者多个;或者,
    所述第二内容、所述第三内容和所述第五内容分别包括:所述航班的值机预告、值机提醒、已值机提醒、值机倒计时、值机柜台、出发提醒、路程时间、座位号、登机口、行李转盘、酒店位置、旅游景点位置中的一个或多个;或者,
    所述第四内容包括:所述航班的航班编号、行程日期、出发地、出发时间、目的地、抵达时间、值机柜台、座位号、登机口中的一个或者多个。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述方法还包括:
    当所述第一状态、第二状态或者所述第三状态为所述反映用户准备登机的状态时;
    确定所述电子设备正在运行沉浸式应用程序,显示悬浮窗,所述悬浮窗用于显示登机提醒;其中,所述沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
  9. 根据权利要求8所述的方法,其特征在于,在显示悬浮窗后,所述方法还包括:
    检测到用户对悬浮窗的第一操作;
    响应于所述第一操作,显示电子登机牌,其中所述第一操作为点击操作、长按操作滑动操作或语音控制操作中的一个。
  10. 根据权利要求1-4中任一项所述的方法,其特征在于,
    所述第一卡片为展示高铁行程的卡片;
    所述第一状态、所述第二状态和所述第三状态分别为:提醒用户高铁即将启程的状态、反映用户已经抵达高铁站的状态和反映高铁已经启程的状态中的一个。
  11. 根据权利要求10所述的方法,其特征在于,
    所述第一内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间中的一个或多个;
    所述第二内容、所述第三内容和所述第五内容分别包括:出发提醒、车厢号、座位号、检票口中的一个或多个;
    所述第四内容包括:车次、行程日期、出发地、出发时间、目的地、抵达时间、出发提醒、车厢号、座位号、检票口中的一个或多个。
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:
    当所述第一状态、第二状态或者所述第三状态为所述反映用户已经抵达高铁站的状态时;
    确定所述电子设备正在运行沉浸式应用程序,显示悬浮窗,所述悬浮窗用于显示电子车票二维码;其中,所述沉浸式应用程序为视频类应用程序、游戏类应用程序、音乐类应用程序或者通话类应用程序中的一个或者多个。
  13. 根据权利要求12所述的方法,其特征在于,在显示悬浮窗后,所述方法还包括:
    检测到用户对悬浮窗的第一操作;
    响应于所述第一操作,显示电子设备二维码,其中所述第一操作为点击操作、长按操作、滑动操作或语音控制操作中的一个。
  14. 根据权利要求1或3所述的方法,其特征在于,所述第一卡片为打卡卡片。
  15. 根据权利要求14所述的方法,其特征在于,所述第一状态为显示上班打卡提醒的状态,所述第二状态为显示下班提醒的状态。
  16. 根据权利要求15所述的方法,其特征在于,所述第一内容包括打卡提醒,所述第二内容包括上班打卡控件、上班打卡时间或用户是否打卡中的一个或多个,所述第三内容包括:下班打卡控件、下班打卡时间或用户是否打卡中的一个或多个。
  17. 一种电子设备,其特征在于,包括一个或多个处理器和一个或多个存储器;其中,所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得执行如权利要求1-16任一项所述的方法。
  18. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得执行如权利要求1-16任一项所述的方法。
  19. 一种包含指令的计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如权利要求1-16任一项所述的方法。
PCT/CN2022/073332 2021-05-28 2022-01-22 基于情境的通知显示方法和装置 WO2022247326A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110606593.6 2021-05-28
CN202110606593.6A CN113722029A (zh) 2021-05-28 2021-05-28 基于情境的通知显示方法和装置

Publications (1)

Publication Number Publication Date
WO2022247326A1 true WO2022247326A1 (zh) 2022-12-01

Family

ID=78672841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073332 WO2022247326A1 (zh) 2021-05-28 2022-01-22 基于情境的通知显示方法和装置

Country Status (2)

Country Link
CN (2) CN115334193B (zh)
WO (1) WO2022247326A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506547A (zh) * 2023-06-30 2023-07-28 荣耀终端有限公司 信息提示方法、电子设备及可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334193B (zh) * 2021-05-28 2023-10-31 荣耀终端有限公司 基于情境的通知显示方法和装置
CN114489435B (zh) * 2021-12-20 2024-05-24 广东乐心医疗电子股份有限公司 区域显示方法、装置和电子设备
CN115659069B (zh) * 2022-12-28 2023-05-16 荣耀终端有限公司 一种打卡推荐方法、装置及终端设备
CN116320141B (zh) * 2023-05-24 2023-10-20 荣耀终端有限公司 推荐打卡的方法、电子设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105916106A (zh) * 2015-10-30 2016-08-31 乐视移动智能信息技术(北京)有限公司 一种基于手机屏幕的航班信息显示方法和系统
CN108089832A (zh) * 2017-12-18 2018-05-29 携程旅游网络技术(上海)有限公司 航班动态信息展示方法、系统、设备及存储介质
CN109691072A (zh) * 2016-09-09 2019-04-26 华为技术有限公司 用于推送通知的方法、装置、移动终端及图形用户界面
CN112333240A (zh) * 2020-10-13 2021-02-05 珠海格力电器股份有限公司 消息推送显示方法、装置、可读存储介质和计算机设备
CN113722029A (zh) * 2021-05-28 2021-11-30 荣耀终端有限公司 基于情境的通知显示方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1983413A4 (en) * 2006-02-10 2014-09-17 Fujitsu Ltd INFORMATION DISPLAY DEVICE, INFORMATION DISPLAY METHOD, AND PROGRAM
CN104423934A (zh) * 2013-08-25 2015-03-18 上海莞东拿信息科技有限公司 基于Android平台系统的旅程航班动态通知系统及其方法
CN108153601B (zh) * 2018-01-05 2021-05-18 北京小米移动软件有限公司 输出通知信息的方法及装置
CN109819410A (zh) * 2019-03-18 2019-05-28 北京小米移动软件有限公司 短信显示方法、装置及存储介质
CN117632067A (zh) * 2019-08-01 2024-03-01 华为技术有限公司 一种屏幕显示方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105916106A (zh) * 2015-10-30 2016-08-31 乐视移动智能信息技术(北京)有限公司 一种基于手机屏幕的航班信息显示方法和系统
CN109691072A (zh) * 2016-09-09 2019-04-26 华为技术有限公司 用于推送通知的方法、装置、移动终端及图形用户界面
CN108089832A (zh) * 2017-12-18 2018-05-29 携程旅游网络技术(上海)有限公司 航班动态信息展示方法、系统、设备及存储介质
CN112333240A (zh) * 2020-10-13 2021-02-05 珠海格力电器股份有限公司 消息推送显示方法、装置、可读存储介质和计算机设备
CN113722029A (zh) * 2021-05-28 2021-11-30 荣耀终端有限公司 基于情境的通知显示方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506547A (zh) * 2023-06-30 2023-07-28 荣耀终端有限公司 信息提示方法、电子设备及可读存储介质
CN116506547B (zh) * 2023-06-30 2023-10-24 荣耀终端有限公司 信息提示方法、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN113722029A (zh) 2021-11-30
CN115334193B (zh) 2023-10-31
CN115334193A (zh) 2022-11-11

Similar Documents

Publication Publication Date Title
WO2022247326A1 (zh) 基于情境的通知显示方法和装置
CN110138959B (zh) 显示人机交互指令的提示的方法及电子设备
CN113722028B (zh) 动态卡片显示方法及装置
WO2022262541A1 (zh) 通知显示方法和电子设备
CN113722581B (zh) 一种信息推送方法和电子设备
WO2022152024A1 (zh) 一种微件的显示方法与电子设备
WO2021175272A1 (zh) 一种应用信息的显示方法及相关设备
WO2021249281A1 (zh) 一种用于电子设备的交互方法和电子设备
CN111222836A (zh) 一种到站提醒方法及相关装置
CN113791850A (zh) 一种信息显示方法及电子设备
CN111835904A (zh) 一种基于情景感知和用户画像开启应用的方法及电子设备
CN114493470A (zh) 日程管理的方法、电子设备和计算机可读存储介质
WO2022022335A1 (zh) 天气信息的展示方法、装置和电子设备
WO2021218837A1 (zh) 一种提醒方法及相关装置
WO2021147653A1 (zh) 一种情景智能服务的信息共享方法及相关装置
WO2022127130A1 (zh) 一种添加操作序列的方法、电子设备和系统
WO2022247383A1 (zh) 提示方法、图形用户界面及相关装置
CN113949803A (zh) 拍照方法及电子设备
WO2022121600A1 (zh) 活动识别方法、显示方法及电子设备
WO2022083328A1 (zh) 一种内容推送方法、装置、存储介质和芯片系统
CN114465975B (zh) 一种内容推送方法、装置、存储介质和芯片系统
CN115237297B (zh) 显示日程的方法及相关装置
EP4270911A1 (en) Suspended ball processing method in multi-tasking scenario, and electronic device
WO2023109636A1 (zh) 应用卡片显示方法、装置、终端设备及可读存储介质
WO2024041180A1 (zh) 路径规划方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22810063

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22810063

Country of ref document: EP

Kind code of ref document: A1