WO2020224478A1 - 一种显示的方法及设备 - Google Patents

一种显示的方法及设备 Download PDF

Info

Publication number
WO2020224478A1
WO2020224478A1 PCT/CN2020/087349 CN2020087349W WO2020224478A1 WO 2020224478 A1 WO2020224478 A1 WO 2020224478A1 CN 2020087349 W CN2020087349 W CN 2020087349W WO 2020224478 A1 WO2020224478 A1 WO 2020224478A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
electronic device
identity authentication
authentication credential
widget
Prior art date
Application number
PCT/CN2020/087349
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
Priority claimed from CN201910430945.XA external-priority patent/CN111917916B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20802377.0A priority Critical patent/EP3944600A4/en
Publication of WO2020224478A1 publication Critical patent/WO2020224478A1/zh
Priority to US17/521,112 priority patent/US20220058037A1/en

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Definitions

  • the embodiments of the present application relate to the field of terminal technologies, and in particular, to a display method and device.
  • a widget is an executable and rendered page script embedded in another application (application, APP).
  • the widget is loaded and run by other apps.
  • the widget can be, for example, a clock widget.
  • Widgets are generally small, easy to embed, and fast to run. Therefore, widgets are widely used in various electronic devices such as mobile phones, TVs, and video devices, and their forms are also diverse, such as slides, videos, maps, News, mini games, etc. Widget directly displays the services or content that users care about most to users.
  • the embodiments of the present application provide a display method and device to propose a display method to improve the user experience of using widgets.
  • an embodiment of the present application provides a display method, and the method includes:
  • the electronic device displays a first user interface, and receives a user's first operation on the first user interface.
  • the first operation is used to control the electronic device to display a second user interface.
  • the second user interface includes a widget; the electronic device responds to The user's first operation is to send a first authentication acquisition request to the first server, where the first authentication acquisition request includes the first identity authentication credential assigned by the first server to the electronic device, and the first authentication acquisition request is used to obtain The second identity authentication credential for accessing the second server; the second identity authentication credential that needs to be obtained is associated with the first identity authentication credential, and the second server is used to be the content provider CP server of the widget.
  • the first server receives the first authentication acquisition request from the electronic device, and the first server uses the pre-stored identity authentication credential allocated by the first server for the electronic device law and the identity authentication credential used to access the second server
  • the second identity authentication credential associated with the first identity authentication credential is determined, and the second identity authentication credential is carried in the response to the first authentication acquisition request and sent to the electronic device.
  • the electronic device After receiving the response to the first authentication acquisition request sent by the first server, the electronic device sends a first content acquisition request to the second server.
  • the first content acquisition request includes the second identity authentication credential, and the first content
  • the get request is used to get the content information to be displayed in the widget.
  • the second server receives the first content obtaining request from the electronic device; the second server determines the second configuration information corresponding to the second identity authentication credential according to the configuration information corresponding to each identity authentication credential, and obtains the content corresponding to the second configuration information Information, the content information is carried in the first acquisition success response of the first content acquisition request and sent to the electronic device.
  • the electronic device displays a second user interface according to the content information included in the first acquisition success response.
  • the second user interface includes widgets and displays in the widgets. There is corresponding content information.
  • the electronic device can obtain the second identity authentication credential for accessing the second server from the first server, and can obtain the resource information of the second server according to the second identity authentication credential, so that the content information displayed in the widget More diversification, improving the user experience of using widgets.
  • the electronic device after the electronic device displays the second user interface, the electronic device receives a user's second operation on the displayed widget on the second user interface, and the second operation uses To control the electronic device to update the content information displayed in the widget; the electronic device sends a second content acquisition request to the second server, and the second content acquisition request includes the second identity authentication credential and the operation information of the second operation, so The second content acquisition request is used to acquire content information corresponding to the operation information of the second operation.
  • the second server receives the second content acquisition request from the electronic device; after determining that the second identity authentication credential is valid, the second server executes the operation information, and carries content information corresponding to the operation information in the second content acquisition request Is sent to the electronic device in the second acquisition success response. After receiving the second acquisition success response of the second content acquisition request sent by the second server, the electronic device updates the content information displayed in the widget according to the content information included in the second acquisition success response.
  • the user further interacts on the widget, which improves the user's experience of using the widget.
  • the first identity authentication credential of the electronic device is assigned by the first server to the first user account when the electronic device registers or logs in according to the first user account.
  • the electronic device displays a third user interface; the third user interface includes a user account input area; the electronic device responds to the user's input of the first user account in the user account input area to complete the operation, to the first
  • the server sends a first request, the first request is used for the electronic device to log in or register with the first server, and the first request includes the first user account; the electronic device receives the first A response to the first request sent by the server, where the response to the first request includes the first identity authentication credential, wherein the first identity authentication credential is allocated by the first server to all users according to the first user account. Description of electronic equipment.
  • the second server sends a content acquisition failure response of the second content acquisition request to the electronic device, and the electronic device After receiving the content acquisition failure response sent by the second server, send a second authentication acquisition request to the first server.
  • the second authentication acquisition request includes the first identity authentication credential, and the second authentication The acquisition request is used to re-acquire the second identity authentication credential for accessing the second server; the first server receives the second authentication acquisition request sent by the electronic device, and the first server is the electronic device according to the pre-stored first server
  • the relationship between the identity authentication credential assigned by the method and the identity authentication credential used to access the second server, the second identity authentication credential associated with the first identity authentication credential is re-determined, and the re-determined second identity authentication credential It is carried in the response of the second authentication acquisition request and sent to the electronic device.
  • the electronic device After receiving the response to the second authentication acquisition request sent by the first server, the electronic device resends a second content acquisition request to the second server, and the response to the second content acquisition request includes re The assigned second identity authentication credential, and the re-sent second content acquisition request includes the re-assigned second identity authentication credential and the operation information of the second operation.
  • the first authentication acquisition request or the second authentication request further includes the identification of the second server; the first server is based on the first identity authentication credential and the pre-stored first The association relationship between the identity authentication credential allocated by the server for the electronic equipment law and the identity authentication credential used to access the second server.
  • the first server may An identity authentication credential and a pre-stored relationship between the identity authentication credential allocated by the first server for the electronic equipment law and the identity authentication credential used to access the second server, and determine the association with the first identity authentication credential The associated identity authentication credentials;
  • the first server determines the second identity authentication credential from identity authentication credentials associated with the first identity authentication credential according to the identifier of the second server.
  • the first server sends the second identity authentication credential required by the electronic device to the electronic device, thereby avoiding the waste of transmission resources.
  • a device provided by an embodiment of the present application includes: one or more processors and a memory, where program instructions are stored in the memory, and when the program instructions are executed by the device, the above aspects and Any possible design method involved in all aspects.
  • a chip provided by an embodiment of the present application is coupled with a memory in a device, so that the chip invokes program instructions stored in the memory during operation to implement the above-mentioned aspects and aspects of the embodiments of the present application. Any possible design method involved in all aspects.
  • a computer storage medium stores program instructions.
  • the program instructions run on an electronic device, the device executes the above-mentioned aspects of the embodiments of the present application and the various aspects involved Any possible design method.
  • a computer program product of an embodiment of the present application when the computer program product runs on an electronic device, causes the electronic device to execute and implement the foregoing aspects of the embodiments of the present application and any possible aspects involved in each aspect Design method.
  • an embodiment of the present application provides a content display system.
  • the system includes an electronic device that executes the foregoing first aspect and any possible design method involved in the first aspect, a first server, and a second server .
  • Figure 1 is an electronic device provided in an embodiment of the application
  • 2A is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2B is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2C is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2D is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2E is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2F is a schematic diagram of a user interface provided in an embodiment of the application.
  • 2G is a schematic diagram of a user interface provided in an embodiment of the application.
  • FIG. 3 is a schematic diagram of a content display process provided in an embodiment of the application.
  • FIG. 4 is a schematic diagram of a content display process provided in an embodiment of the application.
  • Figure 5 is a device provided in an embodiment of the application.
  • FIG. 6 is a schematic diagram of a content display system provided in an embodiment of the application.
  • Fig. 7 is a device provided in an embodiment of the application.
  • widget can be called widget, also called widget, small component, etc.
  • the widget may be located on a negative screen (-1 screen), the main interface, or the user interface of a certain APP.
  • the main interface may be a user interface 200 as shown in FIG. 2A, and the user interface 200 includes a weather and time widget 202.
  • a negative screen may be the user interface 210 in FIG. 2A, and the user interface 210 includes a calendar widget 212, a smart home 213, and so on. It can be understood that the electronic device may display the user interface 210 in response to the user's sliding operation to the right on the user interface 200.
  • the user interface of the calendar may be a user interface 220 as shown in FIG. 2B, and the user interface 220 includes a weather widget 222. It can be understood that the electronic device may display the user interface 220 in response to the user's operation of the calendar icon on the user interface 200.
  • the electronic device in the embodiment of the present application can set one or more widgets on a certain user interface in response to a certain operation of the user.
  • the clock widget can be set on the main interface so that the electronic device can display the current time when displaying the main interface; for another example, in the embodiment of this application, the weather widget can be set on the negative screen.
  • the electronic device can display the weather forecast of a certain area when displaying a negative screen; for example, in the embodiment of the present application, the CPU widget can be set on the user interface of a certain application, so that the electronic device can display the user interface of the application When, you can display the CPU usage ratio.
  • the widgets in the embodiments of the present application may also be search widgets, stock widgets, ball game widgets, and so on.
  • the widget may display content in the form of a card, or may display corresponding content in other forms, which is not limited.
  • the host APP is an APP that can load and run widgets.
  • the host APP of the widget is the first APP.
  • the host APP of the weather widget222 is the calendar.
  • the host APP of the widget is the APP to which the negative screen belongs.
  • the APP to which the negative one screen belongs may be referred to as the negative one screen APP for short.
  • the negative one screen is the user interface 210 shown in FIG. 2A.
  • the user interface 210 includes a calendar widget 212 and a smart home widget 213, and the host APPs of the calendar widget 212 and the smart home widget 213 are both negative one screen apps.
  • the host APP of the widget is the APP to which the main interface belongs.
  • the APP to which the main interface belongs may be a desktop APP.
  • the main interface is the user interface 200 shown in FIG. 2A, and the user interface 200 includes a weather and time widget 202, and the host APP of the weather and time widget 202 is a desktop APP.
  • the content of the widget and the content of the host APP in the embodiments of the present application may be provided by the same content provider (CP), or may be provided by different content providers.
  • CP content provider
  • the content of the widget and the host APP are provided by the same content provider.
  • the content of the widget and the host APP are provided by different content providers.
  • the native APP can include the content of the corresponding widget.
  • the native APP of WeChat widget is WeChat.
  • the native APP of Alipay widget is Alipay.
  • the native APP of the weather widget is weather. It should be noted that, for a certain widget, the native APP of the widget and the host APP of the widget may be the same or different, which is not limited.
  • the host APP of the Alipay widget can be a negative one-screen APP, and the native APP of the Alipay widget is Alipay.
  • the host APP of the weather widget is the desktop APP
  • the native APP of the weather widget is the weather.
  • the host APP and native APP of the calendar widget are both calendars.
  • Identity authentication credentials which can also be called “identity authentication credentials” or “identity authentication credentials”, are used to identify the legitimacy of electronic devices.
  • the identity authentication credential can be used to determine whether the electronic device has resource access and/or resource usage permissions, so as to prevent attackers from impersonating legitimate users to obtain resource access permissions, and to ensure system and data security.
  • GUI graphical user interface
  • the embodiments of the present application can be applied to electronic devices supporting widget functions.
  • the electronic devices in the embodiments of the present application may also be referred to as terminals, terminal devices, user equipment, etc.
  • the electronic device in the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with wireless communication function, and a vehicle-mounted device.
  • portable electronic devices include but are not limited to carrying Or portable electronic devices with other operating systems.
  • the electronic device in the embodiment of the present application usually provides various functions for the user through an application program (for example, APP) installed by itself.
  • the application program may be a system application or a third-party application.
  • the electronic device 100 in the embodiment of the present application can run multiple applications at the same time.
  • the host APP in this embodiment of the application is an application installed on an electronic device.
  • the host APP can be a system application installed on the electronic device, or a third-party application installed on the electronic device. This is not limited.
  • the native APP of the widget can be installed on the electronic device or not. limited.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 151, wireless communication module 152, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and SIM Card interface 160 etc.
  • the sensor module 180 may include a pressure sensor 181 and a touch sensor 182.
  • the sensor module 180 further includes one or one of a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, and a bone conduction sensor. Multiple.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network Processing Unit, NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network Processing Unit, NPU
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 may be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
  • the camera 193 (a front camera or a rear camera, or a camera can be used as a front camera or a rear camera) is used to capture still images or videos.
  • the camera 193 may include photosensitive elements such as a lens group and an image sensor, where the lens group includes a plurality of lenses (convex lens or concave lens) for collecting light signals reflected by the object to be photographed and transmitting the collected light signals to the image sensor .
  • the image sensor generates an original image of the object to be photographed according to the light signal.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store program instructions such as operating systems, application programs (such as cameras, WeChat, etc.).
  • the storage data area can store data created during the use of the electronic device 100 (such as images, videos, content in the user interface of the APP, content in the widget), etc.
  • the internal memory 121 may be used to store related information of the widget and related information of the host APP.
  • the memory space in the internal memory 121 used to store relevant information of the host APP can be referred to as the memory space corresponding to the host APP, the memory space of the host APP, or the storage space of the host APP, etc.
  • the memory space used for widget-related information in the storage 121 may be simply referred to as the memory space corresponding to the widget, the memory space of the widget, or the storage space of the widget, etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running program instructions stored in the internal memory 121.
  • the processor 110 may execute the display method of the embodiment of the present application by running the program instructions in the internal memory 121.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the code of the algorithm provided in the embodiment of the present application can also be stored in an external memory.
  • the external memory interface 120 may be used to connect an external memory card (for example, a Micro SD card) to expand the storage capacity of the electronic device 100.
  • the processor 110 may run the algorithm code stored in the external memory through the external memory interface 120, thereby executing various functional applications and data processing of the electronic device 100.
  • the pressure sensor 181 included in the sensor module 180 is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • the pressure sensor 181 may be provided on the display screen 194.
  • the touch sensor 182 included in the sensor module 180 is also called a “touch panel”.
  • the touch sensor 182 may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 182 and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 182 is used to detect touch operations acting on or near it.
  • the touch sensor 182 may transmit the detected touch operation to the application processor to determine the type of the touch event.
  • the display screen 194 can provide visual output related to the touch operation.
  • the touch sensor 182 may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 151 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 151 can receive electromagnetic waves by the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 151 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 151 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 151 or other functional modules.
  • the wireless communication module 152 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 152 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 152 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 152 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
  • the electronic device 100 may 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. For example, music playback, recording, etc.
  • the button 190 may include a power-on button, a volume button, and the like.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive a key 190 input, and generate a key signal input related to user settings and function control of the electronic device 100.
  • the electronic device 100 can use the motor 191 to generate a vibration notification (for example, an incoming call vibration notification).
  • the indicator 192 in the electronic device 100 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 160 in the electronic device 100 is used to connect to a SIM card. The SIM card can be inserted into the SIM card interface 160 or pulled out from the SIM card interface 160 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may implement a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the processor 110 may further include one or more interfaces.
  • the interface may be the SIM card interface 160.
  • the interface may also be a USB interface 130.
  • the interface may also be 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, and a universal asynchronous transceiving transmission UART (universal asynchronous receiver/transmitter) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous transceiving transmission UART (universal asynchronous receiver/transmitter) interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • the processor 110 in the embodiment of the present application may be connected to different modules of the electronic device 100 through interfaces, so that the electronic device 100 can implement different functions. For example, taking pictures, processing, etc. It should be noted that the embodiment of the present application does not limit the connection mode of the interface in the electronic device 100.
  • the SIM card interface 160 can be used to connect to a SIM card.
  • the SIM card can be inserted into the SIM card interface 160 or pulled out from the SIM card interface 160 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 160 may support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 160 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 160 can also be compatible with different types of SIM cards.
  • the SIM card interface 160 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 may also adopt 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.
  • the SIM card interface 160 can only insert one SIM card
  • the electronic device 100 can access a cellular network through the SIM card inserted in the SIM card interface 160.
  • the SIM card interface 160 can insert two SIM cards
  • the electronic device 100 can respectively access a cellular network through the two SIM cards inserted in the SIM card interface 160.
  • the USB interface 130 is an interface compliant with the USB standard specification.
  • the USB interface 130 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, can also be used to transfer data between the electronic device 100 and peripheral devices, and can also be used to connect headphones to play audio through the headphones.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device 100 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the mobile communication module 151, and the wireless communication module 152.
  • 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 provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 100 shown in FIG. 1 may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wireless communication function.
  • Wearable devices such as smart watches, etc.
  • Exemplary embodiments of portable electronic devices include but are not limited to carrying Or other portable electronic devices with operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the aforementioned electronic device 100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
  • FIG. 2A is a schematic diagram of a user interface provided by an embodiment of the application.
  • the electronic device 100 displays a user interface through the display screen 194.
  • the user interface may be a main interface, a negative screen, or a user interface of a certain application.
  • the main interface may be a user interface 200 as shown in FIG. 2A.
  • the user interface 200 may include a status bar 201, a time and weather Widget 202, and icons of multiple applications, such as a calendar icon 203, a setting icon 204, and the like.
  • the status bar 201 may include the name of the operator (China Mobile), mobile network (for example, 4G), time and remaining power.
  • the status bar 201 may include one or more of the signal strength of the mobile network, a Bluetooth icon, a WiFi icon, a screen lock icon, and an external device icon.
  • the user interface 200 may further include a Dock bar.
  • the Dock bar can include icons for commonly used applications, such as phone icons, short message icons, mail icons, and weather icons. It should be understood that the user can set the icons of commonly used applications in the Dock bar according to their own needs.
  • the electronic device 100 may further include a home button 205.
  • the home screen key 205 may be a physical key or a virtual key.
  • the home screen key 205 is used to return the user interface of a certain application displayed on the display screen 194 or a user interface such as a negative screen to the main interface according to the user's operation, so that it is convenient for the user to view the main interface at any time, and Controls (such as icons, etc.) to operate.
  • a negative screen may be a user interface 210 as shown in FIG. 2A, where the user interface 210 includes a search box 211 and may also include one or more widgets, such as a calendar widget212 and a smart home widget213.
  • the display screen 194 of the electronic device 100 displays the user interface 200, it can respond to the user's touch operation on the calendar icon 203.
  • the calendar user interface 220 is displayed on the display screen 194, and the calendar user interface 220 can be To display a specific date, for example, to display a specific year, month, and day, the user interface 220 may also include a fortune widget 221, which may display the fortune situation of the day (August 12, 2011), such as "good”.
  • the user interface 220 may also include a weather widget 222, which may display the weather conditions of the current day (August 12, 2011).
  • the widget can be displayed on a negative screen or on the user interface of an application.
  • the widget directly displays the service or content that the user cares about most to the user. The following describes how the content of the widget is displayed.
  • the user can configure which content the widget displays on the user interface of the host APP of the widget.
  • the electronic device 100 stores the configuration information of the content displayed by the widget configured by the user into the memory space of the widget through the host APP.
  • the electronic device The content of the corresponding widget can be obtained from the CP server according to the configuration information stored in the memory space of the widget, and the content of the widget obtained from the CP server can be displayed on the display screen 194. Take the display of the content of the team concerned in the widget as an example.
  • the electronic device 100 displays a user interface 260 on the display screen 194.
  • the user interface 260 includes a widget 261 and a virtual button 262.
  • the widget 261 displays the team. Game information for teams named Rockets and Spurs.
  • the electronic device 100 may display the user interface 270 on the display screen 194 in response to the user's operation of the virtual button 262.
  • the user interface 270 includes options for multiple team names, such as Rockets, Spurs, Grizzlies, Suns, Wizards, etc.
  • the user can select a team through the virtual button 272.
  • the user interface 270 may also include a virtual button 271.
  • the user can select one or more team name options in the user interface 270 and then operate the virtual button 271 so that the electronic device 100 can respond.
  • the game situation of the corresponding team name selected by the user is displayed in the widget 261.
  • the user can operate the virtual button 271 after selecting one or more team name options in the user interface 270, so that the electronic device 100 can respond to the operation of the virtual button 271 and select the corresponding one selected by the user.
  • the team name is stored in a corresponding memory (for example, internal memory 121, external memory, or dedicated memory, etc.), and the user interface 260 is displayed on the display screen 194 according to the corresponding team name selected by the user stored in the memory.
  • the user interface 260 includes a widget 261, and the widget 261 displays the game situation of the corresponding team name selected by the user.
  • the electronic device 100 displays the user interface 260 on the display screen 194 in response to the user's operation of the virtual button 271.
  • the user interface 260 includes a widget 261, where the widget 261 displays information about the game of the Rockets and Suns.
  • the widget261 in the electronic device 100 can obtain the game information corresponding to the team name selected by the user from the CP server for providing the content of the widget261 according to the team name selected by the user. And display the game information corresponding to the team name selected by the user through widget261.
  • the widget in the electronic device 100 can send identity authentication credentials to the CP server for providing the content displayed by the widget.
  • the CP server passes the identity authentication of the electronic device 100 according to the identity authentication credentials, it sends the content that the corresponding widget needs to display to the electronic device 100.
  • the electronic device 100 displays the corresponding content .
  • the way of obtaining corresponding content through identity authentication credentials helps to improve security.
  • the electronic device 100 may obtain identity authentication credentials based on the following methods:
  • the electronic device 100 can obtain identity authentication credentials from the CP server, where the identity authentication credential is the process of registering or logging in to the user account of the CP server by the host APP, and the CP server assigns it to the electronic device 100 according to the user account of the registered or logged-in host APP.
  • the electronic device 100 stores the identity authentication credential in the memory space of the host APP, and may also store it in the memory space of the widget.
  • the identity authentication credentials can be obtained from the memory space of the widget or the memory space of the host APP of the widget.
  • the host APP of widget1 is the negative one screen APP
  • the user account of the negative one screen APP is the device account, which can be registered on the system setting interface.
  • the identity authentication credentials can be based on the CP server. If the device account is assigned to the electronic device 100, when the widget1 needs to obtain the corresponding content, the identity authentication credential can be obtained from the memory space corresponding to the negative screen.
  • the content of the widget and the content of the host APP of the widget are provided by different CP servers.
  • the electronic device 100 will not be based on the user account of the host APP.
  • the acquired identity authentication credentials are stored in the storage space of the widget, and the widget is also not allowed to use the identity authentication credentials obtained by the user account of the host APP, so the widget cannot obtain non-public content information based on the identity authentication credentials.
  • the embodiment of the present application provides a display method that can bind the account of the native APP of the widget and the frame number of the host APP, so that the widget in the electronic device 100 can obtain the CP used to access the content of the widget.
  • the server's identity authentication credentials thereby improving the security and diversity of the content of the widget.
  • the method and the electronic device are based on the same technical idea. Since the method and the electronic device have similar principles for solving problems, the embodiments of the electronic device and the method can be referred to each other, and the repetitive parts will not be repeated.
  • an embodiment of the present application provides a content display method, which may be implemented in an electronic device 100 having the hardware structure shown in FIG. 1. It should be noted that, for the convenience of description, the CP server used to provide the content of the host APP is referred to as the first server, and the CP server used to provide the content of the widget is referred to as the second server.
  • any user account registered from the first server of the host APP can be called the first user account, and the identity authentication credential corresponding to the first user account is called the first identity Authentication credentials
  • any user account registered by the native APP of the widget from the second server is called the second user account
  • the identity authentication credential corresponding to the second user account is called the second identity authentication credential.
  • the user can log in to the native APP or the web page of the second server, and use the second user account to access the second server for personalized configuration.
  • the second server saves personalized configuration information for the second user account.
  • the widget of the electronic device 110 can access the second server according to the second identity authentication credentials of the second user account to obtain the personalization of the second user account
  • the content corresponding to the configuration information is displayed to improve user experience.
  • FIG. 3 a schematic flowchart of a content display method provided in an embodiment of the present application specifically includes the following steps.
  • step 30 the electronic device 100 displays the first user interface on the display screen 194.
  • the first user interface may be a main user interface, a negative one screen, or a user interface of a certain application, which is not limited.
  • Step 31 The electronic device 100 receives a first operation of the user, where the first operation is used to control the electronic device 100 to display a second user interface on the display screen 194, where the second user interface includes a widget.
  • the first operation may be an operation of a certain application icon by the user, a sliding operation on the main interface, a voice command, or a shortcut gesture operation, etc., which is not limited.
  • the first operation may be a right sliding operation of the user on the main interface.
  • the negative screen is the user interface 210 shown in FIG. 2A, including the calendar widget 212 and the smart home widget 213, and the first operation may be a rightward sliding operation on the user interface 200 by the user.
  • the first operation may be an operation of the user on the application icon.
  • the user interface of the calendar is the user interface 220 shown in FIG. 2B, including the fortune widget 221 and the weather wideget, and the first operation may be a touch operation of the calendar icon 203 on the user interface 200 by the user.
  • the touch sensor 182 of the electronic device 100 detects the user's touch operation on the display 194, and reports the user's touch position information on the display 194 to the processor 110.
  • the processor 110 determines the touch according to the touch position information reported by the touch sensor 182
  • the sensor 182 receives the first operation.
  • Step 32 In response to the first operation, the electronic device 100 sends a first authentication acquisition request to the first server.
  • the first authentication acquisition request includes at least one of the first user account and the first identity authentication credentials.
  • the obtaining request may be used to obtain the second identity authentication credential for the widget to be displayed to access the second server.
  • the first identity authentication credential is used by the first server to perform identity authentication on the electronic device, and is allocated by the first server to the electronic device 100 according to the first user account of the host APP of the widget.
  • the user can register with the first server through the first user account on the host APP or the webpage of the first server, and the subsequent electronic device can log in to the first server through the registered first user account, and log in to the first server.
  • the resource of the first server is acquired.
  • the electronic device 100 sends a first authentication acquisition request to the first server, and the first authentication acquisition request includes the first user account.
  • User account includes user name and password.
  • Each user account that has been successfully registered is stored in the first server.
  • the first server may perform identity verification on the electronic device according to each user account stored in advance, and after the identity verification is passed, the corresponding resource is sent to the electronic device 100.
  • the first server may generate the first identity authentication credential corresponding to the first user account according to the first user account, and send the generated first identity authentication credential corresponding to the first user account to the electronic device 100. It may be agreed that the first server performs identity verification on the electronic device 100 according to the first identity authentication credential, that is, when the electronic device 100 obtains the resources of the first server through the first user account, it may use the first identity corresponding to the first user account.
  • Authentication credential acquisition For example, the electronic device 100 sends a first authentication acquisition request to the first server.
  • the first authentication acquisition request includes the first identity authentication credentials corresponding to the first user account, and each user account is stored in the first server.
  • the first server can determine whether the first identity authentication credential is saved, if it is saved, it is determined that the electronic device 100 has passed the identity verification, and if it is not saved, it is determined The identity verification of the electronic device 100 fails.
  • the first server may be agreed that the first server will perform identity verification on the electronic device 100 based on the first user account and the first identity authentication credentials, and the first authentication acquisition request may include the first user account and the corresponding The first identity authentication credential.
  • the first server determines whether the first user account and the first identity authentication credential corresponding to the first user account are stored according to the pre-stored each user account and the identity authentication credential corresponding to each user account, and if so, then It is determined that the first server has passed the identity verification of the electronic device 100, and the first server may send the corresponding resource to the electronic device 100.
  • the electronic device 100 may also send the information of the electronic device 100 to the first server when registering or logging in to the first server through the first user account. logo.
  • the first server may also save the identification of the electronic device corresponding to the first user account. In some embodiments, it may be agreed that the first server also performs identity verification on the electronic device according to the identification of the electronic device.
  • the electronic device is authenticated according to the first user account, the first identity authentication credential corresponding to the first user account, and the identity of the electronic device, and the electronic device 100 sends the first authentication acquisition request to the first server, and the first authentication
  • the obtaining request includes the first user account, the first identity authentication credential corresponding to the first user account, and the identification of the electronic device 100.
  • the first server determines whether the first user account, the first identity authentication credential corresponding to the first user account, and the identification of the electronic device corresponding to the first user account are stored. If so, the identity verification of the electronic device 100 passes. If the first user account and the first identity authentication credential are verified, but the identity of the electronic device is not verified, the first server may send prompt information to the electronic device 100 whether the first user account has been stolen. The electronic device 100 then verifies the user identity through other methods.
  • the first identity authentication credential may be assigned by the first server to the first user account when the first user account registers with the first server. After registering the first user account, the user sometimes forgets to use it. For the first server, it does not make sense to assign the first identity authentication credential to the first user account. Based on this, the first identity authentication credential can also be used When the first user account logs in to the first server for the first time, the first server is assigned to the first user account.
  • the electronic device displays a third user interface; the third user interface includes a user account input area; the electronic device responds to the user entering the first user account in the user account input area to complete the operation
  • the first server sends a first request, the first request is for the electronic device to log in or register with the first server, the first request includes the first user account; the electronic device receives all The response to the first request sent by the first server, the response to the first request includes the first identity authentication credential, wherein the first identity authentication credential is the first server according to the first user account Assigned to the electronic device.
  • the user logs into the third user interface 230 of the first server through the first user account on the electronic device 100, and the user can enter the first user account, that is, the user name and password, in the third user interface 230.
  • the "login" button is clicked, and the electronic device 100 responds to the operation of clicking the login button and sends a login request to the first server.
  • the login request includes a user account for login. If this login is the first login, the first identity authentication credential corresponding to the first user account is sent to the electronic device 100.
  • the first server may determine whether the first identity authentication credential corresponding to the first user account is stored according to whether For the first login, if it is determined that the first identity authentication credential corresponding to the first user account has not been saved, it can be determined that it is the first login, the first identity authentication credential corresponding to the first user account is generated, and the first user account corresponds to The first identity authentication credential is sent to the electronic device 100, and the first server may also save the first user account and the first identity authentication credential corresponding to the first user account. If this login is not the first login, generally, the login request includes the first user account and the first identity authentication credential corresponding to the first user account.
  • the user can register or log in on the system setting interface of the electronic device 100.
  • the electronic device 100 receives the first user account sent by the first server and corresponds to the first user account. After the first identity authentication credential of the first user account, the electronic device 100 may share the first user account and the first identity authentication credential corresponding to the first user account to the host APP. For example, the identities corresponding to the first user account and the first user account The authentication credentials are stored in the storage space of the host APP, and the host APP obtains the first user account and the first identity authentication credentials corresponding to the first user account.
  • the host APP is a third-party APP
  • the user can register or log in on the user interface of the third-party APP, and the third-party APP of the electronic device 100 receives the first user account sent by the first server and the first user account corresponding to the first user account.
  • the third-party APP stores the first user account, that is, the first identity authentication credential corresponding to the first user account, in its own storage space.
  • the process for other APPs to obtain the identity authentication credentials is the same as the process for the host APP to obtain the first identity authentication credentials.
  • the processor 110 of the electronic device 100 may respond to the first operation and send to the first server through the mobile communication module 151 and/or the wireless communication module 152 The first certification acquisition request.
  • the processor 110 of the electronic device 100 invokes the host APP, and sends the first authentication acquisition request to the first server through the mobile communication module 151 and/or the wireless communication module 152.
  • Step 33 After receiving the first authentication obtaining request, the first server obtains the second identity authentication credential according to at least one of the first user account and the first identity authentication credential, and sends the first authentication obtaining request to the electronic device 100
  • the response of the first authentication acquisition request includes the second identity authentication credential, where the second identity authentication credential is used by the second server to authenticate the electronic device, and the second identity authentication credential is the first identity authentication credential according to the widget’s native APP 2.
  • CP servers of two different manufacturers can use account association technology to associate two user accounts belonging to different manufacturers. For example, a user account of Huawei is associated with a user account of Gree.
  • a user account of a manufacturer can be associated with two user accounts belonging to different manufacturers at the same time.
  • a user account of Huawei can be associated with a user account of Gree and a user account of Haier at the same time, but the user account of one manufacturer cannot Simultaneously associate with two user accounts belonging to the same manufacturer.
  • one user account of Huawei cannot be associated with two user accounts of Gree at the same time.
  • it can be understood to associate the first user account of the first server with the second user account of the second server, and the second server shares the second identity authentication credentials for the second user account to access the second server with The first server enables the first server to hold the identity authentication credentials for the second user account to access the second server.
  • the user interface 300 of the host APP includes a button 301 for account binding.
  • the electronic device can display the user interface 310 in response to the user's operation of the button 301.
  • the user interface 310 includes the account binding.
  • the user interface 310 includes the text information of the smart home widget 311, and the user interface 310 may also display a button for account binding. 312, for example, displays bound or unbound.
  • the electronic device In response to the user's operation of the button 312, the electronic device recognizes whether the first user account of the host APP is currently logged in. If not, the user interface 320 for account login is displayed. The user can enter the first user account, that is, the user name and password, to log in in the user interface 320. If it is a negative screen of a Huawei mobile phone, the first user account is Huawei After receiving the login success response message sent by the first server, the electronic device jumps to the user interface 330. If the electronic device recognizes that the first user account of the host APP is currently logged in, it can jump to the user interface 330 directly.
  • the user interface 330 is the user interface of the native APP of the login widget, that is, the login interface of the second user account to be bound to the account.
  • the host APP may first generate a link to the user account of the native APP for logging in to the widget, and the host APP opens the link to jump to the user interface 330.
  • the APP to which the user interface 330 belongs is called the native sub-APP, and the host APP may also send the first user account to be bound to the native sub-APP.
  • the native child APP is a part of the native APP.
  • the electronic device receives the user's operation of the login button on the user interface 330, and the native sub APP in the electronic device sends a login request to the second server in response to the user's operation.
  • the login request includes the second user account and instructions Instructions for account association.
  • the second server can allocate the third identity authentication credential corresponding to the second user account to the electronic device for the second user account. For example, the second server sends the original child APP of the electronic device to the electronic device. Sending a response to the login request, where the response to the login request includes a third identity authentication credential, and the third identity authentication credential is used to associate the second user account with other user accounts.
  • the second server saves the third identity authentication credential corresponding to the second user account.
  • the native sub-APP in the electronic device can send the third identity authentication credential to the host APP, and can also send the first user account to the host APP, so that the host APP knows it is
  • the third identity authentication credential is associated with the first user account.
  • the host APP of the electronic device may send a first account association request to the first server.
  • the first account association request includes the first user account and the first user account corresponding to the widget. The identity of the second server, and the third identity authentication credential.
  • the host APP may not only send the first user account to be bound with the account to the native child APP, but also send the access address of the first server of the host APP to the native child APP.
  • the native child APP After the native child APP receives the response to the login request sent by the second server, it can directly send the first user account association request to the first server based on the access address of the first server without going through the host APP, and the native child APP sends the first user account association request to the first server.
  • the first user account association request sent by the server includes the first user account, the identifier of the second server corresponding to the widget, and the third identity authentication credential.
  • the subsequent host APP can query the first server whether the first user account is successfully associated.
  • the first server receives the first user account association request sent by the electronic device, the first server sends a second account association request to the identified second server, and the second account association request includes the third identity authentication credential and The first user account.
  • the second server may determine whether the third account association request in the second account association request is stored according to the pre-saved identity authentication credentials corresponding to each user account for account association.
  • the identity authentication credential if stored, identifies the second user account corresponding to the third identity authentication credential, and sends a response to the second account association request to the first server.
  • the response to the second account association request includes the first user
  • the account, the second identity authentication credential may also include the second user account.
  • the first server may save the second identity authentication credential for the first user account, and may also save the second user account associated with the first user account.
  • the first server may also send a response to the first account association request to the electronic device to indicate that the account association is successful.
  • An example user interface 340 shown in FIG. 2G displays a prompt message indicating that the account is successfully associated.
  • the first server may authenticate the identity of the electronic device according to at least one of the first user account and the first identity authentication credential.
  • the second identity authentication credential can be obtained according to at least one of the first user account and the first identity authentication credential.
  • it is determined according to the associated user account saved in advance. Whether the second user account associated with the first user account is stored, if so, the second identity authentication credential of the second user account associated with the first user account is obtained.
  • the first server sends the second identity authentication credential to the electronic device 100.
  • the first server When the first server sends the second identity authentication credential to the electronic device 100, it may be the first user account and/or the first user account that associates the second identity authentication credential and the second user account corresponding to the second identity authentication credential.
  • the identity authentication credentials are sent to the electronic device 100 in pairs, so that the electronic device 100 recognizes which user account the second identity authentication credential sent by the first server is associated with.
  • the response to the first authentication acquisition request includes the second identity authentication credential, and may also include the first user account associated with the second user account and/or the first identity authentication credential corresponding to the first user account.
  • the first server stores an identifier of the second server to which the second user account belongs.
  • the second identity authentication credential may be authenticated for each second identity authentication credential.
  • the credentials and the corresponding identification of the second server are sent to the electronic device 100 in pairs.
  • the response to the first authentication acquisition request includes at least one second identity authentication credential, and each identity authentication credential corresponds to an identifier of the second server that allocates the identity authentication credential.
  • the host APP of the electronic device 100 stores the manufacturer to which each widget belongs, that is, stores the identifier of the second server corresponding to each widget.
  • the host APP may store each second identity authentication credential in the storage space of the corresponding widget according to the identifier of the second server corresponding to each second identity authentication credential sent by the first server.
  • each widget may belong to a different manufacturer, that is, it corresponds to a different one.
  • the second server it is also possible that the two widgets displayed belong to the same manufacturer and correspond to the same second server.
  • Which widgets are displayed on the display 194 can be determined by the user's settings. In other words, even if multiple second user accounts associated with the first user account are stored in the first server, the electronic device may not display the widget of the second server to which a certain second user account belongs.
  • the first The server sends the second identity authentication credential corresponding to the second user account of the undisplayed widget to the host APP of the electronic device, which is meaningless and wastes transmission resources.
  • the first authentication acquisition request sent by the electronic device 100 to the first server may also include the identifier of the second server corresponding to the widget to be displayed, that is, the identifier of the manufacturer to which the widget belongs.
  • the host APP knows the user The identifier of the second server to which each widget to be displayed in the interface belongs. For example, if the widget to be displayed includes a smart home widget of a Midea manufacturer, the first authentication acquisition request includes the identification "Midea".
  • the first server after receiving the first authentication acquisition request, the first server first performs identity verification, and then obtains the second identity authentication according to at least one of the first user account and the first identity authentication credentials, and the identity of the second server Credentials, as an example of the specific process, determine whether there is a second user account associated with the first user account according to the pre-saved associated user account, and if so, determine the second user associated with the first user account Account, and then according to the pre-saved identifier of the second server corresponding to each second user account, among the determined second user accounts associated with the first user account, the first authentication acquisition request included in the first authentication acquisition request is filtered out. The second user account corresponding to the identifier of the second server, and then obtaining the second identity authentication credential corresponding to the second user account that is screened out.
  • the first server When the first server sends the second identity authentication credential to the electronic device 100, it may send the second identity authentication credential and the identification of the second server corresponding to the second identity authentication credential to the electronic device 100 in pairs, so that the electronic device 100 The device 100 recognizes which second server the second identity authentication credential sent by the first server belongs to.
  • the response to the first authentication acquisition request includes the second identity authentication credential, and may also include the identifier of the second server corresponding to the second user account.
  • Step 34 After receiving the response to the first authentication acquisition request, the electronic device 100 sends the first content acquisition request to the second server.
  • the first content acquisition request is used to acquire content information to be displayed by the widget, and the first content acquisition request includes the second identity authentication credential.
  • the electronic device 100 receives the second identity authentication credential sent from the first server through the mobile communication module 151 and/or the wireless communication module 152.
  • the processor 110 of the electronic device 100 calls the host APP, and receives the second identity authentication credential sent from the first server through the mobile communication module 151 and/or the wireless communication module 152.
  • the host APP may store the second identity authentication credential in the memory space of the widget after loading the widget or before loading the widget.
  • the host APP stores the second identity authentication credential in the storage space of the widget, it may be stored by calling the interface setJsView Data(data), where data is the real value of the second identity authentication credential.
  • Step 35 After receiving the first content acquisition request, the second server authenticates the electronic device 100 according to the second identity authentication credential, and if the verification succeeds, sends the first acquisition success response of the first content acquisition request to the electronic device 100 .
  • the first acquisition success response includes content information to be displayed by the widget.
  • the electronic device 100 sends a first content acquisition request to the second server corresponding to the widget to be displayed, where the first content acquisition request includes the second identity authentication credential for the widget to be displayed to access the second server, and the first content acquisition The request is used to obtain the content information to be displayed in the widget.
  • the processor 110 of the electronic device 100 may send the first content acquisition request to the second server through the mobile communication module 151 and/or the wireless communication module 152.
  • the processor 110 of the electronic device 100 calls the program of the widget to be displayed in the user interface of the host APP, and sends the first content acquisition request to the second server corresponding to the widget through the mobile communication module 151 and/or the wireless communication module 152.
  • the host APP in the electronic device can load the widget, and the widget obtains the memory variable data, that is, obtains the second identity authentication credential (data.cpAccessToken) from its own memory space, and the widget can send the first content acquisition request to the second server ,
  • the first content acquisition request includes the second identity authentication credential, and the first content acquisition request is used to acquire content information to be displayed in the widget.
  • the widget can use the HTTPS protocol to send a message to the second server, and carry Authorization: Bearer ACCESS_TOKEN in the request header field, where ACCESS_TOKEN represents the second identity authentication credential, and this field can be filled with data.cp Access Token The true value of.
  • the second server may perform identity authentication on the electronic device 100 according to the second identity authentication credential, that is, authenticate the user's identity according to ACCESS_TOKEN. For example, the second server determines whether the second user account corresponding to the second identity authentication credential is stored according to the pre-stored identity authentication credential corresponding to each user account, and if so, the identity authentication is passed. Then, according to the pre-saved configuration information corresponding to each user account, the second configuration information corresponding to the second user account is determined, and the content information corresponding to the second configuration information is extracted, that is, the content information to be displayed by the widget, and then the widget to be displayed The content information is sent to the electronic device.
  • the second identity authentication credential that is, authenticate the user's identity according to ACCESS_TOKEN. For example, the second server determines whether the second user account corresponding to the second identity authentication credential is stored according to the pre-stored identity authentication credential corresponding to each user account, and if so, the identity authentication is passed.
  • the user can also access the second server through the second user account on the widget’s native APP or the webpage of the second server, and perform personalized configuration, such as configuring the team logo, stock logo, etc. You can also configure the identification of one or more devices in the smart home.
  • the second server may extract corresponding content information, such as team game information, stock trend information, device switch information, etc., based on the configuration information corresponding to the second user account, and send it to the widget.
  • each widget has its corresponding type.
  • the type of air conditioner widget is air conditioner
  • the type of refrigerator widget is refrigerator, etc.
  • the type of smart home widget is smart home.
  • each widget has its type identifier, and the corresponding relationship between the type identifier of each widget and the configuration information of the widget is stored in the second server.
  • the user can perform personalized configuration for different widget type identifications, for example, for the widget configuration identified as smart home
  • the device's identification configure the stock's identification for the widget whose identification is stock.
  • the user interface of the host APP may display multiple widgets, and each widget can send the first content acquisition request to its corresponding second server.
  • the electronic device 100 sends a first content acquisition request to the second server.
  • the first content acquisition request includes the second identity authentication credential, and the The type identification of each widget displayed.
  • the second server determines the configuration information corresponding to the type identifier of each widget in the second configuration information corresponding to the second user account, extracts the content information corresponding to the configuration information, and converts the type identifier of the widget and its corresponding content information into
  • the response to the first content acquisition request includes the type identification of each widget and the content information to be displayed for each widget.
  • Step 36 After the electronic device 100 receives the response to the first content acquisition request, it displays a second user interface on the display screen 194 according to the information included in the first acquisition success response of the first content acquisition request, where the second user The interface includes widgets. The corresponding content information is displayed in each widget.
  • the electronic device 100 may receive content information from the second server through the mobile communication module 151 and/or the wireless communication module 152.
  • the processor 110 of the electronic device 100 calls the widget, receives the content information sent by the second server through the mobile communication module 151 and/or the wireless communication module 152, and displays the content information.
  • the developer of the second server has developed smart home widgets and ball game widgets.
  • users can configure the identification of the main bedroom air conditioner and the second bedroom air conditioner for the widgets whose type is identified as smart home on the second server.
  • the logo of the TV, the logo of the light, and the team's logo are configured for the widget whose type is the ball game.
  • the second server can identify that the widget whose content information is to be acquired is a smart home widget.
  • the second server identifies the configuration information corresponding to the type identification of the smart home widget: the identification of the main bedroom air conditioner, the identification of the secondary bedroom air conditioner, the identification of the TV, the identification of the light, etc., and then obtains the currently saved status of each device, that is, the configuration information
  • Corresponding content information such as whether the main bedroom air conditioner is on or off, the working temperature of the secondary bedroom air conditioner, the room temperature detected by the main bedroom air conditioner, whether the TV is on or off, etc., and the obtained content information is sent to the electronic device 100.
  • the type of widget sent is identified as smart home.
  • the content information sent by the second server to the electronic device 100 includes: the air conditioner in the master bedroom is turned on, the working temperature of the air conditioner is 24°C, and the room temperature is 26°C, the air conditioner in the second bedroom is turned off, and the TV is turned off. , The master bedroom light is on. You can also include more information, which will not be listed here. In the smart home widget 213 of the negative one-screen user interface 240 of the electronic device, corresponding content information can be displayed.
  • the user interface 240 includes a button 241 for adjusting the switch state of the device.
  • the display area of the button 241 can display the words “on” or “off”, where on means the device In the on state, off means the device is off.
  • the user can operate the button 241, and the electronic device changes the on or off state of the device in response to the user's operation of the button 241, for example, if the current display is "on", then It means that the device is in the on state, and the user can click the button 241 displayed as "on” to update the state of the device to off.
  • the user interface 240 may also include buttons 242 and 243 for adjusting the operating temperature of the air conditioner.
  • the button 242 (up arrow) can be used to increase the operating temperature of the air conditioner, and the button 243 (down arrow) can be used to decrease the operating temperature of the air conditioner. The operating temperature of the air conditioner.
  • the user interface 240 may further include a button 244, and the word "refresh" is displayed in the display area of the button 244.
  • the button 244 may be used to refresh the content displayed in the smart home widget.
  • the card includes the folded state and the unfolded state.
  • the card in the folded state has its specified size. When there are many devices, the card in the folded state generally cannot display all the state information of the device. When the status is expanded, regardless of the size of the user interface, the status of all pre-configured devices can generally be displayed.
  • the user interface 240 may also include a button 245, which can be used to change the expanded or collapsed state of the card.
  • the display area of the button 245 displays the words "folded” or "expanded”, for example, the displayed words When it is unfolded, it means that the card is in the folded state, and when it is folded, it means that the card is in the unfolded state.
  • the corresponding content that the electronic device 100 has obtained from the second server side is displayed in the widget, and the user can further interact on the widget.
  • FIG. 4 a schematic flowchart of a content display method provided in an embodiment of the present application specifically includes the following steps.
  • Step 40 The electronic device 100 displays a second user interface on the display screen 194, and the second user interface includes a widget.
  • the second user interface is the second user interface displayed in step 36 above.
  • the first user interface may be a main user interface, a negative one screen, or a user interface of a certain application, which is not limited.
  • Step 41 The electronic device receives a second operation of the user on the displayed widget, where the second operation is used to control the electronic device 100 to update the content information displayed in the widget.
  • the second operation may be a sliding operation, a tap operation, a double-click operation, a voice command, or a shortcut gesture operation on the second user interface for a certain widget by the user, which is not limited.
  • the second operation is the user's operation of a certain widget as an example.
  • the second operation is used to control the electronic device 100 to update the content information of the widget displayed on the display screen 194 according to the operation information of the second operation.
  • the touch sensor 182 in the electronic device detects the user's touch operation on the display screen 194, the touch sensor 182 reports the user's touch position information on the display screen 194 to the processor 110, and the processor 100 according to The touch position information determines that the touch sensor 182 receives the second operation.
  • Step 42 In response to the second operation, the electronic device 100 sends a second content acquisition request to the second server.
  • the second content acquisition request includes the second identity authentication credential and the operation information of the second operation.
  • the second content The obtaining request is used to obtain the content information corresponding to the operation information of the second operation, that is, the content information displayed by the widget to be updated.
  • the second content acquisition request may also include the type identifier of the widget. If the second operation is a touch operation, the type identifier of the widget in the second content acquisition request is the type identifier of the widget displayed at the touch position of the second operation.
  • the widget can send another control message to the second server (Authorization: Bearer ACCESS_TOKEN is carried in the request header field, where ACCESS_TOKEN is filled with the real value of data.cp AccessToken).
  • Authorization Bearer ACCESS_TOKEN is carried in the request header field, where ACCESS_TOKEN is filled with the real value of data.cp AccessToken.
  • the principle of the electronic device sending the second content acquisition request to the second server in the above step 42 is similar to the principle of the electronic device sending the first content acquisition request to the second server in the above step 34, and the repetition will not be repeated.
  • Step 43 After receiving the second content acquisition request sent by the electronic device, the second server may authenticate the electronic device 100 according to the second identity authentication credential, execute the process corresponding to the operation information, and the electronic device 100 sends the second content
  • the second acquisition success response of the acquisition request includes content information to be displayed by the widget to be updated, that is, content information corresponding to the operation information of the second operation.
  • the execution process after the second server receives the second content acquisition request in the foregoing step 43 is similar to the execution process after the second server receives the first content acquisition request in the foregoing step 35, and the repetition will not be repeated.
  • Step 44 After receiving the response to the second content acquisition request sent by the second server, the electronic device 100 updates the content information displayed in the widget according to the content information included in the second acquisition success response.
  • the user performs a heating operation on the temperature of the main bedroom air conditioner, that is, clicks the button 242 (up arrow), and the operation of clicking the button 242 is the second operation.
  • the second server receives the operation information of the second operation in the second content acquisition request sent by the electronic device 100 to increase the working temperature of the master bedroom air conditioner by 1°C, and the second server can send the corresponding master bedroom air conditioner Send a heating instruction and return to the electronic device 100 that the working temperature of the main bedroom air conditioner is 25°C, or the temperature of the main bedroom air conditioner rises by 1°C, the electronic device 100 can change the smart home widget display according to the content information sent by the second server The status of the device is to update the operating temperature from the original 24°C to 25°C.
  • the user's operations on the button 244, the button 241, and the button 243 can all be regarded as the second operation.
  • the operation information of the second operation is to reduce the working temperature of the main bedroom air conditioner by n°C
  • the value of n is related to the number of operations and the value corresponding to one operation set in advance.
  • the information of the second operation is to close the master bedroom space or open the master bedroom space.
  • the second operation is an operation on the button 241 corresponding to the TV
  • the information of the second operation is turning off the TV or turning on the TV.
  • the identity authentication credential used to access the second server to obtain resources of the second server has a validity period, and the validity period is generally 24 hours, or 12 hours, or 72 hours, etc. After the validity period expires, the identity authentication credentials will become invalid, and the server resources can no longer be obtained through the identity authentication credentials.
  • the second server of the widget can record the generation time and effective time of each identity authentication credential used to access the second server. When it is determined that the validity time of the authentication credential has exceeded, the second server can generate a new identity authentication credential, and Use new identity authentication credentials to update the previous identity authentication credentials.
  • the second server can actively share the new identity authentication credential to the first server.
  • the first server can also record the generation time of the identity authentication credential used to access the second server, and record the effective time.
  • the second server can request a new identity authentication credential. The second server sends the new identity authentication credential to the first server according to the request of the first server.
  • the second server cannot find the second user account corresponding to the second identity authentication credential in the content obtaining request. 2.
  • the identity authentication credentials are invalid, and the second server may send content acquisition failure response information to the electronic device 100.
  • the electronic device may not update the content information displayed in the widget first.
  • the electronic device 100 may send a second authentication credential acquisition request to the first server, where the second authentication credential acquisition request includes the first identity authentication credential assigned by the first server to the electronic device, and the second authentication credential acquisition request is used for Re-obtain the second identity authentication credential for accessing the second server.
  • the process of the electronic device 100 sending the second authentication credential acquisition request to the first server is the same as the process of the electronic device 100 sending the first authentication acquisition request to the first server in step 32, and the repetition will not be repeated.
  • the process performed by the first server after receiving the second authentication credential acquisition request sent by the electronic device 100 is the same as the process in the above-mentioned step 33, and the repetition will not be repeated.
  • the electronic device After receiving the response to the second authentication credential acquisition request sent by the first server, the electronic device re-sends the second content acquisition request to the second server, where the response to the second authentication credential request includes the updated second identity authentication credential,
  • the second content acquisition request includes the operation information of the second operation and the updated second identity authentication credential, until the received second content acquisition request is successfully acquired in response to the electronic device 100 updating the content information displayed in the widget .
  • the widget of the electronic device may send a message requesting reload to the host APP, and carry operation information corresponding to the second operation of the user.
  • the reloaded message can be, for example:
  • the host APP may send a first authentication acquisition request to the first server as in the previous step 32, and the first authentication acquisition request includes that the first server is the first user account The assigned first identity authentication credential used to access the first server.
  • the host APP obtains the new second identity authentication credential used to access the second server, it will store the obtained new second identity authentication credential in In the memory space of the widget, the host APP can also send operation information corresponding to the second operation to the widget, and the operation information has not been executed yet.
  • the widget After the widget obtains the new second identity authentication credential, it can access the second server, perform the second operation, and display the second operation based on the previously uncompleted second operation and the obtained new second identity authentication credential. Required content information.
  • the new authentication credentials obtained may also be invalid.
  • the host APP also needs to suppress the refresh frequency of the widget, for example, a widget is only allowed within 1 minute Refresh once or twice, etc.
  • the method provided in the embodiments of the present application is introduced from the perspective of the electronic device, the first server, and the second server as the execution subject.
  • the electronic device, the first server, and the second server may include hardware structures and/or software modules, with hardware structures, software modules, or hardware structures plus software modules To achieve the above functions. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • FIG. 5 shows a device 500 provided in this application.
  • the device 500 includes a transceiver module 501 and a processing module 502.
  • the device 500 when the device 500 is an electronic device, the device 500 can perform the steps performed by the electronic device in the display method shown in FIG. 3, for example, the transceiver module 501 can be used to perform steps 32, 34, etc., and the processing module 502 can be used ⁇ Execute step 36.
  • the device 500 can also perform the steps performed by the electronic device in the display method shown in FIG. 4, for example, the transceiver module 501 can be used to perform step 42 and step 43, and the processing module 502 can be used to perform step 40, step 41, and step 44.
  • the device 500 may execute the steps executed by the first server in the display method shown in FIG. 3.
  • the transceiver module 501 can be used to perform the receiving and sending operations in step 33.
  • the processing module 502 may be configured to perform the operation of obtaining the second identity authentication credential in step 33.
  • the device 500 may also execute the steps executed by the first server in the display method shown in FIG. 4.
  • the device 500 may execute the steps executed by the second server in the display method shown in FIG. 3.
  • the transceiver module 501 can be used to perform the receiving and sending operations in step 35.
  • the processing module 502 may be used to perform the verification operation in step 35.
  • the device 500 may also execute the steps executed by the second server in the display method shown in FIG. 4.
  • FIG. 7 shows a device 700 provided by this application.
  • the device 700 includes at least one processor 710, a memory 720, and a transceiver 730.
  • the processor 710 is coupled with the memory 720 and the transceiver 730.
  • the coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in electrical, mechanical or other forms for the device , Information exchange between units or modules.
  • the embodiment of the present application does not limit the connection medium between the transceiver 730, the processor 710, and the memory 720.
  • the memory 720, the processor 710, and the transceiver 730 may be connected by a bus, and the bus may be divided into an address bus, a data bus, and a control bus.
  • the memory 720 is used to store program instructions.
  • the transceiver 730 is used to receive or transmit data.
  • the processor 710 is configured to call program instructions stored in the memory 720, so that the device 700 executes the steps executed by the electronic device in FIG. 3 or FIG. 4, or executes the steps executed by the first server or the second server in FIG. 3 or FIG. 4 .
  • the processor 710 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
  • the memory 720 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory (volatile memory). For example, random-access memory (RAM).
  • the memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory in the embodiments of the present application may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
  • the device 500 and the device 700 may be used to implement the methods shown in FIG. 3 and FIG. 4 in the embodiments of the present application, and related features can be referred to above, and details are not described herein again.
  • an embodiment of the present application provides a content display system 600, which includes an electronic device 610, a first server 620, and a second server 630 that perform the foregoing content display process.
  • the embodiments of the present application can be implemented by hardware, firmware, or a combination of them.
  • the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD- ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other media that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer.
  • EEPROM electrically erasable programmable read-only memory
  • CD- ROM compact disc read-only memory
  • Any connection can suitably become a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (digital video discs, DVDs), floppy discs, and Blu-ray discs. Disks usually copy data magnetically, while disks use lasers to copy data optically. The above combination should also be included in the protection scope of the computer-readable medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及终端领域,公开了一种显示的方法及设备,用以提高用户使用widget的用户体验。方法为:电子设备接收用户的操作,操作用于控制显示包括widget的第二用户界面;向第一服务器发送第一认证获取请求,包括第一服务器分配的第一身份认证凭据,第一认证获取请求用于获取访问第二服务器的第二身份认证凭据,第一身份认证凭据与第二身份认证凭据相关联;电子设备接收第一服务器发送的第二身份认证凭据后,向第二服务器发送包括第二身份认证凭据的第一内容获取请求,第一内容获取请求用于获取widget中待显示的内容信息;接收第二服务器发送的内容信息,显示包括widget的第二用户界面。提高了用户使用widget的体验。

Description

一种显示的方法及设备
本申请要求在2019年5月8日提交中国国家知识产权局、申请号为201910380047.8的中国专利申请的优先权,发明名称为“一种内容呈现方法及设备”的中国专利申请的优先权,在2019年5月22日提交中国国家知识产权局、申请号为201910430945.X的中国专利申请的优先权,发明名称为“一种显示的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,尤其涉及一种显示的方法及设备。
背景技术
随着通讯技术的不断发展,电子设备(例如智能手机)越来越大众化、多样化,对于电子设备与用户进行交互的人机交互界面,其可用性与友好性越来越受到关注。因此,微件(widget)应用越来越广泛,一个widget是一段嵌入在其他应用程序(application,APP)中可执行、渲染的页面脚本,widget由其它APP加载运行,widget例如可以是:时钟widget、天气widget、搜索widget、股票widget、球赛widget等等。widget一般都很小,嵌入非常方便,运行快速,因此widget被广泛应用在诸如手机、电视、视频设备等各种各样的电子设备上,其形式也多样化,诸如幻灯片、视频、地图、新闻、小游戏等。widget直接将用户最关心的服务或内容展示给用户。
基于此,需要提出一种widget的内容显示的方法,通过widget将多种多样的内容显示给用户,提高用户使用widget的体验。
发明内容
本申请实施例提供一种显示方法及设备,用以提出一种显示的方法,提高用户使用widget的体验。
第一方面,本申请实施例提供了一种显示的方法,方法包括:
电子设备显示第一用户界面,在第一用户界面上接收用户的第一操作,所述第一操作用于控制电子设备显示第二用户界面,所述第二用户界面包括widget;电子设备响应于用户的第一操作,向第一服务器发送第一认证获取请求,所述第一认证获取请求中包括第一服务器为电子设备分配的第一身份认证凭据,所述第一认证获取请求用于获取访问第二服务器的第二身份认证凭据;需要获取的第二身份认证凭据与第一身份认证凭据相关联,所述第二服务器用于为所述widget的内容提供商CP服务器。第一服务器接收来自电子设备的第一认证获取请求,第一服务器根据预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定与第一身份认证凭据相关联的第二身份认证凭据,并将第二身份认证凭据携带在第一认证获取请求的响应中发送给电子设备。电子设备接收第一服务器发送的第一认证获取请求的响应后,向第 二服务器发送第一内容获取请求,所述第一内容获取请求中包括所述第二身份认证凭据,所述第一内容获取请求用于获取widget中待显示的内容信息。第二服务器接收来自电子设备的第一内容获取请求;第二服务器根据每个身份认证凭据对应的配置信息,确定第二身份认证凭据对应的第二配置信息,并获取第二配置信息对应的内容信息,将内容信息携带在第一内容获取请求的第一获取成功响应中发送给电子设备。电子设备接收第二服务器发送的第一内容获取请求的第一获取成功响应后,根据第一获取成功响应中包括的内容信息,显示第二用户界面,第二用户界面中包括widget,widget中显示有对应的内容信息。
在本申请实施例中,电子设备可以从第一服务器处获取访问第二服务器的第二身份认证凭据,进而可以根据第二身份认证凭据获取第二服务器的资源信息,使widget中显示的内容信息更加多样化,提高了用户使用widget的体验。
在一种可能的设计中,所述电子设备显示所述第二用户界面之后,电子设备在所述第二用户界面上接收用户对显示的所述widget的第二操作,所述第二操作用于控制电子设备更新widget中显示的内容信息;电子设备向第二服务器发送第二内容获取请求,所述第二内容获取请求中包括所述第二身份认证凭据和第二操作的操作信息,所述第二内容获取请求用于获取第二操作的操作信息对应的内容信息。第二服务器接收来自电子设备的第二内容获取请求;第二服务器在确定第二身份认证凭据有效后,执行所述操作信息,并将所述操作信息对应的内容信息携带在第二内容获取请求的第二获取成功响应中发送给电子设备。电子设备接收第二服务器发送的第二内容获取请求的第二获取成功响应后,根据第二获取成功响应中包括的内容信息,更新widget中显示的内容信息。
在本申请实施例中,用户进一步在widget上进行交互,提高了用户使用widget的体验。
在一种可能的设计中,电子设备的第一身份认证凭据为电子设备根据第一用户账号进行注册或登录时,第一服务器分配给第一用户账号的。所述电子设备显示第三用户界面;所述第三用户界面包括用户账号输入区域;所述电子设备响应于用户在所述用户账号输入区域输入第一用户账号完成的操作,向所述第一服务器发送第一请求,所述第一请求用于所述电子设备登录或注册所述第一服务器,所述第一请求中包括所述第一用户账号;所述电子设备接收到所述第一服务器发送的第一请求的响应,所述第一请求的响应包括所述第一身份认证凭据,其中,所述第一身份认证凭据为所述第一服务器根据所述第一用户账号分配给所述电子设备的。
在一种可能的设计中,若所述第二内容获取请求中包括的所述第二身份认证凭据无效,第二服务器向电子设备发送第二内容获取请求的内容获取失败响应,所述电子设备接收到所述第二服务器发送的内容获取失败响应,则向所述第一服务器发送第二认证获取请求,所述第二认证获取请求中包括所述第一身份认证凭据,所述第二认证获取请求用于重新获取访问所述第二服务器的第二身份认证凭据;第一服务器接收电子设备发送的第二认证获取请求,第一服务器根据预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,重新确定与第一身份认证凭据相关联的第二身份认证凭据,并将重新确定的第二身份认证凭据携带在第二认证获取请求的响应中发送给电子设备。所述电子设备在接收到所述第一服务器发送的所述第二认证获取请求的响应后,向所述第二服务器重新发送第二内容获取请求,所述第二内容获取请求的响应包括重新分配的第二身份认证凭据,所述重新发送的第二内容获取请求包括所述重 新分配的第二身份认证凭据和所述第二操作的操作信息。
在一种可能的设计中,所述第一认证获取请求或第二认证请求中还包括第二服务器的标识;所述第一服务器根据所述第一身份认证凭据和预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定所述第二身份认证凭据时,可以是所述第一服务器根据所述第一身份认证凭据和预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定与所述第一身份认证凭据关联的身份认证凭据;
所述第一服务器根据所述第二服务器的标识,从与所述第一身份认证凭据关联的身份认证凭据中,确定所述第二身份认证凭据。
在本申请实施例中,第一服务器向电子设备发送电子设备需要的第二身份认证凭据,避免了传输资源的浪费。
第二方面,本申请实施例提供的一种设备,包括:一个或多个处理器和存储器,其中存储器中存储有程序指令,当程序指令被设备执行时,实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。
第三方面,本申请实施例提供的一种芯片,所述芯片与设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。
第四方面,本申请实施例的一种计算机存储介质,该计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得设备执行本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。
第五方面,本申请实施例的一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。
第六方面,本申请实施例提供了一种内容显示的系统,所述系统包括执行上述第一方面及第一方面涉及的任一可能设计的方法中的电子设备,第一服务器和第二服务器。
另外,第二方面至第六方面中任一种可能设计方式所带来的技术效果可参见方法部分相关中不同设计方式所带来的技术效果,此处不再赘述。
附图说明
图1为本申请实施例中提供的一种电子设备;
图2A为本申请实施例中提供的一种用户界面的示意图;
图2B为本申请实施例中提供的一种用户界面的示意图;
图2C为本申请实施例中提供的一种用户界面的示意图;
图2D为本申请实施例中提供的一种用户界面的示意图;
图2E为本申请实施例中提供的一种用户界面的示意图;
图2F为本申请实施例中提供的一种用户界面的示意图;
图2G为本申请实施例中提供的一种用户界面的示意图;
图3为本申请实施例中提供的一种内容显示的过程示意图;
图4为本申请实施例中提供的一种内容显示的过程示意图;
图5为本申请实施例中提供的一种设备;
图6为本申请实施例中提供的一种内容显示的系统示意图;
图7为本申请实施例中提供的一种设备。
具体实施方式
应理解,本申请实施例涉及的多个,是指大于或等于两个。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。且在本发明实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
以下对本申请实施例的部分用语进行解释说明,以便于本领域技术人员理解。
1)、widget,可称为微件,也可称为窗口部件、小组件等。本申请实施例中widget可以位于负一屏(-1屏)、主界面或者某一APP的用户界面上。例如,主界面可以为如图2A中的用户界面200,用户界面200包括天气和时间widget202。再例如,负一屏可以为图2A中的用户界面210,用户界面210包括日历widget212和智能家居213等。可以理解的是,电子设备可以响应于用户在用户界面200上向右的滑动操作,显示用户界面210。又例如,以APP为日历为例,日历的用户界面可以为如图2B中的用户界面220,用户界面220包括天气widget222。可以理解的是,电子设备可以响应于用户对用户界面200上日历图标的操作,显示用户界面220。
需要说明的是,本申请实施例中电子设备可以响应于用户的某一操作,将某一个或多个widget设置到某一用户界面上。比如:本申请实施例可以通过将时钟widget设置到主界面上,使得电子设备当显示主界面时可以显示当前的时间;再比如,本申请实施例可以通过将天气widget设置到负一屏上,使得电子设备当显示负一屏时可以显示某一地区的天气预报;又比如,本申请实施例可以通过将CPU widget设置到某一应用的用户界面上,使得电子设备当显示该应用的用户界面时,可以显示CPU的占用比率。此外,本申请实施例中的widget还可以为搜索widget、股票widget、球赛widget等。
本申请实施例中widget可以以卡片的形式展示内容,也可以以其它形式展示相应的内容,对此不作限定。
2)、宿主APP,为可以加载运行widget的APP。例如,当widget位于第一APP的用户界面时,该widget的宿主APP为第一APP。例如,如图2B中的日历的用户界面包括天气widget222,则天气widget222的宿主APP为日历。再例如,当widget位于负一屏时,widget的宿主APP为负一屏所属的APP。其中,负一屏所属的APP可以简称为负一屏APP。例如,负一屏为如图2A的用户界面210,具体的,用户界面210包括日历widget212和智能家居widget213,则日历widget212和智能家居widget213的宿主APP均为负一屏APP。再例如,当widget位于主界面时,该widget的宿主APP为主界面所属的APP,示例的,主界面所属的APP可以为桌面APP。例如,主界面为如图2A的用户界面200,用户界面200包括天气和时间widget202,则天气和时间widget202的宿主APP为桌面APP。
需要说明的是,本申请实施例中widget的内容和宿主APP的内容可以为同一内容提供商(content provider,CP)提供的,也可以为不同的内容提供商提供的。例如,widget和宿主APP由同一厂家开发时,widget的内容和宿主APP的内容由同一内容提供商提供。再例如,widget和宿主APP由不同厂家开发时,widget的内容和宿主APP的内容由不同内容提供商提供。
3)、原生APP,原生APP可以包括对应的widget的内容。例如,微信widget的原生APP为微信。再例如,支付宝widget的原生APP为支付宝。又例如,天气widget的原生APP为天气。需要说明的是,针对某一widget,该widget的原生APP和该widget的宿主APP可以相同,也可以不同,对此不作限定。例如,支付宝widget的宿主APP可以为负一屏APP,支付宝widget的原生APP为支付宝。再例如,天气widget的宿主APP为桌面APP,天气widget的原生APP为天气。又例如,日历widget的宿主APP和原生APP均为日历。
4)、身份认证凭据,也可以称为"身份验证凭据"或"身份鉴别凭据",用于鉴别电子设备的合法性。例如,身份认证凭据可以用于判断电子设备是否具有资源访问和/或资源使用的权限,以达到防止攻击者假冒合法用户获得资源的访问权限,保证系统和数据的安全。
以下介绍电子设备、用于这样的电子设备的图形用户界面(graphical user interface,GUI)、和用于使用这样的电子设备的实施例。以下为描述方面,将GUI简称为用户界面。
本申请实施例可以应用于支持widget功能的电子设备。其中,本申请实施例的电子设备又可以称之终端、终端设备、用户设备等。示例的,本申请实施例的电子设备可以为便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020087349-appb-000001
或者其它操作系统的便携式电子设备。
应理解,本申请实施例中电子设备通常是通过自身安装的应用程序(例如APP)为用户提供各种功能的。示例的,应用程序可以为系统应用,也可以为第三方应用。例如,绘图、演示、字处理、游戏、电话、视频播放器、音乐播放器、电子邮件、即时消息收发、照片管理、相机、浏览器、日历、时钟、支付、应用市场、桌面、负一屏和健康管理等应用程序。示例的,本申请实施例中的电子设备100可以同时运行多个应用程序。
需要说明的是,本申请实施例中宿主APP为电子设备上安装的某一应用程序,例如,宿主APP可以为电子设备安装的系统应用,也可以为电子设备上安装的第三方应用等,对此不作限定。还需要说明的是,本申请实施例中当电子设备在某一宿主APP上显示某一widget时,该widget的原生APP可以安装在电子设备上,也可以不安装在电子设备上,对此不作限定。
示例性地,如图1所示,为本申请实施例的电子设备的硬件结构示意图。具体的,如图1所示,电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、USB接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块151、无线通信模块152、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、显示屏194、以及SIM卡接口160等。其中传感器模块180可以包括压力传感器181和触摸传感器182。在另一些实施例中,传感器模块180还包括陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、环境光传感器和骨传 导传感器等中的一个或多个。
处理器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的等待时间,因而提高了系统的效率。
显示屏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的正整数。
在本申请实施例中,显示屏194可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接的显示屏。
摄像头193(前置摄像头或者后置摄像头,或者一个摄像头既可作为前置摄像头,也可作为后置摄像头)用于捕获静态图像或视频。通常,摄像头193可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。
内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、应用程序(比如相机、微信等)等程序指令。存储数据区可存储电子设备100使用过程中所创建的数据(比如图像、视频、APP的用户界面中的内容、widget中的内容)等。例如,内部存储器121可以用于存储widget的相关信息和宿主APP的相关信息等。需要说明的是,在本申请中,内部存储器121中用于存储宿主APP的相关信息的内存空间可以简称为宿主APP对应的内存空间、宿主APP的内存空间、或者宿主APP的存储空间等,内部存储器121中用于widget的相关信息的内存空间可以简称为widget对应的内存空间、widget的内存空间、或者widget的存储空间等。其中,处理器110通过运行存储在内部存储器121的程序指令,从而执行电子设备100的各种功能应用以及数据处理。例如,处理器110可以通过运行内部存储器121中的程序指令,执行本申请实施例的显示方法。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。
当然,本申请实施例提供的算法的代码还可以存储在外部存储器中。外部存储器接口120可以用于连接外部存储卡(例如,Micro SD卡),实现扩展电子设备100的存储能力。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的算法的 代码,从而执行电子设备100的各种功能应用以及数据处理。
传感器模块180包括的压力传感器181用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器181可以设置于显示屏194。压力传感器181的种类很多,如电阻式压力传感器、电感式压力传感器、电容式压力传感器等。
传感器模块180包括的触摸传感器182,也称“触控面板”。触摸传感器182可以设置于显示屏194,由触摸传感器182与显示屏194组成触摸屏,也称“触控屏”。触摸传感器182用于检测作用于其上或附近的触控操作。触摸传感器182可以将检测到的触控操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触控操作相关的视觉输出。在另一些实施例中,触摸传感器182也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块151可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块151可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块151可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块151还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块151的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块151的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块151或其他功能模块设置在同一个器件中。
无线通信模块152可以提供应用在电子设备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)等无线通信的解决方案。无线通信模块152可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块152经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块152还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
另外,电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C, 耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键190可以包括开机键、音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键190输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。电子设备100可以利用马达191产生振动提示(比如来电振动提示)。电子设备100中的指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。电子设备100中的SIM卡接口160用于连接SIM卡。SIM卡可以通过插入SIM卡接口160,或从SIM卡接口160拔出,实现和电子设备100的接触和分离。
电子设备100可以通过GPU、显示屏194、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
在另一些实施例中,处理器110还可以包括一个或多个接口。例如,接口可以为SIM卡接口160。又例如,接口还可以为USB接口130。再例如,接口还可以为集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口等。可以理解的是,本申请实施例处理器110可以通过接口连接电子设备100的不同模块,从而使得电子设备100能够实现不同的功能。例如拍照、处理等。需要说明的是,本申请实施例对电子设备100中接口的连接方式不作限定。
其中,SIM卡接口160可以用于连接SIM卡。SIM卡可以通过插入SIM卡接口160,或从SIM卡接口160拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口160可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口160可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口160也可以兼容不同类型的SIM卡。SIM卡接口160也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100还可以采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。例如,当SIM卡接口160只能插入一张SIM卡时,则电子设备100可以通过SIM卡接口160中插入的SIM卡接入一个蜂窝网络。再例如,当SIM卡接口160能够插入两张SIM卡时,则电子设备100可以通过SIM卡接口160中插入的两张SIM卡分别接入一个蜂窝网络。
USB接口130是符合USB标准规范的接口。例如,USB接口130可以包括Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据,也可以用于连接耳机,通过耳机播放音频。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时, 还可以通过电源管理模块141为电子设备100供电。
电源管理模块141用于连接电池142、充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193、移动通信模块151和无线通信模块152等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
在本申请一些实施例中,图1所示的电子设备100可以是还包含其他功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020087349-appb-000002
Figure PCTCN2020087349-appb-000003
或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备100也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
示例性地,图2A为本申请实施例提供的一种用户界面的示意图。其中,电子设备100是通过显示屏194显示用户界面的。具体的,用户界面可以为主界面、负一屏或者某一应用的用户界面等。例如,主界面可以如图2A所示的用户界面200。如图所示用户界面200可以包括状态栏201、时间和天气Widget202、还有多个应用的图标,例如,日历图标203、设置图标204等。其中,状态栏201可以包括运营商的名称(中国移动)、移动网络(例如4G)、时间和剩余电量。在本申请的其它一些实施例中,状态栏201可以包括移动网络的信号强度、蓝牙图标、WiFi图标、屏幕锁定图标、外接设备图标等中的一个或多个。
还可以理解的是,在其他一些实施例中,用户界面200还可以包括Dock栏。Dock栏中可以包括常用应用的图标,例如电话图标、短消息图标、邮件图标和天气图标等。应理解,用户可以根据自身的需求设置Dock栏中的常用应用的图标。
在其他一些实施例中,如图2A所示,电子设备100还可以包括主屏幕键205。其中,主屏幕键205可以是实体按键,也可以是虚拟按键。主屏幕键205用于根据用户的操作,将显示屏194上显示的某一应用的用户界面或者负一屏等用户界面返回到主界面,这样可以方便用户随时查看主界面,并对主界面上的控件(例如图标等)进行操作。
以图2A为例,用户在用户界面200上进行向右滑动,电子设备100响应于用户在用户界面200上向右滑动的操作,跳转到负一屏,即在显示屏194显示负一屏。示例的,负一屏可以为如图2A所示的用户界面210,其中,用户界面210中包括搜索框211,还可以包括一个或多个widget,例如包括日历widget212、智能家居widge213。
如图2B所示,电子设备100的显示屏194显示用户界面200时,可以响应与用户对日历图标203的触摸操作,在显示屏194中显示日历的用户界面220,日历的用户界面220中可以显示具体的日期,例如显示具体的年月日,用户界面220还可以包括运势widget221, 运势widget221可以显示当天(2011年8月12日)的运势情况,例如“较好”。用户界面220还可以包括天气widget222,widget222可以显示当天(2011年8月12日)的天气情况。
如上所述,widget可以在负一屏进行显示,也可以在某个应用的用户界面进行显示,widget直接将用户最关心的服务或内容展示给用户,以下对widget的内容显示的方式进行介绍。
用户可以在widget的宿主APP的用户界面上配置widget展示哪些内容,电子设备100通过宿主APP将用户配置的widget展示哪些内容的配置信息存储到widget的内存空间中,当widget被加载后,电子设备可以根据widget的内存空间中存储的配置信息,从CP服务器上获取对应的widget的内容,并在显示屏194显示从CP服务器获取的widget的内容。以在widget中展示关注的球队的内容为例进行说明,如图2F所示,电子设备100在显示屏194上显示用户界面260,其中用户界面260包括widget261和虚拟按钮262,widget261展示球队名称为火箭和马刺的球队的球赛信息。示例的,电子设备100可以响应于用户对虚拟按钮262的操作,在显示屏194显示用户界面270。其中,用户界面270包括多个球队名称的选项,例如火箭、马刺、灰熊、太阳、奇才等,用户可以通过虚拟按键272对球队进行选择。在另一些实施例中,用户界面270还可以包括虚拟按钮271,用户可以通过选中用户界面270中某一个或多个球队名称的选项后,可以对虚拟按钮271操作,使得电子设备100可以响应于对虚拟按钮271的操作,在widget261中展示用户选中的相应的球队名称的球赛情况。示例的,用户可以通过选中用户界面270中某一个或多个球队名称的选项后,可以对虚拟按钮271操作,使得电子设备100可以响应于对虚拟按钮271的操作,将用户选中的相应的球队名称存储到相应的存储器(例如内部存储器121、外部存储器、或者专用存储器等)中,并根据存储器中存储的用户选中的相应的球队名称,在显示屏194上显示用户界面260。其中,用户界面260包括widget261,widget261展示的为用户选中的相应的球队名称的球赛情况。例如,当用户选中球队名称为火箭和太阳的选项时,用户对虚拟按钮271操作,则电子设备100响应于用户对虚拟按钮271的操作,在显示屏194上显示用户界面260。其中用户界面260包括widget261,其中widget261展示球队名称为火箭和太阳的球赛信息。
其中,由于球队的球赛信息为公开的内容,因此电子设备100中widget261可以根据用户选中的球队名称,从用于提供widget261内容的CP服务器获取与用户选中的球队名称对应的球赛信息,并通过widget261展示用户选中的球队名称对应的球赛信息。
然而,当widget中展示的内容为非公开的内容信息(例如智能家居中设备的状态等)时,电子设备100中的widget可以通过向用于提供widget展示的内容的CP服务器发送身份认证凭据,在CP服务器根据身份认证凭据对电子设备100身份认证通过后,将相应的widget需要展示的内容发送给电子设备100,电子设备100在获取到相应的widget需要展示的内容后,通过展示相应的内容。通过身份认证凭据获取对应的内容的方式有助于提高安全性。
在一些实施例中,当widget的内容和widget的宿主APP的内容是由同一个CP服务器提供时,电子设备100可以基于下列方式获取身份认证凭据:
电子设备100可以从CP服务器获取身份认证凭据,其中身份认证凭据是宿主APP在注册或登录CP服务器的用户账号的过程中,CP服务器根据注册或登录的宿主APP的用户 账号分配给电子设备100的,电子设备100将该身份认证凭据存储到该宿主APP的内存空间中,还可以存储至widget的内存空间中。当电子设备100中的widget向CP服务器获取相应的内容时,可以从该widget的内存空间或widget的宿主APP的内存空间中获取身份认证凭据。例如,负一屏包括widget1,则widget1的宿主APP为负一屏APP,负一屏APP的用户账号为设备账号,可以通过在系统设置界面上进行相应的注册,身份认证凭据可以是CP服务器根据设备账号分配给电子设备100的,当widget1需要获取相应的内容时,可以从负一屏对应的内存空间中获取身份认证凭据。
然而,在一些实施例中,widget的内容和widget的宿主APP的内容分别是由不同的CP服务器提供的,在这种情况下,基于安全考虑,电子设备100不会将根据宿主APP的用户账号获取的身份认证凭据存储至widget的存储空间中,也不允许widget使用宿主APP的用户账号获取的身份认证凭据,因此widget不能根据身份认证凭据获取非公开的内容信息。有鉴于此,本申请实施例提供了一种显示方法,能够通过绑定widget的原生APP的账号和宿主APP的帧号,使得电子设备100中的widget可以获取用于访问提供widget的内容的CP服务器的身份认证凭据,从而提高获取widget的内容的安全性和多样性。
其中方法和电子设备是基于同一技术构思的,由于方法和电子设备解决问题的原理相似,因此电子设备与方法的实施例可以相互参见,重复之处不再赘述。
结合上述实施例及附图,本申请实施例提供一种内容显示的方法,该方法可以在具有图1所示的硬件结构的电子设备100中实现。需要注意的是,为了方便描述,将用于提供宿主APP的内容的CP服务器称为第一服务器,将用于提供widget的内容的CP服务器称为第二服务器。若宿主APP与widget属于不同的厂家,为了便于描述,可以将从宿主APP的第一服务器注册的任一用户账号称为第一用户账号,第一用户账号对应的身份认证凭据称为第一身份认证凭据,将widget的原生APP从第二服务器注册的任一用户账号称为第二用户账号,第二用户账号对应的身份认证凭据称为第二身份认证凭据。用户可以通过登录原生APP或第二服务器的网页,采用第二用户账号访问第二服务器,进行个性化配置,第二服务器针对第二用户账号保存个性化配置信息。由于widget不具备独立登录能力,为了在widget中显示个性化配置信息的内容,电子设备110的widget可以根据第二用户账号的第二身份认证凭据访问第二服务器,获取第二用户账号的个性化配置信息对应的内容进行显示,以提高用户体验。
示例的,如图3所示,本申请实施例提供的内容显示的方法的流程示意图,具体包括以下步骤。
步骤30,电子设备100在显示屏194显示第一用户界面。
需要说明的是,第一用户界面可以为主用户界面,也可以为负一屏,还可以为某一应用的用户界面等,对此不作限定。
步骤31:电子设备100接收用户的第一操作,其中,所述第一操作用于控制电子设备100在显示屏194上显示第二用户界面,其中第二用户界面包括widget。
示例的,第一操作可以为用户对某一应用图标的操作、在主界面上的滑动操作、语音指令、或者快捷手势操作等,对此不作限定。
例如,负一屏包括widget时,第一操作可以为用户在主界面上的向右滑动操作。比如负一屏为图2A所示的用户界面210,包括日历widget212和智能家居widget213,第一操作 可以为用户在用户界面200上向右的滑动操作。再例如,某一应用的用户界面包括widget时,第一操作可以为用户对该应用图标的操作。比如,日历的用户界面为如图2B所示的用户界面220,包括运势widget221和天气wideget,第一操作可以为用户对用户界面200上日历图标203的触摸操作。
以第一操作为用户对某一应用图标的操作,或者在主界面上的滑动操作等触摸操作为例。电子设备100的触摸传感器182检测到用户在显示屏194上的触摸操作,向处理器110上报用户在显示屏194上的触摸位置信息,处理器110根据触摸传感器182上报的触摸位置信息,确定触摸传感器182接收到第一操作。
步骤32:电子设备100响应于第一操作,向第一服务器发送第一认证获取请求,所述第一认证获取请求中包括第一用户账号和第一身份认证凭据中的至少一个,第一认证获取请求可以用于获取待显示的widget访问第二服务器的第二身份认证凭据。
其中,第一身份认证凭据用于第一服务器对电子设备进行身份认证,是第一服务器根据widget的宿主APP的第一用户账号分配给电子设备100。
示例的,用户可以在宿主APP上,或者第一服务器的网页上通过第一用户账号向第一服务器进行注册,后续电子设备可以通过注册的第一用户账号登录第一服务器,并在登录第一服务器后,获取第一服务器的资源,示例的,电子设备100向第一服务器发送第一认证获取请求,所述第一认证获取请求中包括第一用户账号。用户账号包括用户名和密码。第一服务器中保存有注册成功的每个用户账号,第一服务器可以根据预先保存的每个用户账号,对电子设备进行身份验证,身份验证通过后,将相应的资源发送给电子设备100。
基于安全考虑,第一服务器可以根据第一用户账号生成该第一用户账号对应的第一身份认证凭据,并将生成的该第一用户账号对应的第一身份认证凭据发送给电子设备100。可以约定,第一服务器根据第一身份认证凭据对电子设备100进行身份验证,也就是电子设备100在通过第一用户账号获取第一服务器的资源时,可以通过第一用户账号对应的第一身份认证凭据获取,示例的,电子设备100向第一服务器发送第一认证获取请求,第一认证获取请求中包括第一用户账号对应的第一身份认证凭据,第一服务器中保存有每个用户账号对应的第一身份认证凭据,第一服务器在接收到第一认证获取请求后,可以确定是否保存有第一身份认证凭据,如果保存,则确定电子设备100身份验证通过,如果未保存,则确定电子设备100身份验证不通过。
在一些实施例中,可以约定第一服务器根据第一用户账号和第一身份认证凭据对电子设备100进行身份验证,则第一认证获取请求中可以包括第一用户账号及第一用户账号对应的第一身份认证凭据。相应的,第一服务器根据预先保存有每个用户账号及每个用户账号对应的身份认证凭据,确定是否保存有第一用户账号及第一用户账号对应的第一身份认证凭据,如果是,则确定第一服务器在对电子设备100身份验证通过,第一服务器可以将对应的资源发送给电子设备100。
基于安全考虑,避免他人盗取用户账号后获取第一服务器的资源的情况,电子设备100在通过第一用户账号向第一服务器进行注册或登录时,还可以向第一服务器发送电子设备100的标识。相应的,第一服务器还可以保存第一用户账号对应的电子设备的标识。在一些实施例中,可以约定第一服务器还根据电子设备的标识对电子设备进行身份验证。示例的,约定根据第一用户账号,第一用户账号对应的第一身份认证凭据,电子设备的标识对电子 设备进行身份验证,电子设备100向第一服务器发送第一认证获取请求,第一认证获取请求中包括第一用户账号,第一用户账号对应的第一身份认证凭据和电子设备100的标识。第一服务器确定是否保存有第一用户账号、第一用户账号对应的第一身份认证凭据,以及第一用户账号对应的电子设备的标识,如果是,则电子设备100的身份验证通过。如果第一用户账号和第一身份认证凭据验证通过,但是电子设备的标识未验证通过,第一服务器可以向电子设备100发送是否被盗取第一用户账号的提示信息。电子设备100再通过其他方式进行用户身份的验证。
第一身份认证凭据可以是第一用户账号在注册第一服务器时,第一服务器分配给第一用户账号的。用户在注册了第一用户账号后,有的时候会忘记使用,则对于第一服务器来说,为该第一用户账号分配第一身份认证凭据没有意义,基于此,第一身份认证凭据也可以是第一用户账号在首次登录第一服务器时,第一服务器分配给第一用户账号的。
示例的,所述电子设备显示第三用户界面;所述第三用户界面包括用户账号输入区域;所述电子设备响应于用户在所述用户账号输入区域输入第一用户账号完成的操作,向所述第一服务器发送第一请求,所述第一请求用于所述电子设备登录或注册所述第一服务器,所述第一请求中包括所述第一用户账号;所述电子设备接收到所述第一服务器发送的第一请求的响应,所述第一请求的响应包括所述第一身份认证凭据,其中,所述第一身份认证凭据为所述第一服务器根据所述第一用户账号分配给所述电子设备的。
如图2C所示,为用户在电子设备100上,通过第一用户账号登录第一服务器的第三用户界面230,用户可以在第三用户界面230中输入第一用户账号,即用户名和密码,然后点击“登录”按键,电子设备100响应点击登录按键的操作,向第一服务器发送登录请求,一般登录请求中包括用于登录的用户账号。如果本次登录为首次登录,将第一用户账号对应的第一身份认证凭据发送给电子设备100,示例的,第一服务器可以根据是否保存有第一用户账号对应的第一身份认证凭据确定是否为首次登陆,如果确定未保存该第一用户账号对应的第一身份认证凭据,则可以确定是首次登录,生成该第一用户账号对应的第一身份认证凭据,并将第一用户账号对应的第一身份认证凭据发送给电子设备100,第一服务器也可以保存该第一用户账号及与第一用户账号对应的第一身份认证凭据。如果本次登录非首次登录,一般情况下,登录请求中包括第一用户账号和该第一用户账号对应的第一身份认证凭据。
如果宿主APP为负一屏APP或桌面APP时,用户可以在电子设备100的系统设置界面上进行注册或登录,电子设备100在接收到第一服务器发送的第一用户账号和第一用户账号对应的第一身份认证凭据后,电子设备100可以将第一用户账号和第一用户账号对应的第一身份认证凭据分享给宿主APP,示例的,将第一用户账号和第一用户账号对应的身份认证凭据存储至宿主APP的存储空间中,则宿主APP获取到了第一用户账号及第一用户账号对应的第一身份认证凭据。
如果宿主APP为第三方APP,用户可以在第三方APP的用户界面上进行注册或登录,则电子设备100的第三方APP接收第一服务器发送的第一用户账号及第一用户账号对应的第一身份认证凭据,第三方APP将第一用户账号即第一用户账号对应的第一身份认证凭据存储至自身的存储空间中。
其他APP获取身份认证凭据的过程与上述宿主APP获取第一身份认证凭据的过程相同。
电子设备100在向第一服务器发送第一认证获取请求时,示例的,电子设备100的处理器110可以响应于第一操作,通过移动通信模块151和/或无线通信模块152向第一服务器发送第一认证获取请求。例如,电子设备100的处理器110响应于第一操作,调用宿主APP,通过移动通信模块151和/或无线通信模块152向第一服务器发送第一认证获取请求。
步骤33:第一服务器接收到第一认证获取请求后,根据第一用户账号和第一身份认证凭据中的至少一个,获取第二身份认证凭据,并向电子设备100发送第一认证获取请求的响应,其中第一认证获取请求的响应中包括第二身份认证凭据,其中,第二身份认证凭据用于第二服务器对电子设备进行身份认证,第二身份认证凭据是根据widget的原生APP的第二用户账号生成的。一般由第二服务器进行分配,第一用户账号和第二用户账号是相关联的用户账号。
在服务器侧,两个不同厂家的CP服务器可以采用账号关联技术,将属于不同厂家的两个用户账号关联起来,例如,华为的某个用户账号与格力的某个用户账号进行账号关联。
一个厂家的用户账号可以同时与属于不同厂家的两个用户账号进行关联,例如华为的一个用户账号可以同时与格力的一个用户账号和海尔的一个用户账号进行账号关联,但是一个厂家的用户账号不能同时与属于同一厂家的两个用户账号进行关联,例如华为的一个用户账号不能同时与格力的两个用户账号进行账号关联。在本申请中,可以理解为将第一服务器的第一用户账号与第二服务器的第二用户账号进行账号关联,第二服务器将第二用户账号访问第二服务器的第二身份认证凭据分享给第一服务器,使第一服务器持有第二用户账号访问第二服务器的身份认证凭据。
以下介绍账号关联的具体过程:
如图2G所示,宿主APP的用户界面300中包括用于进行账号绑定的按钮301,电子设备可以响应于用户对按钮301的操作,显示用户界面310,用户界面310中包括可以进行账号绑定的widget的标识,例如文字信息,或widget的原生APP的图标信息,如图2G中,用户界面310中包括智能家居widget311的文字信息,用户界面310中还可以显示是进行账号绑定的按钮312,例如显示已绑定或未绑定。
电子设备响应于用户对按钮312的操作,识别宿主APP的第一用户账号当前是否登录。如果否,则显示用于账号登录的用户界面320,用户可以在用户界面320中输入第一用户账号,即用户名和密码,进行登录,如果是华为手机的负一屏,第一用户账号为华为的用户账号,电子设备在接收到第一服务器发送的登录成功的响应信息后,跳转到用户界面330。如果电子设备识别宿主APP的第一用户账号当前已登录,则可以直接跳转到用户界面330。其中,用户界面330为登录widget的原生APP的用户界面,也就是待进行账号绑定的第二用户账号的登录界面。在跳转到用户界面330时,可以是宿主APP先生成用于登录widget的原生APP的用户账号的链接,宿主APP打开该链接,则跳转到用户界面330。将用户界面330属于的APP称为原生子APP,宿主APP还可以将待进行账号绑定的第一用户账号发送给原生子APP。原生子APP是原生APP的一部分。
电子设备在用户界面330上接收用户对登录按钮的操作,电子设备中的原生子APP响应于用户的操作,向第二服务器发送登录请求,所述登录请求中包括第二用户账号和用于指示账号关联的指示信息。第二服务器接收到原生子APP发送的登录请求后,可以针对第二用户账号,为电子设备分配第二用户账号对应的第三身份认证凭据,示例的,第二服务 器向电子设备的原生子APP发送登录请求的响应,所述登录请求的响应中包括第三身份认证凭据,第三身份认证凭据用于第二用户账号与其它用户账号进行账号关联。第二服务器中保存第二用户账号对应的第三身份认证凭据。
示例的,电子设备中的原生子APP接收到登录请求的响应后,原生子APP可以将第三身份认证凭据发送给宿主APP,还可以将第一用户账号发送给宿主APP,使宿主APP知道是第三身份认证凭据是与第一用户账号进行关联的。电子设备的宿主APP在接收到第三身份认证凭据和第一用户账号后,可以向第一服务器发送第一账号关联请求,所述第一账号关联请求中包括第一用户账号,widget对应的第二服务器的标识,和第三身份认证凭据。
示例的,宿主APP不但可以将待进行账号绑定的第一用户账号发送给原生子APP,还可以将宿主APP的第一服务器的访问地址发送给原生子APP。原生子APP在接收到第二服务器发送的登录请求的响应后,可以不经过宿主APP,直接根据第一服务器的访问地址,向第一服务器发送第一用户账号关联请求,原生子APP向第一服务器发送的第一用户账号关联请求中包括第一用户账号,widget对应的第二服务器的标识和第三身份认证凭据。后续宿主APP可以向第一服务器查询第一用户账号是否关联成功。
第一服务器接收电子设备发送的第一用户账号关联请求,第一服务器向所述标识的第二服务器发送第二账号关联请求,所述第二账号关联请求中包括所述第三身份认证凭据和第一用户账号。
第二服务器在接收到第一服务器发送的第二账号关联请求后,可以根据预先保存的每个用户账号对应的进行账号关联的身份认证凭据,确定是否保存有第二账号关联请求中的第三身份认证凭据,如果保存有,则识别第三身份认证凭据对应的第二用户账号,并向第一服务器发送第二账号关联请求的响应,所述第二账号关联请求的响应中包括第一用户账号,第二身份认证凭据,还可以包括第二用户账号。
第一服务器接收第二服务器发送的第二账号关联请求的响应后,可以针对第一用户账号,保存第二身份认证凭据,还可以保存与第一用户账号关联的第二用户账号。
第一服务器还可以向电子设备发送第一账号关联请求的响应,用于指示账号关联成功。示例的如图2G所示的用户界面340,显示有账号关联成功的提示信息。
第一服务器在接收到第一认证获取请求后,可以根据第一用户账号和第一身份认证凭据中的至少一个,对电子设备的身份进行认证,具体的认证过程参见上述描述,在此不再进行赘述。如果对电子设备的身份验证通过,则可以根据第一用户账号和第一身份认证凭据中的至少一个,获取第二身份认证凭据,具体过程示例的,根据预先保存的相关联的用户账号,确定是否保存有与第一用户账号相关联的第二用户账号,如果有,则获取与第一用户账号相关联的第二用户账号的第二身份认证凭据。第一服务器将第二身份认证凭据发送给电子设备100。
第一服务器在将第二身份认证凭据发送给电子设备100时,可以是将第二身份认证凭据及与第二身份认证凭据对应的第二用户账号相关联的第一用户账号和/或第一身份认证凭据成对发送给电子设备100的,以便电子设备100识别出第一服务器发送的第二身份认证凭据是与哪个用户账号相关联的。示例的,第一认证获取请求的响应中包括第二身份认证凭据,还可以包括与第二用户账号相关联的第一用户账号和/或第一用户账号对应的第一身 份认证凭据。
在一些实施例中,第一服务器中保存的与第一用户账号相关联的第二用户账号可能是一个,也可能是多个。第一服务器中针对每个第二用户账号,保存有该第二用户账号所属的第二服务器的标识。为了准确地区分不同厂家(第二服务器)的身份认证凭据,第一服务器在将第二身份认证凭据发送给电子设备100时,可以是针对每个第二身份认证凭据,将该第二身份认证凭据及其对应的第二服务器的标识成对发送给电子设备100。示例的,第一认证获取请求的响应中包括至少一个第二身份认证凭据,每个身份认证凭据对应的分配该身份认证凭据的第二服务器的标识。电子设备100的宿主APP中保存有每个widget所属的厂家,也就是保存有每个widget对应的第二服务器的标识。宿主APP可以根据第一服务器发送的每个第二身份认证凭据对应的第二服务器的标识,将每个第二身份认证凭据存储至对应的widget的存储空间中。
电子设备100响应于用户的第一操作后,在显示屏194上显示的widget可能是一个,也可能是多个,如果显示多个widget,每个widget可能属于不同的厂家,也就是对应不同的第二服务器;也可能显示的两个widget属于同一厂家,对应同一第二服务器。在显示屏194上显示哪些widget可以由用户的设置决定。也就是说,即使第一服务器中保存有与第一用户账号相关联的多个第二用户账号,电子设备有可能不显示某个第二用户账号所属的第二服务器的widget,这样,第一服务器将未显示的widget的第二用户账号对应的第二身份认证凭据发送给电子设备的宿主APP,没有任何意义,还浪费了传输资源。基于此,电子设备100向第一服务器发送的第一认证获取请求中还可以包括待显示的widget对应的第二服务器的标识,也就是widget所属厂家的标识,需要说明的是,宿主APP知道用户界面中待显示的每个widget所属的第二服务器的标识。例如待显示的widget包括美的厂家的智能家居widget,则第一认证获取请求中包括标识“美的”。相应的,第一服务器在接收到第一认证获取请求后,先进行身份验证,然后根据第一用户账号和第一身份认证凭据中的至少一个,以及第二服务器的标识,获取第二身份认证凭据,具体过程示例的,根据预先保存的相关联的用户账号,确定是否保存有与第一用户账号相关联的第二用户账号,如果有,则确定与第一用户账号相关联的第二用户账号,进而根据预先保存的每个第二用户账号对应的第二服务器的标识,在确定出的与第一用户账号相关联的第二用户账号中,筛选出第一认证获取请求中包括的第二服务器的标识对应的第二用户账号,然后获取筛选出的第二用户账号对应的第二身份认证凭据。
第一服务器在将第二身份认证凭据发送给电子设备100时,可以是将第二身份认证凭据及与第二身份认证凭据对应的第二服务器的标识成对发送给电子设备100的,以便电子设备100识别出第一服务器发送的第二身份认证凭据属于哪个第二服务器的。示例的,第一认证获取请求的响应中包括第二身份认证凭据,还可以包括第二用户账号对应的第二服务器的标识。
步骤34:电子设备100接收到第一认证获取请求的响应后,向第二服务器发送第一内容获取请求。第一内容获取请求用于获取widget待显示的内容信息,且第一内容获取请求中包括第二身份认证凭据。
电子设备100通过移动通信模块151和/或无线通信模块152接收来自第一服务器发送的第二身份认证凭据。例如,电子设备100的处理器110调用宿主APP,通过移动通信模 块151和/或无线通信模块152接收来自第一服务器发送的第二身份认证凭据。宿主APP可以是在加载widget之后或者加载widget之前,将第二身份认证凭据存储到widget的内存空间中。宿主APP在将第二身份认证凭据存储到widget的存储空间中时,可以是通过调用接口setJsView Data(data)进行存储的,其中data为第二身份认证凭据的真实值。
步骤35:第二服务器接收到第一内容获取请求后,根据第二身份认证凭据对电子设备100认证通过后,如果验证通过,则向电子设备100发送第一内容获取请求的第一获取成功响应。第一获取成功响应包括widget待显示的内容信息。
电子设备100向待显示的widget对应的第二服务器发送第一内容获取请求,所述第一内容获取请求中包括待显示的widget访问第二服务器的第二身份认证凭据,所述第一内容获取请求用于获取widget中待显示的内容信息。
示例的,电子设备100的处理器110可以通过移动通信模块151和/或无线通信模块152向第二服务器发送第一内容获取请求。例如,电子设备100的处理器110调用宿主APP的用户界面中待显示的widget的程序,通过移动通信模块151和/或无线通信模块152向widget对应的第二服务器发送第一内容获取请求。
电子设备中的宿主APP可以加载widget,widget获取到内存变量data,即从自身的内存空间中获取到第二身份认证凭据(data.cpAccessToken),进而widget可以向第二服务器发送第一内容获取请求,所述第一内容获取请求中包括所述第二身份认证凭据,所述第一内容获取请求用于获取widget中待显示的内容信息。
示例的,widget可以使用HTTPS协议,发送一条消息给第二服务器,并在请求头域中携带Authorization:Bearer ACCESS_TOKEN,其中,ACCESS_TOKEN表示第二身份认证凭据,该字段可以填入使用data.cp Access Token的真实值。
第二服务器在接收到电子设备发送的第一内容获取请求后,可以根据第二身份认证凭据对电子设备100进行身份认证,也就是根据ACCESS_TOKEN认证用户的身份。示例的,第二服务器根据预先保存的每个用户账号对应的身份认证凭据,确定是否保存有第二身份认证凭据对应的第二用户账号,如果是,则身份认证通过。然后根据预先保存的每个用户账号对应的配置信息,确定第二用户账号对应的第二配置信息,并提取第二配置信息对应的内容信息即widget待显示的内容信息,然后将widget待显示的内容信息发送给电子设备。
需要说明的是,用户也可以在widget的原生APP、或第二服务器的网页上通过第二用户账号,访问第二服务器,并进行个性化配置,例如配置球队的标识,股票的标识等,还可以配置智能家居中一个或多个设备的标识。第二服务器可以根据第二用户账号对应的配置信息,提取对应的内容信息,例如球队的比赛信息,股票的走向信息,设备的开关信息等,发送给widget。
需要说明的是,一个厂家可以开发多个widget,每个widget有其对应的类型,例如空调widget的类型为空调,冰箱widget的类型为冰箱等,智能家居widget的类型为智能家居等。则每个widget有其类型标识,第二服务器中保存有每个widget的类型标识与该widget的配置信息的对应关系。示例的,用户通过原生APP或网页,登录第二用户账号访问第二服务器,进行widget的个性化配置时,可以针对不同的widget的类型标识进行个性化配置,例如针对标识为智能家居的widget配置设备的标识,针对标识为股票的widget配置股票的标识。宿主APP的用户界面中可能会显示多个widget,每个widget均可以向自身对应的第 二服务器发送第一内容获取请求。为了使第二服务器可以清楚地区分开widget的类型,在步骤34中,电子设备100中向第二服务器发送第一内容获取请求,所述第一内容获取请求中包括第二身份认证凭据,和待显示的每个widget的类型标识。第二服务器在第二用户账号对应的第二配置信息中确定出与每个widget的类型标识对应的配置信息,并提取配置信息对应的内容信息,将widget的类型标识及其对应的内容信息成对发送给电子设备100,示例的,所述第一内容获取请求的响应中包括每个widget的类型标识,以及每个widget待显示的内容信息。
步骤36:电子设备100接收到第一内容获取请求的响应后,根据第一内容获取请求的第一获取成功响应中包括的信息,在显示屏194上显示第二用户界面,其中,第二用户界面包括widget。每个widget中显示对应的内容信息。
示例的,电子设备100可以通过移动通信模块151和/或无线通信模块152接收来自第二服务器的内容信息。例如,电子设备100的处理器110调用widget,通过移动通信模块151和/或无线通信模块152接收第二服务器发送内容信息,进行内容信息的显示。
例如,第二服务器的开发商开发了智能家居widget和球赛widget,用户通过第二用户账号可以在第二服务器上针对类型标识为智能家居的widget配置主卧空调的标识,次卧空调的标识,电视的标识,灯的标识,针对类型标识为球赛的widget配置球队的标识。第二服务器在接收到第一内容获取请求后,可以识别待获取内容信息的widget是智能家居widget。
第二服务器识别智能家居widget的类型标识对应的配置信息:主卧空调的标识,次卧空调的标识,电视的标识,灯的标识等,然后获取当前保存的每个设备的状态,即配置信息对应的内容信息,例如主卧空调是开启还是关闭,次卧空调的工作温度,主卧空调检测到的室温,电视开启还是关闭等,并将获取到的内容信息发送给电子设备100,还可以发送widget的类型标识为智能家居。
如图2D所示,第二服务器向电子设备100发送的内容信息包括:主卧空调处于开启状态,空调的工作温度为24℃,室温为26℃,次卧空调处于关闭状态,电视处于关闭状态,主卧灯处于开启状态。还可以包含更多的信息,此处不再一一列举。电子设备的负一屏的用户界面240的智能家居widget213中,可以显示对应的内容信息。
为了便于用户控制智能家居中的设备的状态,用户界面240中包括用于调节设备的开关状态的按键241,该按键241的显示区域可以显示“开启”或“关闭”的字样,其中开启表示设备处于开启状态,关闭表示设备处于关闭状态,用户可以操作该按键241,则电子设备响应于用户对于按键241的操作,改变设备的开启或关闭的状态,例如,如果当前显示为“开启”,则说明设备处于开启状态,用户可以点击显示为“开启”的按键241,使设备的状态更新为关闭状态。
用户界面240中还可以包括用于调节空调的工作温度的按键242和243,其中,按键242(向上箭头)可以用于调高空调的工作温度,按键243(向下箭头)可以用于调低空调的工作温度。
用户界面240中还可以包括按键244,该按键244的显示区域中显示有“刷新”的字样,按键244可以用于刷新智能家居widget中显示的内容。
如果widget以卡片的形式展示,卡片包括折叠状态和展开状态,其中处于折叠状态的卡片有其规定的大小,当设备较多时,一般处于折叠状态的卡片不能显示全部的设备的状 态信息,卡片处于展开状态时,不考虑用户界面的大小,一般可以显示预先配置的全部的设备的状态。用户界面240中还可以包括按键245,该按键245可以用于改变卡片的展开或折叠的状态,该按键245的显示区域中显示有“折叠”或“展开”的字样,示例的,显示的字样为展开时,表示卡片处于折叠状态,显示的字样为折叠时,表示卡片处于展开状态。
根据上述过程,电子设备100已经从第二服务器侧获取到的对应的内容在widget中进行显示,用户可以在widget上进一步交互。
示例的,如图4所示,本申请实施例提供的内容显示的方法的流程示意图,具体包括以下步骤。
步骤40,电子设备100在显示屏194显示第二用户界面,第二用户界面包括widget。
第二用户界面为上述步骤36中显示的第二用户界面。
需要说明的是,第一用户界面可以为主用户界面,也可以为负一屏,还可以为某一应用的用户界面等,对此不作限定。
步骤41:电子设备接收用户对显示的widget的第二操作,其中,所述第二操作用于控制电子设备100更新widget中显示的内容信息。
示例的,第二操作可以为用户对于某一widget操作,在第二用户界面上的滑动操作、点击操作、双击操作、语音指令、或者快捷手势操作等,对此不作限定。
以下以第二操作为用户对某一widget的操作为例进行说明,则第二操作用于控制电子设备100根据第二操作的操作信息更新在显示屏194上显示的widget的内容信息。
如果第二操作为触摸操作,电子设备中的触摸传感器182检测到用户在显示屏194上的触摸操作,触摸传感器182向处理器110上报用户在显示屏194上的触摸位置信息,处理器100根据触摸位置信息,确定触摸传感器182接收到第二操作。
步骤42:电子设备100响应于第二操作,向第二服务器发送第二内容获取请求,所述第二内容获取请求中包括第二身份认证凭据和第二操作的操作信息,所述第二内容获取请求用于获取第二操作的操作信息对应的内容信息,也就是widget待更新显示的内容信息。
第二内容获取请求中还可以包括widget的类型标识,如果所述第二操作为触摸操作,其中第二内容获取请求中的widget的类型标识为第二操作的触摸位置显示的widget的类型标识。
具体可以是widget再发送一条控制消息给第二服务器(请求头域中携带Authorization:Bearer ACCESS_TOKEN,这里ACCESS_TOKEN填入使用data.cp AccessToken的真实值)。上述步骤42中电子设备向第二服务器发送第二内容获取请求的原理与上述步骤34中电子设备向第二服务器发送第一内容获取请求的原理类似,重复之处不再进行赘述。
步骤43:第二服务器在接收到电子设备发送的第二内容获取请求后,可以根据第二身份认证凭据对电子设备100认证通过后,执行操作信息对应的过程,并电子设备100发送第二内容获取请求的第二获取成功响应。第二获取成功响应中包括widget待更新显示的内容信息,即第二操作的操作信息对应的内容信息。
上述步骤43中第二服务器接收到第二内容获取请求后的执行过程与上述步骤35中第二服务器接收到第一内容获取请求后的执行过程类似,重复之处不再进行赘述。
步骤44:电子设备100接收第二服务器发送的第二内容获取请求的响应后,根据第二 获取成功响应中包括的内容信息,更新widget中显示的内容信息。
如图2E所示的用户界面240和250,例如用户对主卧空调的温度进行了升温操作,即点击了按键242(向上箭头),点击按键242的操作即为第二操作,假设点击一次为升温1℃,第二服务器接收到电子设备100发送的第二内容获取请求中的第二操作的操作信息为将主卧空调的工作温度升高1℃,第二服务器可以向对应的主卧空调发送升温指令,并向电子设备100返回主卧空调的工作温度为25℃,或者返回主卧空调的温度升高1℃,电子设备100可以根据第二服务器发送的内容信息,改变智能家居widget显示的设备的状态,即将工作温度由原来的24℃更新为25℃。
用户对按键244,按键241,按键243的操作,均可以作为第二操作,例如第二操作为对按键243的操作时,第二操作的操作信息为将主卧空调的工作温度降低n℃,n的值根据操作的次数,以及预先设置一次操作对应的数值有关。
例如第二操作为对主卧空调对应的按键241的操作时,第二操作的信息为关闭主卧空间,或者打开主卧空间。再例如第二操作为对电视对应的按键241的操作时,第二操作的信息为关闭电视,或者打开电视。
用于访问第二服务器获取第二服务器资源的身份认证凭据存在有效期,有效期一般为24个小时,或12个小时,或72小时等。有效期超期后,身份认证凭据会失效,无法再通过身份认证凭据获取服务器的资源。widget的第二服务器可以针对每个用于访问第二服务器的身份认证凭据记录生成时间,并记录有效时间,当确定超过认证凭据的有效时间后,第二服务器可以生成新的身份认证凭据,并采用新的身份认证凭据对之前的身份认证凭据更新。第二服务器可以将新的身份认证凭据主动分享给第一服务器。当然也可以由第一服务器针对用于访问第二服务器的身份认证凭据记录生成时间,并记录有效时间,当确定超过认证凭据的有效时间后,可以向第二服务器请求新的身份认证凭据,第二服务器根据第一服务器的请求,将新的身份认证凭据发送给第一服务器。
如果上一次获取到的身份认证凭据失效,则第二服务器在接收到电子设备100发送的内容获取请求后,无法找到内容获取请求中的第二身份认证凭据对应的第二用户账号,则说明第二身份认证凭据失效,第二服务器可以向电子设备100发送内容获取失败响应信息。电子设备100接收到内容获取失败响应时,电子设备可以先不更新widget中显示的内容信息。电子设备100可以向第一服务器发送第二认证凭据获取请求,所述第二认证凭据获取请求中包括第一服务器为电子设备分配的第一身份认证凭据,所述第二认证凭据获取请求用于重新获取访问第二服务器的第二身份认证凭据。电子设备100向第一服务器发送第二认证凭据获取请求的过程与上述步骤32中电子设备100向第一服务器发送第一认证获取请求的过程相同,重复之处不进行赘述。
第一服务器在接收到电子设备100发送的第二认证凭据获取请求后执行的过程与上述的步骤33中过程相同,重复之处不再进行赘述。
电子设备接收第一服务器发送的第二认证凭据获取请求的响应后,重新向第二服务器发送第二内容获取请求,所述第二认证凭据请求的响应中包括更新后的第二身份认证凭据, 所述第二内容获取请求中包括第二操作的操作信息和所述更新后的第二身份认证凭据,直至接收到的第二内容获取请求的获取成功响应电子设备100更新widget中显示的内容信息。
示例的,电子设备的widget在接收到第二服务器发送的身份认证凭据失效的响应信息后,可以向宿主APP发送请求重新加载的消息,并且携带用户的第二操作对应的操作信息。
重新加载的消息例如可以是:
sendMessage("{\"command\":\"reload\",\"context\":{\"unfinishedOperation\":\"xxxx\"}}"),其中,end message表示widget给宿主APP发消息,command表示这个消息的指示的动作是重新加载(reload)widget,context表示上下文,上下文的内容中保存了未完成的操作(unfinished operation),“xxx”是具体的未完成的操作的名称,例如主卧空调升温1℃。
宿主APP在接收到widget重新加载的消息后,可以如前步骤32,宿主APP向第一服务器发送第一认证获取请求,所述第一认证获取请求中包括第一服务器为所述第一用户账号分配的用于访问第一服务器的第一身份认证凭据,宿主APP在获取到用于访问第二服务器的新的第二身份认证凭据时,将获取到的新的第二身份认证凭据,存储至widget的内存空间中,宿主APP还可以向widget发送第二操作对应的操作信息,该操作信息还未执行。
widget在获取到新的第二身份认证凭据后,可以根据前一次未完成的第二操作,以及获取的新的第二身份认证凭据,访问第二服务器,执行第二操作,显示第二操作所需求的内容信息。
当前,基于某种原因,获取到的新的身份认证凭据也可能是无效的,为了避免widget反复的重新加载,宿主APP还需要对widget做刷新频率的抑制,例如一个widget在1分钟内仅允许刷新一次或两次等。
上述本申请提供的实施例中,从电子设备、第一服务器和第二服务器作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备、第一服务器和第二服务器等设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
基于相同的构思,图5所示为本申请提供的一种设备500。示例的,设备500包括收发模块501和处理模块502。
示例的,当设备500为电子设备时,设备500可以执行图3所示的显示方法中的电子设备所执行的步骤,例如,收发模块501可用于执行步骤32、步骤34等,处理模块502可用于执行步骤36。设备500也可以执行图4所示显示方法中的电子设备所执行的步骤,例如收发模块501可用于执行步骤42和步骤43等,处理模块502可用于执行步骤40、步骤41和步骤44等。
示例的,当设备500为第一服务器时,设备500可以执行图3所示的显示方法中第一服务器所执行的步骤。例如,收发模块501可用于执行步骤33中接收和发送操作。处理模块502可用于执行步骤33中的获取第二身份认证凭据的操作。设备500也可以执行图4所示的显示方法中第一服务器所执行的步骤。
示例的,当设备500为第二服务器时,设备500可以执行图3所示的显示方法中第二 服务器所执行的步骤。例如,收发模块501可用于执行步骤35中接收和发送操作。处理模块502可用于执行步骤35中的验证操作。设备500也可以执行图4所示的显示方法中第二服务器所执行的步骤。
基于相同的构思,图7所示为本申请提供的一种设备700。设备700包括至少一个处理器710、存储器720和收发器730。其中,处理器710与存储器720和收发器730耦合,本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。本申请实施例中不限定上述收发器730、处理器710以及存储器720之间的连接介质。例如,本申请实施例在图7中以存储器720、处理器710以及收发器730之间可以通过总线连接,所述总线可以分为地址总线、数据总线、控制总线等。
具体的,存储器720用于存储程序指令。
收发器730用于接收或发送数据。
处理器710用于调用存储器720中存储的程序指令,使得设备700执行图3或图4中电子设备所执行的步骤,或者执行图3或图4中第一服务器或第二服务器所执行的步骤。
在本申请实施例中,处理器710可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
在本申请实施例中,存储器720可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。
应理解,该设备500和设备700可以用于实现本申请实施例的图3和图4所示的方法,相关特征可以参照上文,此处不再赘述。
如图6所示,本申请实施例提供了一种内容显示的系统600,所述系统包括执行上述内容显示过程的电子设备610,第一服务器620和第二服务器630。
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或 数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (11)

  1. 一种显示的方法,其特征在于,包括:
    电子设备显示第一用户界面;
    所述电子设备接收用户的第一操作,所述第一操作用于控制所述电子设备显示第二用户界面,所述第二用户界面包括微件widget;
    所述电子设备响应于所述第一操作,向第一服务器发送第一认证获取请求,所述第一认证获取请求中包括第一身份认证凭据,所述第一身份认证凭据为所述第一服务器为所述电子设备分配的,所述第一认证获取请求用于获取访问第二服务器的第二身份认证凭据,所述第一身份认证凭据与所述第二身份认证凭据相关联,所述第二服务器用于为所述widget的内容提供商CP服务器;
    所述电子设备接收到所述第一服务器发送的所述第一认证获取请求的响应后,向所述第二服务器发送第一内容获取请求,所述第一认证获取请求的响应中包括所述第二身份认证凭据,所述第一内容获取请求中包括所述第二身份认证凭据,所述第一内容获取请求用于获取所述widget中待显示的内容信息;
    所述电子设备接收到所述第一内容获取请求的第一获取成功响应后,根据所述第一获取成功响应中包括的内容信息,显示第二用户界面。
  2. 如权利要求1所述的方法,其特征在于,还包括:
    所述电子设备显示第三用户界面;所述第三用户界面包括用户账号输入区域;
    所述电子设备响应于用户在所述用户账号输入区域输入第一用户账号完成的操作,向所述第一服务器发送第一请求,所述第一请求用于所述电子设备登录或注册所述第一服务器,所述第一请求中包括所述第一用户账号;
    所述电子设备接收到所述第一服务器发送的第一请求的响应,所述第一请求的响应包括所述第一身份认证凭据,其中,所述第一身份认证凭据为所述第一服务器根据所述第一用户账号分配给所述电子设备的。
  3. 如权利要求1或2所述的方法,其特征在于,所述电子设备显示所述第二用户界面之后,还包括:
    所述电子设备响应于对所述widget的第二操作,向所述第二服务器发送第二内容获取请求,所述第二内容获取请求中包括所述第二身份认证凭据和所述第二操作的操作信息,所述第二内容获取请求用于获取所述第二操作的操作信息对应的内容信息;
    所述电子设备接收到所述第二服务器发送的第二内容获取请求的第二获取成功响应后,根据所述第二获取成功响应,对所述widget中显示的内容信息进行更新,所述第二获取成功响应中包括所述第二操作的操作信息对应的内容信息。
  4. 如权利要求3所述的方法,其特征在于,若所述第二内容获取请求中包括的所述第二身份认证凭据无效,所述方法还包括:
    所述电子设备接收到所述第二服务器发送的内容获取失败响应,则向所述第一服务器发送第二认证获取请求,所述第二认证获取请求中包括所述第一身份认证凭据,所述第二认证获取请求用于重新获取访问所述第二服务器的第二身份认证凭据;
    所述电子设备在接收到所述第一服务器发送的所述第二认证获取请求的响应后,向所述第二服务器重新发送第二内容获取请求,所述第二内容获取请求的响应包括重新分配的 第二身份认证凭据,所述重新发送的第二内容获取请求包括所述重新分配的第二身份认证凭据和所述第二操作的操作信息。
  5. 如权利要求1至4任一所述的方法,其特征在于,认证获取请求中还包括所述第二服务器的标识。
  6. 一种显示的方法,其特征在于,包括:
    第一服务器接收电子设备发送的第一认证获取请求,所述第一认证获取请求中包括第一身份认证凭据,所述第一身份认证凭据为所述第一服务器为所述电子设备分配的,所述第一认证获取请求用于获取访问第二服务器的第二身份认证凭据;
    第一服务器根据所述第一身份认证凭据和预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定所述第二身份认证凭据;
    所述第一服务器向所述电子设备发送所述第一认证获取请求的响应,所述第一认证获取请求的响应包括所述第二身份认证凭据。
  7. 如权利要求6所述的方法,其特征在于,所述第一认证获取请求中还包括所述第二服务器的标识;所述方法还包括:
    所述第一服务器根据所述第一身份认证凭据和预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定所述第二身份认证凭据,包括:
    所述第一服务器根据所述第一身份认证凭据和预先存储的所述第一服务器为所述电子设备法分配的身份认证凭据和用于访问所述第二服务器的身份认证凭据的关联关系,确定与所述第一身份认证凭据关联的身份认证凭据;
    所述第一服务器根据所述第二服务器的标识,从与所述第一身份认证凭据关联的身份认证凭据中,确定所述第二身份认证凭据。
  8. 一种设备,其特征在于,所述设备包括处理器和存储器;
    所述存储器中存储有程序指令;
    当所述程序指令被执行时,使得所述设备执行如权利要求1至5任一所述的方法。
  9. 一种设备,其特征在于,所述设备包括处理器和存储器;
    所述存储器中存储有程序指令;
    当所述程序指令被执行时,使得所述设备执行如权利要求6或7所述的方法。
  10. 一种芯片,其特征在于,所述芯片与设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现如权利要求1至7任一所述的方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括程序指令,当所述程序指令在设备上运行时,使得所述设备执行如权利要求1至7任一项所述的方法。
PCT/CN2020/087349 2019-05-08 2020-04-28 一种显示的方法及设备 WO2020224478A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20802377.0A EP3944600A4 (en) 2019-05-08 2020-04-28 DISPLAY METHOD AND DEVICE
US17/521,112 US20220058037A1 (en) 2019-05-08 2021-11-08 Display Method and Device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910380047.8 2019-05-08
CN201910380047 2019-05-08
CN201910430945.X 2019-05-22
CN201910430945.XA CN111917916B (zh) 2019-05-08 2019-05-22 一种显示的方法及设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/521,112 Continuation US20220058037A1 (en) 2019-05-08 2021-11-08 Display Method and Device

Publications (1)

Publication Number Publication Date
WO2020224478A1 true WO2020224478A1 (zh) 2020-11-12

Family

ID=73051397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087349 WO2020224478A1 (zh) 2019-05-08 2020-04-28 一种显示的方法及设备

Country Status (4)

Country Link
US (1) US20220058037A1 (zh)
EP (1) EP3944600A4 (zh)
CN (1) CN112383663B (zh)
WO (1) WO2020224478A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917916B (zh) * 2019-05-08 2024-04-26 华为技术有限公司 一种显示的方法及设备
CN113835347A (zh) * 2021-09-15 2021-12-24 深圳Tcl新技术有限公司 设备状态管理方法及装置
CN114265662B (zh) * 2022-03-03 2022-08-12 荣耀终端有限公司 一种信息推荐方法、电子设备及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546648A (zh) * 2012-01-18 2012-07-04 Ut斯达康通讯有限公司 一种资源访问授权的方法
CN104243415A (zh) * 2013-06-17 2014-12-24 中国移动通信集团公司 一种能力调用方法和设备
CN104735021A (zh) * 2013-12-18 2015-06-24 腾讯科技(深圳)有限公司 一种帐号登录方法、装置和系统
CN105487392A (zh) * 2015-11-26 2016-04-13 小米科技有限责任公司 设备展示方法及装置
CN107786621A (zh) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 一种用户信息管理方法、访问处理方法及装置和系统
CN109525604A (zh) * 2018-12-29 2019-03-26 乐蜜有限公司 一种账号绑定的方法及相关设备
CN109726545A (zh) * 2017-10-31 2019-05-07 中国移动通信集团公司 一种信息显示方法、设备、计算机可读存储介质和装置

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5147352B2 (ja) * 2007-10-16 2013-02-20 株式会社日立製作所 データ処理装置の情報提供方法
KR20100086677A (ko) * 2009-01-23 2010-08-02 삼성전자주식회사 커뮤니티 위젯 제공 방법 및 장치
EP2357806B1 (en) * 2010-01-06 2018-05-23 Lg Electronics Inc. A display device and a method for displaying contents on the same
CN101827123B (zh) * 2010-03-29 2013-04-03 北京掌中宽途科技有限公司 实现具有SNS功能的移动Widget引擎的方法和系统
CN101977219B (zh) * 2010-10-19 2015-10-21 中兴通讯股份有限公司 一种widget应用保护方法及装置
CN102096879A (zh) * 2011-01-25 2011-06-15 中兴通讯股份有限公司 广告的发布方法及系统、终端
CN102143219B (zh) * 2011-01-25 2015-01-28 中兴通讯股份有限公司 widget资源的共享方法及系统
CN103049258A (zh) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 一种基于安卓操作系统控制视频播放的方法及系统
JP6033990B2 (ja) * 2013-09-20 2016-11-30 オラクル・インターナショナル・コーポレイション 単一のフレキシブルかつプラガブルOAuthサーバを備える複数のリソースサーバ、OAuth保護したREST式OAuth許諾管理サービス、およびモバイルアプリケーションシングルサインオンするOAuthサービス
US9838502B2 (en) * 2014-08-06 2017-12-05 Michael D. CROFT Systems and methods for RWD app store based collaborative enterprise information management
CN105763514B (zh) * 2014-12-17 2019-11-29 华为技术有限公司 一种处理授权的方法、设备和系统
CN107026847B (zh) * 2017-02-09 2020-05-26 阿里巴巴集团控股有限公司 一种信任登录方法、服务器及系统
CN106959878B (zh) * 2017-03-31 2020-03-31 努比亚技术有限公司 微件管理方法及移动终端
CN107291453A (zh) * 2017-05-27 2017-10-24 广东欧珀移动通信有限公司 组件显示方法及相关产品
CN108182577A (zh) * 2017-12-01 2018-06-19 阿里巴巴集团控股有限公司 一种展示付款信息的方法、装置及设备
CN108038244B (zh) * 2017-12-28 2020-02-21 北京达佳互联信息技术有限公司 利用微件展示作品封面的方法、装置和移动终端
AU2018415397B2 (en) * 2018-03-28 2022-04-21 Huawei Technologies Co., Ltd. Video preview method and electronic device
KR20230017925A (ko) * 2018-04-02 2023-02-06 구글 엘엘씨 대화형 클라우드 게임용 방법, 디바이스 및 시스템

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546648A (zh) * 2012-01-18 2012-07-04 Ut斯达康通讯有限公司 一种资源访问授权的方法
CN104243415A (zh) * 2013-06-17 2014-12-24 中国移动通信集团公司 一种能力调用方法和设备
CN104735021A (zh) * 2013-12-18 2015-06-24 腾讯科技(深圳)有限公司 一种帐号登录方法、装置和系统
CN105487392A (zh) * 2015-11-26 2016-04-13 小米科技有限责任公司 设备展示方法及装置
CN107786621A (zh) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 一种用户信息管理方法、访问处理方法及装置和系统
CN109726545A (zh) * 2017-10-31 2019-05-07 中国移动通信集团公司 一种信息显示方法、设备、计算机可读存储介质和装置
CN109525604A (zh) * 2018-12-29 2019-03-26 乐蜜有限公司 一种账号绑定的方法及相关设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3944600A4

Also Published As

Publication number Publication date
US20220058037A1 (en) 2022-02-24
EP3944600A4 (en) 2022-05-18
CN112383663A (zh) 2021-02-19
EP3944600A1 (en) 2022-01-26
CN112383663B (zh) 2022-03-04

Similar Documents

Publication Publication Date Title
US11178522B2 (en) Method for providing content corresponding to accessory and electronic device thereof
CN109076331B (zh) 电子设备和电子设备的控制方法
WO2020224478A1 (zh) 一种显示的方法及设备
KR102367551B1 (ko) 전자 장치의 정보 처리 방법 및 장치
US20170244574A1 (en) Electronic device and method for registering smart home device in smart home system
WO2019227450A1 (zh) 应用功能的实现方法及电子设备
CN112055424B (zh) 电子装置以及切换电子装置的方法
WO2019206201A1 (zh) 一种配置文件传输方法及相关设备和存储介质
KR102206351B1 (ko) 전자 장치 및 이의 작업 연계 방법
WO2019218124A1 (zh) 一种sim卡自动切换的方法和电子装置
EP3817322A1 (en) Method for upgrading service application range of electronic identity card, and terminal device
WO2022057742A1 (zh) 一种跨设备调用应用的方法及电子设备
WO2022048385A1 (zh) 一种迁移配置文件的方法及装置
CN111357255B (zh) 构建多个应用通用的可信应用
US10257873B2 (en) Method and electronic device for providing tethering service
WO2021073428A1 (zh) 一种账号绑定方法、设备及系统
WO2022135156A1 (zh) 分布式跨设备协同方法、电子设备及通信系统
CN111917916B (zh) 一种显示的方法及设备
KR20160037019A (ko) 전자 장치, 그 제어 방법 및 기록 매체
KR20220071482A (ko) 에지 컴퓨팅 서비스를 수행하는 전자 장치 및 전자 장치의 동작 방법
KR20150128482A (ko) 전자 장치들 간의 연동 서비스 운용 방법 및 장치
JP7319431B2 (ja) アプリケーション機能の実施方法及び電子装置
WO2022042765A1 (zh) 一种显示方法及电子设备
WO2020133477A1 (zh) 数据显示方法
KR102206817B1 (ko) 전자 장치 및 그의 기지국 리스트를 관리하는 방법

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: 20802377

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020802377

Country of ref document: EP

Effective date: 20211022

NENP Non-entry into the national phase

Ref country code: DE