WO2021017837A1 - Card sharing method, apparatus and system - Google Patents
Card sharing method, apparatus and system Download PDFInfo
- Publication number
- WO2021017837A1 WO2021017837A1 PCT/CN2020/102221 CN2020102221W WO2021017837A1 WO 2021017837 A1 WO2021017837 A1 WO 2021017837A1 CN 2020102221 W CN2020102221 W CN 2020102221W WO 2021017837 A1 WO2021017837 A1 WO 2021017837A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- card
- electronic device
- server
- template
- information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/60—Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Definitions
- the prior art can generate different quick service cards for different applications, and display them on one screen of the electronic device.
- These quick service cards carry service information of corresponding applications (such as ticket information in travel applications, logistics information in shopping applications, etc.), so that users can view these service information without entering the application.
- These quick service cards can also carry application-related operations (such as jump links to direct services), so that users can quickly access the services of the corresponding applications through the quick service cards.
- users can perform sharing operations on quick service cards.
- the electronic device responds to the sharing operation input by the user, the electronic device generates a static picture according to the view currently presented by the quick service card and sends it to the recipient electronic device, realizing that the service information carried by the quick service card is shared to the recipient in the form of a picture Electronic equipment, but the service functions carried by the quick service card cannot be shared.
- the service information of most applications is usually dynamically updated (such as logistics information in shopping applications, weather information in weather applications, etc.), so the service information carried by the quick service card is usually dynamically updated and shared in the form of pictures
- the solution can only share the service information carried by the quick service card at the moment of sharing to the recipient electronic device. If the service information carried on the quick service card is refreshed, the recipient electronic device cannot obtain the refreshed service information .
- the embodiments of the present application provide a card sharing method, device, and system to solve the technical problems that the card sharing solution in the prior art cannot share service functions and cannot update service information synchronously.
- an embodiment of the present application provides a card sharing system, the system including a first electronic device, a second electronic device, and a first server;
- the second electronic device is configured to: receive the sharing information, and send a first card request to the first server based on the first card ID; wherein, the first card request carries the first card ID;
- the first server is configured to: in response to the first card request, determine the first card template and the first card parameter that match the first card ID, and determine the determined The first card template and the first card parameters are issued to the second electronic device; wherein, the first server stores card information of at least one card, wherein the card information of each card includes the card information Card templates and card parameters, and the card template and card parameters of each card are associated with the card ID corresponding to the card, the card template is used to indicate the visual style of the card, and the card parameters are used to indicate the content elements of the card, The at least one card includes the first card;
- the second electronic device is further configured to: receive the first card template and the first card parameter, generate a second card based on the first card template and the first card parameter, and display the second card card.
- the first electronic device after receiving the sharing operation of the shared card (ie, the first card) input by the user, the first electronic device responds to the sharing operation, generates sharing information, and sends the sharing information to the second electronic device.
- a device where the shared information includes at least the card ID corresponding to the shared card; after receiving the shared information, the second electronic device initiates a card request to the first server based on the card ID; the first server receives the request sent by the second electronic device Afterwards, the card matching the card ID is determined, and the determined card is issued to the second electronic device.
- the card obtained by the second electronic device from the first server based on the card ID request that is, the second card
- the first card shared with the first electronic device can be The same card, so the second card presented by the second electronic device is the same as the first card carried on the first electronic device. It can present dynamic information such as videos, sounds or maps, and can provide the function of quickly accessing the services of the first application , So as to achieve the technical effect of sharing the card in the card format between electronic devices, so as to solve the technical problem that the card sharing solution cannot share the dynamic information on the card and cannot share the service function of the card.
- the first card may include a content area and a title area; wherein, the content area is a presentation area of at least one service information item carried by the first card; the at least one service information The item is the service information item in the first application associated with the first card; the content element of the first card includes the name of each service information item in the at least one service information item; the title area is the first A presentation area of the title of a card, and the content element of the first card includes the name of the title of the first card.
- the purpose of the card service can be highlighted through the title area, and the content area can centrally present the content of the service information items, which can make the layout of the service information items carried by the card tidy and improve the visual effect.
- the format of the information contained in each service information item in the at least one service information item may be one or a combination of text, picture, video, and audio, which is not done in this embodiment of the application. Specific restrictions.
- the content format of the service information items carried by the card is flexible and rich, and the push and sharing of information such as text, picture, video, and audio can be realized based on the card, and the user experience is improved.
- the first card further includes an operation area for providing functional operations related to the at least one service information item.
- the user can input a preset operation on the "operation area" to realize the preset function, realize the interaction with the card, and further improve the user experience.
- the operation area includes a text operation button, and the text operation button is associated with the uniform resource locator URL of the service page of the first application; the content element of the first card includes the The name of the text operation button and the URL associated with the text operation button.
- the user can jump to the service page of the first application by clicking the text operation button, so as to obtain more service information, and further improve the user experience.
- the first card is associated with the URL of the main service page of the first application.
- the user can quickly jump to the main service page by interacting with the first card (for example, clicking an area on the card that is not provided with an operation button), so as to obtain more service information and further improve the user experience .
- the card data in the embodiment of this application may come from the first server.
- the second electronic device is further configured to: request the first card from the first server based on the first card parameters Data, wherein the first card data includes the specific content of each content element indicated by the first card parameter; the second electronic device is generating a second card based on the first card template and the first card parameter When, it is specifically used to: perform graphic rendering based on the first card template, the first card parameters, and the first card data to generate a second card.
- the second card when the second electronic device displays the second card, the second card may be displayed on the lock screen interface, so that the user can view the service information on the card in time without unlocking; It may also be that the second card is displayed on the user interface of the second application, where the second application is an application for the second electronic device to receive the shared information from the first electronic device, so that the user can The application that receives the shared information views the service information on the card; it can also display the second card on a negative one-screen interface.
- the specific implementation process is not limited to this system.
- This embodiment provides a variety of card display modes to facilitate the user to view the shared card, and further enhance the user experience.
- the first server is further configured to: determine to update the card corresponding to the first card ID; determine that the card corresponding to the first card ID includes the first card and the second card Send update information to the first electronic device where the first card is located and the second electronic device where the second card is located; the first electronic device is also used to: pair the update information according to the received update information The displayed first card is updated; the second electronic device is further configured to: update the displayed second card according to the received update information.
- the first server when the first server updates the service information or service functions carried by the first card on the first electronic device according to the real-time data returned by the second server, it can simultaneously report to the second electronic device according to the card ID.
- the card is updated. In this way, the synchronization of the first card on the second electronic device and the second card on the first electronic device can be ensured, which solves the technical problem that the service information of the card sharing solution in the prior art cannot be updated simultaneously.
- an embodiment of the present application provides a card sharing method applied to a first electronic device, and the first electronic device displays a first card; the method includes: the first electronic device responds to the first electronic device The instruction for sharing the card with the second electronic device generates sharing information; wherein, the first card is a card generated by the first electronic device based on the first card template and the first card parameters issued by the first server, and The shared information includes the first card ID corresponding to the first card; the first electronic device sends the shared information to the second electronic device, so that the second electronic device is based on the first card ID Send a first card request to the first server, obtain the first card template and the first card parameter from the first server, and generate a first card template based on the first card template and the first card parameter Two cards and display the second card.
- the first electronic device after the first electronic device sends the sharing information to the second electronic device, it may also receive update information sent by the first server; and pair the shared information according to the update information The first card displayed is updated.
- an embodiment of the present application provides a card sharing method applied to a second electronic device; the method includes: the second electronic device receives the sharing information sent by the first electronic device; wherein the sharing information includes The first card ID corresponding to the first card; wherein, the first card is a card generated by the first electronic device based on the first card template and the first card parameters issued by the first server; the second electronic device Send a first card request to the first server based on the first card ID, so that the first server, in response to the first card request, determines the first card ID that matches the first card ID A card template and the first card parameters, and the determined first card template and the first card parameters are issued to the second electronic device; the second electronic device receives the first The first card template and the first card parameters issued by the server; the second electronic device generates a second card based on the first card template and the first card parameters, and displays the second card .
- the second electronic device may also be based on the first card parameters Request the first card data from the second server, where the first card data includes the specific content of each content element indicated by the first card parameter; then, the second electronic device is based on the first card template and
- the second card may be generated by performing graphic rendering based on the first card template, the first card parameter, and the first card data.
- the second electronic device may also be based on the first card parameters Request first card data from the first server, where the first card data includes the specific content of each content element indicated by the first card parameter; then, the second electronic device is based on the first card
- the second card may be generated by performing graphic rendering based on the first card template, the first card parameters, and the first card data.
- the second electronic device displays the second card, which may be displayed on the lock screen interface; or may be displayed on the user interface of the second application.
- Card wherein the second application is an application for the second electronic device to receive the sharing information from the first electronic device; it may also be an application for displaying the second card on a negative one-screen interface.
- the embodiment of this application does not Do restrictions.
- the second electronic device may also receive update information sent by the first server; the second electronic device may The information updates the displayed second card.
- the implementation of this application provides a method for sharing a card, which is applied to a first server, and the method includes: the first server receives a first card request sent by a second electronic device; wherein, the first card The request carries the first card ID; in response to the first card request, the first server determines the first card template and the first card parameter that match the first card ID; wherein, the first card A server stores card information of at least one card, where the card information of each card includes the card template and card parameters of the card, and the card template and card parameters of each card are associated with the card ID corresponding to the card,
- the card template is used to indicate the visual style of the card, and the card parameters are used to indicate the content elements of the card; the first server issues the determined first card template and the first card parameters to all The second electronic device, so that the second electronic device generates a second card based on the first card template and the first card parameter, and displays the second card.
- the first server may also determine Update the card corresponding to the first card ID; determine that the card corresponding to the first card ID includes the first card and the second card; report to the first electronic device where the first card is located and where the second card is located
- the second electronic device sends update information, so that the first electronic device updates the displayed first card according to the received update information, and causes the second electronic device to update the displayed first card according to the received update information.
- the displayed second card is updated.
- 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-mentioned 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 includes a computer program.
- the computer program runs on an electronic device, the electronic device executes the above aspects and Any possible design method involved in all aspects.
- a computer program product according to an embodiment of the present application.
- the computer program product includes instructions. When the instructions are executed, the computer executes the implementation of the foregoing aspects of the embodiments of the present application and any of the aspects involved Possible design methods.
- Figure 1A is a schematic diagram of an electronic device displaying a card on a negative screen
- Figure 1B is a schematic diagram of clicking the operation button on the card to enter the service page
- Figure 1C is a schematic diagram of performing a sharing operation on a card on a negative screen
- Figure 1D is a schematic diagram of selecting a sharing method
- Figure 1E is a schematic diagram of the card displayed on the receiver's electronic device in a picture format
- FIG. 2A is a schematic structural diagram of a possible card sharing system in an embodiment of this application.
- FIG. 2B is a schematic structural diagram of another possible card sharing system in an embodiment of this application.
- FIG. 3 is a schematic structural diagram of a possible electronic device in the implementation of this application.
- FIG. 4 is a flowchart of a card sharing method in the implementation of this application.
- 5A is a schematic diagram of a possible card style in an embodiment of this application.
- 5B is a schematic diagram of another possible card style in an embodiment of this application.
- 6A and 6B are schematic diagrams of jumping from the card display page to the service page of the application in an embodiment of the application;
- FIG. 7A is a flow chart of the first server issuing the first card to the first electronic device in an embodiment of this application;
- FIG. 7B is another flow chart of the first server issuing the first card to the first electronic device in an embodiment of this application;
- Figure 8 is a schematic diagram of a card sharing interface in an embodiment of the application.
- 9A is a flow chart of the second electronic device receiving shared information and restoring the first card in an embodiment of the application
- 9B is another flow chart of the second electronic device receiving sharing information and restoring the first card in an embodiment of the application.
- FIG. 10 is a schematic diagram of the second card displayed on the lock screen interface in an embodiment of the application.
- 11 is a schematic diagram of the second card displayed on the chat interface of the communication application in the embodiment of the application;
- Figure 12 is a schematic diagram of adding a second card to a negative screen in an embodiment of the application.
- 13A and 13B are respectively a schematic diagram of the interface with one screen negative before the second card is collected and a schematic diagram of the interface with one screen negative after the second card is collected;
- 14A is a schematic diagram of clicking a card on the lock screen interface to jump to the service page of the application in an embodiment of the application;
- 14B is a schematic diagram of clicking a card on the chat interface to jump to the service page of the application in an embodiment of the application;
- FIG. 15 is a schematic structural diagram of another possible electronic device in an embodiment of this application.
- Quick application also called “quick application” in this article, is a new application form based on the mobile phone hardware platform.
- the standard is jointly formulated by the Quick Application Alliance composed of mainstream mobile phone manufacturers.
- the fast application framework is deeply integrated into the mobile operating systems of major mobile phone manufacturers, which can form a seamless connection between user needs and application services at the operating system level, so that the functions in the native APP can be implemented in the fast application.
- Quick apps can have a partial or complete application experience of native applications (applications, APPs), but unlike native apps, quick apps do not need to be installed and can be used immediately.
- the quick application may have multiple system entrances, such as negative one screen, browser search, global search, etc., which are not limited in the embodiment of the present application.
- the native APP can include the content of the corresponding quick application.
- the native APP of WeChat Express is WeChat.
- the native APP of Alipay Quick App is Alipay.
- the native APP of the Weather Express application is Weather. It should be noted that when the electronic device is running a certain quick application in the embodiment of the present application, the native APP of the quick application may be installed on the electronic device or not.
- Negative one screen which may also be referred to as "-1 screen” in the embodiments of the present application, refers to sliding the screen to the right on the main screen of the electronic device until it reaches the leftmost split screen user interface.
- a negative screen can be used to place some quick service functions and notification messages, such as global search, quick access to a certain page of the application (payment code, WeChat, etc.), instant information and reminders (express information, expenditure information, commuting traffic, taxis) Travel information, schedule information, etc.) and follow trends (football stands, basketball stands, stock information, etc.).
- Fast service card also called “card” in this article, is a new service form that provides a finer-grained atomic service capability than application (APP), and directly integrates The service or content that the user cares about the most is displayed to the user, and the card can be embedded in various APPs or interactive scenarios to better meet user needs.
- the card is generally a page in a quick app or a native APP corresponding to the quick app. The user clicks on the card to jump to the corresponding quick app or a certain service page in the app.
- the card generation process is: the application service provider uploads the service content that needs to be pushed to the user on the server, and the server generates the corresponding card according to the service content uploaded by the provider, and pushes the card to the user’s electronic device for display , So that the user's electronic device presents the service pushed by the application service provider to the user in the form of a card.
- a card corresponds to a part of the service function of the application (except for special instructions, the "application” referred to in the implementation of this application can be a fast application or a native APP, which is not limited by the embodiments of this application)
- the application provider can split the application service into multiple service modules, each service module corresponds to a card, and then push different cards to users according to different service scenarios.
- Rich media refers to information dissemination methods with animation, sound, video and/or interactivity. Rich media may include one or a combination of streaming media, sound, Flash, and programming languages such as Java, Javascript, and DHTML.
- the card in the embodiment of this application can carry rich media information.
- Top refers to a state setting operation performed on a card on a certain user interface (such as a negative screen). When a card is set to top, the card will be displayed on the negative screen. At the top, the card will not disappear unless the top setting is removed.
- Main service page and secondary service page The uppermost user interface of the application (that is, the first user interface presented after the application is started) is called the main service page, and other user interfaces except the uppermost user interface are called secondary Level service page (users can enter the secondary service page by inputting interface switching operations on the main service page).
- each card can be associated with one or more user interfaces of the corresponding application of the card, and the user can realize the function of jumping to the user interface of the corresponding application by performing operations on the card.
- Visual style refers to the visual experience of things presented to people, including the shape, structure, size, color, movement, etc. of things.
- the visual style of the card may include the shape (such as rectangle), color (such as white, black, etc.), size, layout of the service information items carried by the card, etc.
- At least one of the embodiments of the present application includes one or more; wherein, multiple refers to greater than or equal to two.
- the application corresponding to the card referred to in the embodiment of this application may be a native application or a fast application, which is not specifically limited in the embodiment of this application.
- Figure 1A is an example of an electronic device displaying a card on a negative screen.
- swipe the screen to the right on the home screen of the electronic device until the user interface of the split screen on the far left is the negative one-screen display page.
- the negative one-screen display page displays the hotel application "Orange Hotel” Push the order notification card, which shows some service information corresponding to the order, such as the name of the hotel "Orange Hotel", the location of the hotel “311 Nanjing Road”, the check-in time "March 14", the map around the hotel, etc.
- Below the card there are three operation buttons “Navigate now”, “I want to take a taxi", and "View details”. Users can click different operation buttons to enter different service pages, as shown in Figure 1B. Click View details to enter the hotel order Order details page.
- FIG. 1C users can perform operations on cards, such as putting cards on top, removing cards, and sharing cards.
- Fig. 1E it is a schematic diagram of the user interface of the WeChat friend "Lisa” receiving the sharing information sent by the electronic device shown in Figs. 1A to 1D (the sender user shown in Fig. 1E uses "Yaya" as an example),
- the format of the shared information in the electronic device of the recipient user "Lisa” is a static picture.
- the view of the picture is the same as that of the card shown in Figure 1A, the corresponding service function on the card (such as the service page linked to the card, The service page linked to the operation button on the card, etc.) is not shared with the recipient’s electronic device, so the recipient user cannot access any services related to hotel bookings except for the static information presented in the image view.
- the corresponding service function on the card such as the service page linked to the card, The service page linked to the operation button on the card, etc.
- the service information carried on the card also contains rich media information, such as dynamic information such as videos, sounds, or maps, the solution of sharing the card information in a picture format will not be able to share this information.
- the service information of most applications is usually dynamically updated (such as logistics information in shopping applications, weather information in weather applications, etc.), so the service information carried by the card is usually also dynamically updated and shared in the form of pictures
- the solution can only share the service information carried by the card at the moment it is shared with the recipient electronic device.
- the recipient electronic device cannot obtain the refreshed service information of.
- the embodiments of the present application provide a card sharing solution.
- the sender's electronic device After receiving the sharing operation for the shared card, the sender's electronic device responds to the sharing operation and generates sharing information, where the sharing information includes at least the card corresponding to the shared card.
- the identity document (ID) of the card in this embodiment of the application, each card has a unique card ID; the sender’s electronic device sends the shared information to the recipient’s electronic device, and the recipient’s electronic device receives the shared information Then, it initiates a card request to the server based on the card ID in the shared information; after receiving the request sent by the receiver’s electronic device, the server determines the card that matches the card ID, and sends the determined card to the receiver’s electronic device.
- the receiving electronic device displays the card issued by the server after receiving it.
- the server when it is updating the service information carried by a card, it can send the updated service information to all electronic devices running the card (such as the aforementioned sender electronic device and receiver electronic device). In this way, The card of the receiver's electronic device can be updated synchronously with the card of the sender's electronic device to improve user experience.
- FIG. 2A can be a schematic diagram of a possible structure of the card sharing system in the embodiments of the present application.
- the card sharing system may include a first electronic device, a second electronic device, a first server, and a second server.
- the first electronic device and the second electronic device can communicate with each other, and the first server can communicate with the first electronic device, the second electronic device, and the second server respectively.
- the first server is a server that provides card services
- the second server is a server of an application service provider.
- the second server can send the service content that needs to be pushed to the user to the first server, and the first server generates the corresponding service according to the service content.
- Quickly serve the card and push the card to the user's electronic device for display, such as the first electronic device, so that the first electronic device presents the service to the user in the form of a card.
- the service content may not be provided by the second server, but the first server provides the service content and generates a corresponding quick service card based on the service content.
- the first electronic device After receiving the card issued by the first server, the first electronic device can receive the user's sharing operation on the card, and share the card with the second electronic device in response to the sharing operation.
- the specific sharing method will be introduced in detail later.
- the card sharing system may also include more electronic devices, such as a third electronic device, a fourth electronic device, etc., and the embodiment of the present application does not limit the number of electronic devices.
- the card sharing system may also include more servers of application service providers, and the embodiment of the present application does not specifically limit the number of servers of application service providers.
- the card sharing system may also include fewer servers.
- FIG. 2B may be a schematic diagram of another possible structure of the card sharing system in the embodiment of the application.
- the service content that needs to be pushed to the user can be generated by the first server.
- the electronic device involved in the embodiment of the present application may be any electronic device that supports the quick service card function.
- it may be a portable electronic device containing functions such as a personal digital assistant and/or a music player, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), and the like.
- portable electronic devices include but are not limited to carrying Or portable electronic devices with other operating systems.
- the above-mentioned 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).
- the aforementioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
- electronic devices support multiple applications.
- one or more of the following applications travel application, drawing application, presentation application, word processing application, game application, phone application, video player application, music player application, email application, shopping application, instant messaging application , Photo management applications, camera applications, browser applications, calendar applications, clock applications, payment applications and health management applications.
- instant messaging applications such as SMS applications, MMS applications, various email applications, WeChat, Tencent chat software (QQ), WhatsApp Messenger, Line, photo sharing (instagram), Kakao Talk, DingTalk, etc.
- Users can send text, voice, pictures, video files, and various other files to other contacts through instant messaging applications.
- the above-mentioned applications supported by the electronic device may be native application programs or fast applications, and the embodiments of the present application do not make specific restrictions.
- the electronic device can also support quick service cards corresponding to these applications, such as cards corresponding to order logistics services in shopping applications, and cards corresponding to ticket information in travel applications.
- the electronic device may not only support the quick service card corresponding to the installed application, but also the quick service card corresponding to the uninstalled application.
- the electronic device when the electronic device displays any card, the user can view the push service information of the corresponding application carried by the card. Users can also interact with the card to quickly access the services of the corresponding application. For example, click the card to jump to a service page associated with the card (for example, the main service page of the corresponding application), or click the operation button on the card to jump to a service page associated with the operation button (which can be the corresponding application).
- the main service page can also be the secondary service page of the corresponding application).
- the electronic device supports communication with other electronic devices or servers, so as to share cards with other electronic devices or receive cards shared by other electronic devices.
- the following takes the electronic device as a mobile phone as an example to illustrate a schematic structural diagram of an electronic device applied in the implementation of this application.
- the execution of the card sharing solution in the embodiment of the present application can be controlled by the processor 110 or call other components to complete, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling a third-party device through the external memory interface 120
- the processing program stored in the embodiment of the present application is used to control the mobile communication module 150 or the wireless communication module 160 to perform data communication with other electronic devices to realize card sharing.
- the controller may be the nerve center and command center of the mobile phone 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- 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 mobile communication module 150 of the mobile phone 100 receives card templates, card parameters, and card data from the first server 01, and transmits them to the GPU in the processor 110.
- the GPU performs graphics rendering based on the card templates, card parameters, card data, etc., and generates The displayed card.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the mobile phone 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 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 150 or other functional modules.
- the wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- frequency modulation frequency modulation, FM
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the 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 mobile phone 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- the mobile phone 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats.
- the mobile phone 100 may include one or N cameras 193, and N is a positive integer greater than one.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
- the data storage area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100.
- 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), etc.
- UFS universal flash storage
- the button 190 includes a power button, a volume button, and so on.
- the button 190 may be a mechanical button. It can also be a touch button.
- the mobile phone 100 can receive key input, and generate key signal input related to user settings and function control of the mobile phone 100.
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations applied to different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the SIM card interface 195 is used to connect to the SIM card.
- the SIM card can be connected to and separated from the mobile phone 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195.
- the mobile phone 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 may also be compatible with external memory cards.
- the mobile phone 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the mobile phone 100 uses an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
- the mobile phone 100 may include more or fewer components than those shown in the figure, 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 card sharing system shown in FIG. 2A is mainly taken as an example, and the sender electronic device is the first electronic device and the receiver electronic device is the second electronic device as an example to introduce the card sharing method provided by the implementation of this application.
- FIG. 4 is a flowchart of the card sharing method. Referring to Figure 4, the method includes:
- the first electronic device receives the sharing operation for the first card, and responds to the sharing operation to generate sharing information, where the sharing information includes at least the first card ID corresponding to the first card.
- the first card may be generated by the first server and issued to the first electronic device after the service provider of the first application uploads service content on the first server.
- the specific implementation of the service provider of the first application uploading the service content on the first server may be: the second server sends the service content to the first server, where the second server is the server of the first application.
- each card has a unique card ID.
- the first server issues the first card to the first electronic device, it can simultaneously send the first card ID corresponding to the first card to First electronic equipment.
- the style of the first card can have multiple styles, which are not limited in the embodiment of this application. Here are two possible styles:
- the second server sends the service content that needs to be pushed to the first server.
- the service provider of the first application can select a card template when uploading service content on the first server, for example, select the card template (first card template) shown in Figure 5B, and fill in according to the service content to be pushed
- Corresponding card parameters (first card parameters), where the card parameters are used to indicate the content elements of the card, such as the name of the first card, the URL of the first card link, the name of each service information item carried by the first card, The name of the operation button, the URL of the operation button link, and the name of the data that needs to be passed in when the card is running.
- S202 The first server sends the card template and the card parameters to the first electronic device.
- S203 The first electronic device requests card data from the second server based on the card parameters.
- the mobile communication module 150 of the first electronic device transmits the received card template and card parameters to the processor 110 of the first electronic device, and the processor 110 determines the requirements based on the card parameters.
- the obtained card data is then requested from the second server for the determined card data.
- the first electronic device requests the specific service information requested by each service information item in the first card content area, requests the service page corresponding to the first card according to the URL associated with the first card itself, and requests each operation according to the URL associated with each operation button.
- the first electronic device requests the specific address of the Orange Hotel according to the "location”, requests the check-in time of the Orange Hotel according to the "check-in time”, and requests navigation page data according to the immediate navigation.
- the first electronic device performs card rendering and displays the first card.
- the mobile communication module 150 of the first electronic device transmits the card data to the processor 110 of the first electronic device.
- the processor 110 is based on the card template, card parameters, and card data.
- the data is graphically rendered to generate the graphics of the first card, and the display screen 194 of the first electronic device can be controlled to display the first card.
- FIG. 7A is a specific implementation method for the first server to issue the first card to the first electronic device when the server providing card service (the first server) and the server providing application service content (ie, the second server) are different servers.
- the server providing card service and the server providing application service content may also be the same server (for example, both are the first server).
- the specific implementation methods for issuing the first card include:
- S301 The first server sends the card template and the card parameters to the first electronic device.
- the first electronic device requests card data from the first server based on the card parameters.
- the shared information generated by the first electronic device may include other information, such as the ID of the first electronic device, in addition to the card ID corresponding to the first card (ie, the first card ID).
- the ID of the first electronic device in addition to the card ID corresponding to the first card (ie, the first card ID).
- the first electronic device sends the sharing information to the second electronic device.
- the channel for the first electronic device to share the shared information with the second electronic device can be implemented in multiple ways.
- nearby devices Bluetooth, NFC, communication applications (such as short messages) built in the operating system of the first electronic device, or third-party applications, etc., are not specifically limited in the embodiment of the present application.
- the sharing interface of the first electronic device may include operation buttons corresponding to various sharing channels.
- the sharing interface corresponding to the hotel card shown in Figure 8 the sharing interface includes the operation buttons corresponding to the "Bluetooth” sharing channel, and the operation buttons corresponding to the third-party APP (WeChat, "Weibo") sharing channel.
- One possible way is to set the sharing icon corresponding to the frequently used contacts in the default communication application.
- the sharing interface corresponding to the hotel card shown in Figure 8 the second column of the sharing interface displays "Lisa” and “Brown” , "Qiu Ke” and other quick sharing icons for frequently used contacts. The user clicks on the icon of a frequently-used contact on the sharing interface (such as "Lisa”), and then the sharing information can be directly sent to the contact through the default communication application.
- Another possible way is to set the first electronic device to bind the sharing icons corresponding to other electronic devices ("Yaya's watch”, “TV”, “Yaya's tablet” as shown in FIG. 8). After the user clicks the sharing icon corresponding to a bound device (such as "Yaya’s tablet”), he can directly send the sharing information to the bound electronic device. At this time, the first electronic device does not need to jump. Transfer to the user interface of other applications to send the shared information.
- the icon for realizing the quick sharing operation may also have other implementation methods, which are not limited in the embodiment of the present application.
- the second electronic device After receiving the sharing information, the second electronic device initiates a card request to the first server based on the first card ID in the sharing information.
- the mobile communication module 150 of the second electronic device transmits the shared information to the processor 110 of the second electronic device; the processor 110 of the second electronic device is based on the first card in the shared information
- the ID generates a card request, and the mobile communication module 150 of the second electronic device sends the card request to the first server.
- the card request carries the first card ID of the first card, and the card request is used to instruct the first server to issue the first card to the second electronic device.
- the first server determines the card that matches the first card ID, and sends the determined card to the second electronic device. equipment.
- the first server sends a card template and card parameters corresponding to the first card to the second electronic device.
- the second electronic device requests the card data corresponding to the first card from the second server based on the card parameters.
- the mobile communication module 150 of the second electronic device transmits the card template and card parameters to the processor 110 of the second electronic device, and the processor 110 of the second electronic device is based on the card
- the parameters determine the card data that needs to be obtained (such as the service page pointed to by the URL associated with the first card, the service page pointed to by the URL of each operation button, and other data that needs to be passed in when the first card is running, etc.), and then 2.
- the server requests the determined card data.
- S403 The second server returns the requested card data to the second electronic device.
- Figure 9A is a specific implementation method of the process in which the first server delivers the first card to the second electronic device when the server providing card services (the first server) and the server providing application service content (that is, the second server is a different server) .
- the server providing card service and the server providing application service content can also be the same server (for example, both are the first server).
- the first server downloads the first card
- the specific implementation method of the process of sending to the second electronic device includes:
- the first server sends the card template and card parameters corresponding to the first card to the second electronic device.
- the second electronic device requests card data corresponding to the first card from the first server based on the card parameters.
- the first server can also verify whether the first card is still within the validity period, and then issue the card to the second electronic device when determining that the first card is valid (that is, the first card corresponds to Card templates, card parameters, card data, etc.). In this way, it can be ensured that the shared card received by the second electronic device is a card in the validity period, the reliability of the card sharing solution can be improved, and the user experience can be further improved.
- the second electronic device may receive a favorite operation input by the user, and add the second card to the negative screen of the second electronic device.
- the second card as a hotel order card as an example, see Figure 12.
- the recipient user long presses the second card on the chat interface shown in Figure 11, and the operation prompt box pops up on the display interface.
- FIG. 13A and FIG. 13B are respectively a schematic diagram of the interface with one screen negative before the second card is collected and a schematic diagram of the interface with one screen negative after the second card is collected.
- the second electronic device After the second electronic device generates the second card, it can also automatically add the second card to the negative screen, which is not specifically limited in the embodiment of the present application.
- the second card when the second card is displayed on any user interface of the second electronic device (such as a lock screen, a negative screen, the user interface of a communication application that comes with the system, etc.)
- the user can interact with the second card to quickly access the services of the first application. For example, as shown in FIG. 14A, the user clicks the second card on the lock screen interface shown in FIG. 10, and the display interface of the second electronic device can jump to the main service interface of the hotel application.
- the user may also need to perform an unlocking operation before the display interface of the second electronic device can jump to the main service interface of the hotel application.
- the first server in the technical solutions of the embodiments of the present application updates the service information or service functions carried by the first card on the first electronic device according to the real-time data returned by the second server, it can simultaneously update the second electronic device according to the card ID.
- the second card on the device is updated. In this way, it can be ensured that the first card on the second electronic device is synchronized with the second card on the first electronic device.
- the second card can be displayed on multiple user interfaces such as the lock screen of the second electronic device, the user interface in the application, and the negative one screen.
- the display methods of the card are compared. Enrichment can further enhance the user experience.
- an embodiment of the present application also provides an electronic device for executing the method executed by the first electronic device, the second electronic device, the first server, or the second server in the card sharing method embodiment of the present application. step.
- the electronic device includes: one or more processors 1501 and a memory 1502, where program instructions are stored in the memory 1502.
- the program instructions When the program instructions are executed by the device, the above-mentioned FIGS. 4 and 7A of the embodiment of the present application can be implemented.
- Figure 7B, Figure 9A, and Figure 9B show the method steps in the embodiment.
- the embodiment of the present application also provides a chip, which is coupled with the memory in the device, so that the chip invokes the program instructions stored in the memory during operation to implement the above-mentioned card of the embodiment of the present application. Sharing method.
- the embodiments of the present application also provide a computer storage medium.
- the computer-readable storage medium includes a computer program.
- the computer program runs on an electronic device, the electronic device executes the foregoing Card sharing method.
- the term “when” can be interpreted as meaning “if" or “after” or “in response to determining" or “in response to detecting".
- the phrase “when determining" or “if detected (statement or event)” can be interpreted as meaning “if determined" or “in response to determining" or “when detected (Condition or event stated)” or “in response to detection of (condition or event stated)”.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
- the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiments of the present application relate to a card sharing method, apparatus and system, which are used for solving the problems of it not being possible to share a service function and synchronously update service information in an existing card sharing scheme. The system comprises a first electronic device, a second electronic device and a first server, wherein the first electronic device is used for displaying a first card, generating sharing information in response to an instruction for sharing the first card with the second electronic device, and sending the sharing information to the second electronic device, and the sharing information comprises a first card ID corresponding to the first card; the second electronic device is used for receiving the sharing information, and sending a first card request to the first server on the basis of the first card ID; the first server is used for determining, in response to the first card request, a first card template and a first card parameter that match the first card ID, and issuing same to the second electronic device; and the second electronic device is further used for generating a second card on the basis of the received first card template and first card parameter, and displaying the second card.
Description
相关申请的交叉引用Cross references to related applications
本申请要求在2019年07月31日提交中国专利局、申请号为201910703913.2、申请名称为“一种卡片分享方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910703913.2, and the application name is "a card sharing method, device and system" on July 31, 2019. The entire content is incorporated into this by reference. Applying.
本申请涉及终端技术领域,尤其涉及一种卡片分享方法、装置及系统。This application relates to the field of terminal technology, and in particular to a card sharing method, device and system.
为了便于用户方便快速地查看和使用各类应用的服务信息,现有技术可以针对不同的应用生成不同的快服务卡片,并在电子设备负一屏进行显示。这些快服务卡片承载有对应应用的服务信息(比如出行应用中的票务信息、购物应用中的物流信息等),使得用户在不进入应用的情况下也能查看到这些服务信息。这些快服务卡片还可以承载与应用相关的操作(比如直达服务的跳转链接),使得用户可以通过快服务卡片快速访问对应应用的服务。In order to facilitate users to conveniently and quickly view and use service information of various applications, the prior art can generate different quick service cards for different applications, and display them on one screen of the electronic device. These quick service cards carry service information of corresponding applications (such as ticket information in travel applications, logistics information in shopping applications, etc.), so that users can view these service information without entering the application. These quick service cards can also carry application-related operations (such as jump links to direct services), so that users can quickly access the services of the corresponding applications through the quick service cards.
在相关技术中,用户可以对快服务卡片执行分享操作。当电子设备响应用户输入的分享操作时,电子设备根据快服务卡片当前呈现的视图生成一张静态图片发送给接收方电子设备,实现将快服务卡片承载的服务信息通过图片的形式分享给接收方电子设备,而快服务卡片承载的服务功能却无法分享。另外,大多数应用的服务信息通常都是动态更新的(比如购物应用中的物流信息、天气应用中的天气信息等),因此快服务卡片承载的服务信息通常也是动态更新的,以图片形式分享的方案只能将快服务卡片在被分享时刻所承载的服务信息分享给接收方电子设备,如果快服务卡片上承载的服务信息被刷新,那么接收方电子设备是无法获得刷新后的服务信息的。In related technologies, users can perform sharing operations on quick service cards. When the electronic device responds to the sharing operation input by the user, the electronic device generates a static picture according to the view currently presented by the quick service card and sends it to the recipient electronic device, realizing that the service information carried by the quick service card is shared to the recipient in the form of a picture Electronic equipment, but the service functions carried by the quick service card cannot be shared. In addition, the service information of most applications is usually dynamically updated (such as logistics information in shopping applications, weather information in weather applications, etc.), so the service information carried by the quick service card is usually dynamically updated and shared in the form of pictures The solution can only share the service information carried by the quick service card at the moment of sharing to the recipient electronic device. If the service information carried on the quick service card is refreshed, the recipient electronic device cannot obtain the refreshed service information .
由此可见,现有技术中的卡片分享方案存在无法分享服务功能以及服务信息不能同步更新的技术问题。It can be seen that the card sharing solution in the prior art has technical problems that the service function cannot be shared and the service information cannot be updated synchronously.
发明内容Summary of the invention
本申请实施例提供一种卡片分享方法、装置及系统,用以解决现有技术中的卡片分享方案存在无法分享服务功能以及服务信息不能同步更新的技术问题。The embodiments of the present application provide a card sharing method, device, and system to solve the technical problems that the card sharing solution in the prior art cannot share service functions and cannot update service information synchronously.
第一方面,本申请实施例提供一种卡片分享系统,所述系统包括第一电子设备、第二电子设备以及第一服务器;In the first aspect, an embodiment of the present application provides a card sharing system, the system including a first electronic device, a second electronic device, and a first server;
所述第一电子设备用于:显示第一卡片;响应于将第一卡片分享给所述第二电子设备的指令,生成分享信息,并将所述分享信息发送给所述第二电子设备;其中,所述第一卡片为所述第一电子设备基于所述第一服务器下发的第一卡片模板和第一卡片参数生成的卡片,所述分享信息包括所述第一卡片对应的第一卡片身份标识ID;The first electronic device is configured to: display a first card; in response to an instruction to share the first card with the second electronic device, generate sharing information, and send the sharing information to the second electronic device; Wherein, the first card is a card generated by the first electronic device based on a first card template and first card parameters issued by the first server, and the sharing information includes the first card corresponding to the first card. Card identification ID;
所述第二电子设备用于:接收所述分享信息,基于所述第一卡片ID向所述第一服务 器发送第一卡片请求;其中,所述第一卡片请求中携带有所述第一卡片ID;The second electronic device is configured to: receive the sharing information, and send a first card request to the first server based on the first card ID; wherein, the first card request carries the first card ID;
所述第一服务器用于:响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的所述第一卡片模板和所述第一卡片参数,并将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备;其中,所述第一服务器存储有至少一张卡片的卡片信息,其中每张卡片的卡片信息包括该张卡片的卡片模板及卡片参数,且每张卡片的卡片模板和卡片参数关联有该张卡片对应的卡片ID,所述卡片模板用于指示卡片的视觉样式,所述卡片参数用于指示卡片的内容元素,所述至少一张卡片包括所述第一卡片;The first server is configured to: in response to the first card request, determine the first card template and the first card parameter that match the first card ID, and determine the determined The first card template and the first card parameters are issued to the second electronic device; wherein, the first server stores card information of at least one card, wherein the card information of each card includes the card information Card templates and card parameters, and the card template and card parameters of each card are associated with the card ID corresponding to the card, the card template is used to indicate the visual style of the card, and the card parameters are used to indicate the content elements of the card, The at least one card includes the first card;
所述第二电子设备还用于:接收所述第一卡片模板和所述第一卡片参数,基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。The second electronic device is further configured to: receive the first card template and the first card parameter, generate a second card based on the first card template and the first card parameter, and display the second card card.
在本申请实施例中,第一电子设备在接收到用户输入的针对被分享卡片(即第一卡片)的分享操作后,响应该分享操作,生成分享信息,并将分享信息发送给第二电子设备,其中分享信息至少包括被分享卡片对应的卡片ID;第二电子设备在接收到分享信息后,基于卡片ID向第一服务器发起卡片请求;第一服务器在接收到第二电子设备发送的请求后,确定出与卡片ID相匹配的卡片,并将确定出的卡片下发到第二电子设备。由于在本申请实施例中每张卡片具有唯一的卡片ID,因此第二电子设备基于卡片ID向第一服务器请求获得的卡片,即第二卡片,和第一电子设备分享的第一卡片可以是相同的卡片,所以第二电子设备呈现的第二卡片和第一电子设备上承载的第一卡片一样,可呈现视频、声音或者地图等动态信息,并且可以提供快速访问第一应用的服务的功能,从而达到在电子设备之间以卡片格式分享卡片的技术效果,以解决卡片分享方案存在无法分享卡片上的动态信息、无法共享卡片的服务功能的技术问题。In the embodiment of the present application, after receiving the sharing operation of the shared card (ie, the first card) input by the user, the first electronic device responds to the sharing operation, generates sharing information, and sends the sharing information to the second electronic device. A device, where the shared information includes at least the card ID corresponding to the shared card; after receiving the shared information, the second electronic device initiates a card request to the first server based on the card ID; the first server receives the request sent by the second electronic device Afterwards, the card matching the card ID is determined, and the determined card is issued to the second electronic device. Since each card has a unique card ID in the embodiment of this application, the card obtained by the second electronic device from the first server based on the card ID request, that is, the second card, and the first card shared with the first electronic device can be The same card, so the second card presented by the second electronic device is the same as the first card carried on the first electronic device. It can present dynamic information such as videos, sounds or maps, and can provide the function of quickly accessing the services of the first application , So as to achieve the technical effect of sharing the card in the card format between electronic devices, so as to solve the technical problem that the card sharing solution cannot share the dynamic information on the card and cannot share the service function of the card.
在一种可能的设计中,所述第一卡片可以包括内容区和标题区;其中,所述内容区为所述第一卡片承载的至少一个服务信息项的呈现区域;所述至少一个服务信息项为所述第一卡片关联的第一应用中的服务信息项;所述第一卡片的内容元素包括所述至少一个服务信息项中各个服务信息项的名称;所述标题区为所述第一卡片的标题的呈现区域,所述第一卡片的内容元素包括所述第一卡片的标题的名称。In a possible design, the first card may include a content area and a title area; wherein, the content area is a presentation area of at least one service information item carried by the first card; the at least one service information The item is the service information item in the first application associated with the first card; the content element of the first card includes the name of each service information item in the at least one service information item; the title area is the first A presentation area of the title of a card, and the content element of the first card includes the name of the title of the first card.
本实施方式,通过标题区可以突出卡片服务的目的,内容区可以集中呈现服务信息项的内容,可以使得卡片承载的服务信息项的布局工整,提高视觉效果。In this embodiment, the purpose of the card service can be highlighted through the title area, and the content area can centrally present the content of the service information items, which can make the layout of the service information items carried by the card tidy and improve the visual effect.
在一种可能的设计中,所述至少一个服务信息项中各个服务信息项包含的信息的格式可以是文本、图片、视频以及音频中的一种或多种的组合,本申请实施例不做具体限制。In a possible design, the format of the information contained in each service information item in the at least one service information item may be one or a combination of text, picture, video, and audio, which is not done in this embodiment of the application. Specific restrictions.
本实施方式中,卡片承载的服务信息项内容格式灵活丰富,能够基于卡片实现对文本、图片、视频以及音频等信息的推送和分享,提高了用户体验。In this embodiment, the content format of the service information items carried by the card is flexible and rich, and the push and sharing of information such as text, picture, video, and audio can be realized based on the card, and the user experience is improved.
在一种可能的设计中,所述第一卡片还包括操作区,用于提供与所述至少一个服务信息项相关的功能操作。In a possible design, the first card further includes an operation area for providing functional operations related to the at least one service information item.
这样,可以使得用户在“操作区”上输入预设操作可以实现预设功能,实现与卡片的交互,进一步提高了用户体验。In this way, the user can input a preset operation on the "operation area" to realize the preset function, realize the interaction with the card, and further improve the user experience.
在一种可能的设计中,所述操作区包括文字操作按钮,所述文字操作按钮关联有所述第一应用的服务页面的统一资源定位符URL;所述第一卡片的内容元素包括所述文字操作按钮的名称、所述文字操作按钮关联的URL。In a possible design, the operation area includes a text operation button, and the text operation button is associated with the uniform resource locator URL of the service page of the first application; the content element of the first card includes the The name of the text operation button and the URL associated with the text operation button.
这样,用户通过点击文字操作按钮,可以实现对第一应用的服务页面的跳转,以获得更多的服务信息,进一步提高了用户体验。In this way, the user can jump to the service page of the first application by clicking the text operation button, so as to obtain more service information, and further improve the user experience.
在一种可能的设计中,所述第一卡片关联有所述第一应用的主服务页面的URL。In a possible design, the first card is associated with the URL of the main service page of the first application.
这样,用户通过与第一卡片的交互(比如点击卡片上未设置有操作按钮的区域),可以实现快速跳转至该主服务页面的效果,以获得更多的服务信息,进一步提高了用户体验。In this way, the user can quickly jump to the main service page by interacting with the first card (for example, clicking an area on the card that is not provided with an operation button), so as to obtain more service information and further improve the user experience .
在一种可能的设计中,所述系统还包括第二服务器;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还用于:基于所述第一卡片参数向所述第二服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体用于:基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。也就是说,卡片的卡片数据可以是来自于第一服务器不同的第二服务器(比如服务提供商的服务器)。In a possible design, the system further includes a second server; before generating a second card based on the first card template and the first card parameters, the second electronic device is also used to: The first card parameter requests the first card data from the second server, where the first card data includes the specific content of each content element indicated by the first card parameter; the second electronic device is based on the When the first card template and the first card parameters generate a second card, it is specifically used to: perform graphic rendering based on the first card template, the first card parameters, and the first card data to generate a second card . In other words, the card data of the card may come from a second server different from the first server (such as a server of a service provider).
通过本实施方式,提高了系统部署的灵活性,便于服务提供商实时更新卡片数据,进一步提高用户体验。Through this embodiment, the flexibility of system deployment is improved, which is convenient for service providers to update card data in real time, and further improves user experience.
当然,本申请实施例中卡片数据可以是来自于第一服务器。那么,所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还用于:基于所述第一卡片参数向所述第一服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体用于:基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。Of course, the card data in the embodiment of this application may come from the first server. Then, before generating the second card based on the first card template and the first card parameters, the second electronic device is further configured to: request the first card from the first server based on the first card parameters Data, wherein the first card data includes the specific content of each content element indicated by the first card parameter; the second electronic device is generating a second card based on the first card template and the first card parameter When, it is specifically used to: perform graphic rendering based on the first card template, the first card parameters, and the first card data to generate a second card.
这样,可以降低系统的复杂度,降低卡片分享系统的部署成本。In this way, the complexity of the system can be reduced, and the deployment cost of the card sharing system can be reduced.
在一种可能的设计中,所述第二电子设备在显示所述第二卡片时,可以是在锁屏界面显示所述第二卡片,这样用户不必解锁就能及时查看卡片上的服务信息;也可以是在第二应用的用户界面上显示所述第二卡片,其中所述第二应用为所述第二电子设备从所述第一电子设备接收所述分享信息的应用,这样用户可以在接收分享信息的应用的查看卡片上的服务信息;还可以是在负一屏界面显示所述第二卡片。当然,具体实施过程中不限于此制。In a possible design, when the second electronic device displays the second card, the second card may be displayed on the lock screen interface, so that the user can view the service information on the card in time without unlocking; It may also be that the second card is displayed on the user interface of the second application, where the second application is an application for the second electronic device to receive the shared information from the first electronic device, so that the user can The application that receives the shared information views the service information on the card; it can also display the second card on a negative one-screen interface. Of course, the specific implementation process is not limited to this system.
本实施方式,提供了多种卡片显示方式,方便用户查看被分享的卡片,进一步提升了用户体验。This embodiment provides a variety of card display modes to facilitate the user to view the shared card, and further enhance the user experience.
在一种可能的设计中,所述第一服务器还用于:确定对第一卡片ID对应的卡片进行更新;确定出第一卡片ID对应的卡片包括所述第一卡片、所述第二卡片;向所述第一卡片所在的所述第一电子设备和所述第二卡片所在的所述第二电子设备发送更新信息;所述第一电子设备还用于:根据接收到的更新信息对显示的所述第一卡片进行更新;所述第二电子设备还用于:根据接收到的更新信息对显示的所述第二卡片进行更新。In a possible design, the first server is further configured to: determine to update the card corresponding to the first card ID; determine that the card corresponding to the first card ID includes the first card and the second card Send update information to the first electronic device where the first card is located and the second electronic device where the second card is located; the first electronic device is also used to: pair the update information according to the received update information The displayed first card is updated; the second electronic device is further configured to: update the displayed second card according to the received update information.
本实施方式中,第一服务器在根据第二服务器返回的实时数据更新第一电子设备上的第一卡片承载的服务信息或者服务功能时,可以根据卡片ID同时对第二电子设备上的第二卡片进行更新,这样,可以保证第二电子设备上的第一卡片和第一电子设备上的第二卡片同步,解决了现有技术中的卡片分享方案服务信息不能同步更新的技术问题。In this embodiment, when the first server updates the service information or service functions carried by the first card on the first electronic device according to the real-time data returned by the second server, it can simultaneously report to the second electronic device according to the card ID. The card is updated. In this way, the synchronization of the first card on the second electronic device and the second card on the first electronic device can be ensured, which solves the technical problem that the service information of the card sharing solution in the prior art cannot be updated simultaneously.
第二方面,本申请实施例提供一种卡片分享方法,应用于第一电子设备,所述第一电子设备显示有第一卡片;所述方法包括:所述第一电子设备响应于将第一卡片分享给第二电子设备的指令,生成分享信息;其中,所述第一卡片为所述第一电子设备基于第一服务器下发的第一卡片模板和第一卡片参数生成的卡片,所述分享信息包括所述第一卡片对应的第一卡片ID;所述第一电子设备将所述分享信息发送给所述第二电子设备,以使所述第 二电子设备基于所述第一卡片ID向所述第一服务器发送第一卡片请求,从所述第一服务器获得所述第一卡片模板和所述第一卡片参数,并基于所述第一卡片模板和所述第一卡片参数生成第二卡片并显示所述第二卡片。In a second aspect, an embodiment of the present application provides a card sharing method applied to a first electronic device, and the first electronic device displays a first card; the method includes: the first electronic device responds to the first electronic device The instruction for sharing the card with the second electronic device generates sharing information; wherein, the first card is a card generated by the first electronic device based on the first card template and the first card parameters issued by the first server, and The shared information includes the first card ID corresponding to the first card; the first electronic device sends the shared information to the second electronic device, so that the second electronic device is based on the first card ID Send a first card request to the first server, obtain the first card template and the first card parameter from the first server, and generate a first card template based on the first card template and the first card parameter Two cards and display the second card.
在一种可能的设计中,在所述第一电子设备将所述分享信息发送给所述第二电子设备之后,还可以接收所述第一服务器发送的更新信息;以及根据所述更新信息对显示的所述第一卡片进行更新。In a possible design, after the first electronic device sends the sharing information to the second electronic device, it may also receive update information sent by the first server; and pair the shared information according to the update information The first card displayed is updated.
第三方面,本申请实施例提供一种卡片分享方法,应用于第二电子设备;所述方法包括:所述第二电子设备接收第一电子设备发送的分享信息;其中,所述分享信息包括第一卡片对应的第一卡片ID;其中,所述第一卡片为所述第一电子设备基于第一服务器下发的第一卡片模板和第一卡片参数生成的卡片;所述第二电子设备基于所述第一卡片ID向所述第一服务器发送第一卡片请求,以使所述第一服务器响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的所述第一卡片模板和所述第一卡片参数,并将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备;所述第二电子设备接收所述第一服务器下发的所述第一卡片模板和所述第一卡片参数;所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。In a third aspect, an embodiment of the present application provides a card sharing method applied to a second electronic device; the method includes: the second electronic device receives the sharing information sent by the first electronic device; wherein the sharing information includes The first card ID corresponding to the first card; wherein, the first card is a card generated by the first electronic device based on the first card template and the first card parameters issued by the first server; the second electronic device Send a first card request to the first server based on the first card ID, so that the first server, in response to the first card request, determines the first card ID that matches the first card ID A card template and the first card parameters, and the determined first card template and the first card parameters are issued to the second electronic device; the second electronic device receives the first The first card template and the first card parameters issued by the server; the second electronic device generates a second card based on the first card template and the first card parameters, and displays the second card .
在一种可能的设计中,在所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,所述第二电子设备还可以基于所述第一卡片参数向第二服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;那么,所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体可以是基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。In a possible design, before the second electronic device generates the second card based on the first card template and the first card parameters, the second electronic device may also be based on the first card parameters Request the first card data from the second server, where the first card data includes the specific content of each content element indicated by the first card parameter; then, the second electronic device is based on the first card template and When the first card parameter generates the second card, the second card may be generated by performing graphic rendering based on the first card template, the first card parameter, and the first card data.
在一种可能的设计中,在所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,所述第二电子设备还可以基于所述第一卡片参数向所述第一服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;那么,所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体可以是基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。In a possible design, before the second electronic device generates the second card based on the first card template and the first card parameters, the second electronic device may also be based on the first card parameters Request first card data from the first server, where the first card data includes the specific content of each content element indicated by the first card parameter; then, the second electronic device is based on the first card When the template and the first card parameters generate the second card, the second card may be generated by performing graphic rendering based on the first card template, the first card parameters, and the first card data.
在一种可能的设计中,所述第二电子设备显示所述第二卡片,可以是在锁屏界面显示所述第二卡片;也可以是在第二应用的用户界面上显示所述第二卡片,其中所述第二应用为所述第二电子设备从所述第一电子设备接收所述分享信息的应用;还可以是在负一屏界面显示所述第二卡片,本申请实施例不做限制。In a possible design, the second electronic device displays the second card, which may be displayed on the lock screen interface; or may be displayed on the user interface of the second application. Card, wherein the second application is an application for the second electronic device to receive the sharing information from the first electronic device; it may also be an application for displaying the second card on a negative one-screen interface. The embodiment of this application does not Do restrictions.
在一种可能的设计中,在所述第二电子设备生成第二卡片之后,所述第二电子设备还可以接收所述第一服务器发送的更新信息;所述第二电子设备根据所述更新信息对显示的所述第二卡片进行更新。In a possible design, after the second electronic device generates the second card, the second electronic device may also receive update information sent by the first server; the second electronic device may The information updates the displayed second card.
第四方面,本申请实施提供一种分享卡片的方法,应用于第一服务器,所述方法包括:所述第一服务器接收第二电子设备发送的第一卡片请求;其中,所述第一卡片请求中携带有第一卡片ID;所述第一服务器响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的第一卡片模板和第一卡片参数;其中,所述第一服务器存储有至少一张卡片的卡片信息,其中每张卡片的卡片信息包括该张卡片的卡片模板及卡片参数,且每张卡片的卡片模板和卡片参数关联有该张卡片对应的卡片ID,所述卡片模板用于指示卡片的视觉样式, 所述卡片参数用于指示卡片的内容元素;所述第一服务器将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备,以使所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。In a fourth aspect, the implementation of this application provides a method for sharing a card, which is applied to a first server, and the method includes: the first server receives a first card request sent by a second electronic device; wherein, the first card The request carries the first card ID; in response to the first card request, the first server determines the first card template and the first card parameter that match the first card ID; wherein, the first card A server stores card information of at least one card, where the card information of each card includes the card template and card parameters of the card, and the card template and card parameters of each card are associated with the card ID corresponding to the card, The card template is used to indicate the visual style of the card, and the card parameters are used to indicate the content elements of the card; the first server issues the determined first card template and the first card parameters to all The second electronic device, so that the second electronic device generates a second card based on the first card template and the first card parameter, and displays the second card.
在一种可能的设计中,在所述第一服务器将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备之后,所述第一服务器还可以确定对第一卡片ID对应的卡片进行更新;确定出第一卡片ID对应的卡片包括第一卡片、所述第二卡片;向所述第一卡片所在的第一电子设备和所述第二卡片所在的所述第二电子设备发送更新信息,以使所述第一电子设备根据接收到的更新信息对显示的所述第一卡片更新,以及使所述第二电子设备根据接收到的更新信息对显示的所述第二卡片进行更新。In a possible design, after the first server issues the determined first card template and the first card parameters to the second electronic device, the first server may also determine Update the card corresponding to the first card ID; determine that the card corresponding to the first card ID includes the first card and the second card; report to the first electronic device where the first card is located and where the second card is located The second electronic device sends update information, so that the first electronic device updates the displayed first card according to the received update information, and causes the second electronic device to update the displayed first card according to the received update information. The displayed second card is updated.
第五方面,本申请实施例提供的一种设备,包括:一个或多个处理器和存储器,其中存储器中存储有程序指令,当程序指令被设备执行时,实现本申请实施例上述各个方面以及各个方面涉及的任一种可能的设计的方法。In a fifth aspect, 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-mentioned aspects and Any possible design method involved in all aspects.
第六方面,本申请实施例提供的一种芯片,所述芯片与设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现本申请实施例上述各个方面以及各个方面涉及的任一种可能的设计的方法。In a sixth aspect, 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.
第七方面,本申请实施例的一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行本申请实施例上述各个方面以及各个方面涉及的任一种可能的设计的方法。In a seventh aspect, a computer storage medium according to an embodiment of the present application. The computer-readable storage medium includes a computer program. When the computer program runs on an electronic device, the electronic device executes the above aspects and Any possible design method involved in all aspects.
第八方面,本申请实施例的一种计算机程序产品,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行实现本申请实施例上述各个方面以及各个方面涉及的任一种可能的设计的方法。In an eighth aspect, a computer program product according to an embodiment of the present application. The computer program product includes instructions. When the instructions are executed, the computer executes the implementation of the foregoing aspects of the embodiments of the present application and any of the aspects involved Possible design methods.
另外,第二方面至第八方面中任一种可能设计方式所带来的技术效果可参见方法部分相关中不同设计方式所带来的技术效果,此处不再赘述。In addition, the technical effects brought by any one of the possible design methods of the second aspect to the eighth aspect can be referred to the technical effects brought about by different design methods in the related method section, which will not be repeated here.
图1A为电子设备在负一屏上显示卡片的示意图;Figure 1A is a schematic diagram of an electronic device displaying a card on a negative screen;
图1B为点击卡片上的操作按钮进入服务页面的示意图;Figure 1B is a schematic diagram of clicking the operation button on the card to enter the service page;
图1C为在负一屏对卡片执行分享操作的示意图;Figure 1C is a schematic diagram of performing a sharing operation on a card on a negative screen;
图1D为选择分享方式的示意图;Figure 1D is a schematic diagram of selecting a sharing method;
图1E为卡片以图片格式显示在接收方电子设备的示意图;Figure 1E is a schematic diagram of the card displayed on the receiver's electronic device in a picture format;
图2A为本申请实施例中一种可能的卡片分享系统的结构示意图;2A is a schematic structural diagram of a possible card sharing system in an embodiment of this application;
图2B为本申请实施例中另一种可能的卡片分享系统的结构示意图;2B is a schematic structural diagram of another possible card sharing system in an embodiment of this application;
图3为本申请实施中一种可能的电子设备的结构示意图;FIG. 3 is a schematic structural diagram of a possible electronic device in the implementation of this application;
图4为本申请实施中一种卡片分享方法的流程图;Figure 4 is a flowchart of a card sharing method in the implementation of this application;
图5A为本申请实施例中一种可能的卡片样式的示意图;5A is a schematic diagram of a possible card style in an embodiment of this application;
图5B为本申请实施例中另一种可能的卡片样式的示意图;5B is a schematic diagram of another possible card style in an embodiment of this application;
图6A、图6B为本申请实施例中从卡片显示页面跳转至应用的服务页面的示意图;6A and 6B are schematic diagrams of jumping from the card display page to the service page of the application in an embodiment of the application;
图7A为本申请实施例中第一服务器向第一电子设备下发第一卡片的一种流程图;FIG. 7A is a flow chart of the first server issuing the first card to the first electronic device in an embodiment of this application;
图7B为本申请实施例中第一服务器向第一电子设备下发第一卡片的另一种流程图;FIG. 7B is another flow chart of the first server issuing the first card to the first electronic device in an embodiment of this application;
图8为本申请实施例中卡片分享界面的示意图;Figure 8 is a schematic diagram of a card sharing interface in an embodiment of the application;
图9A为本申请实施例中第二电子设备接收分享信息并还原第一卡片的一种流程图;9A is a flow chart of the second electronic device receiving shared information and restoring the first card in an embodiment of the application;
图9B为本申请实施例中第二电子设备接收分享信息并还原第一卡片的另一种流程图;9B is another flow chart of the second electronic device receiving sharing information and restoring the first card in an embodiment of the application;
图10为本申请实施例中第二卡片显示在锁屏界面的示意图;10 is a schematic diagram of the second card displayed on the lock screen interface in an embodiment of the application;
图11为本申请实施例中第二卡片显示在通讯应用的聊天界面的示意图;11 is a schematic diagram of the second card displayed on the chat interface of the communication application in the embodiment of the application;
图12为本申请实施例中将第二卡片添加到负一屏的示意图;Figure 12 is a schematic diagram of adding a second card to a negative screen in an embodiment of the application;
图13A、图13B分别为第二卡片被收藏前负一屏的界面示意图和第二卡片被收藏后负一屏的界面示意图;13A and 13B are respectively a schematic diagram of the interface with one screen negative before the second card is collected and a schematic diagram of the interface with one screen negative after the second card is collected;
图14A为本申请实施例中在锁屏界面上点击卡片跳转至应用的服务页面的示意图;14A is a schematic diagram of clicking a card on the lock screen interface to jump to the service page of the application in an embodiment of the application;
图14B为本申请实施例中在聊天界面上点击卡片跳转至应用的服务页面的示意图;14B is a schematic diagram of clicking a card on the chat interface to jump to the service page of the application in an embodiment of the application;
图15为本申请实施例中另一种可能的电子设备的结构示意图。FIG. 15 is a schematic structural diagram of another possible electronic device in an embodiment of this application.
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
首先,对本申请中的部分术语进行解释说明,以便本领域技术人员理解。First of all, some terms in this application are explained for the understanding of those skilled in the art.
1)快应用(quick application,quick APP),本文又称“快应用程序”,是基于手机硬件平台的新型应用形态,标准由主流手机厂商组成的快应用联盟联合制定。快应用框架深度集成进各大手机厂商的手机操作系统中,可以在操作系统层面形成用户需求与应用服务的无缝连接,使得原生APP中的功能可以在快应用中实现。快应用可以具备原生应用程序(application,APP)部分或完整的应用体验,但与原生APP不同的是,快应用无需安装、即点即用。在本申请实施例中,快应用可以有多个系统入口,比如负一屏、浏览器搜索、全局搜索等,本申请实施例对此不做限制。1) Quick application (quick APP), also called "quick application" in this article, is a new application form based on the mobile phone hardware platform. The standard is jointly formulated by the Quick Application Alliance composed of mainstream mobile phone manufacturers. The fast application framework is deeply integrated into the mobile operating systems of major mobile phone manufacturers, which can form a seamless connection between user needs and application services at the operating system level, so that the functions in the native APP can be implemented in the fast application. Quick apps can have a partial or complete application experience of native applications (applications, APPs), but unlike native apps, quick apps do not need to be installed and can be used immediately. In the embodiment of the present application, the quick application may have multiple system entrances, such as negative one screen, browser search, global search, etc., which are not limited in the embodiment of the present application.
2)原生APP,可以包括对应的快应用的内容。例如,微信快应用的原生APP为微信。再例如,支付宝快应用的原生APP为支付宝。又例如,天气快应用的原生APP为天气。需要说明的是,本申请实施例中当电子设备在运行某一快应用时,该快应用的原生APP可以安装在电子设备上,也可以不安装在电子设备上。2) The native APP can include the content of the corresponding quick application. For example, the native APP of WeChat Express is WeChat. For another example, the native APP of Alipay Quick App is Alipay. For another example, the native APP of the Weather Express application is Weather. It should be noted that when the electronic device is running a certain quick application in the embodiment of the present application, the native APP of the quick application may be installed on the electronic device or not.
3)负一屏,在本申请实施例中又可称为“-1屏”,是指在电子设备的主屏幕向右滑动屏幕,直至滑动至最左侧分屏的用户界面。负一屏可以用于放置一些快捷服务功能和通知消息,比如全局搜索、应用程序某个页面的快捷入口(付款码、微信等)、即时信息及提醒(快递信息、支出信息、通勤路况、打车出行信息、日程信息等)及关注动态(足球看台、篮球看台、股票信息等)。3) Negative one screen, which may also be referred to as "-1 screen" in the embodiments of the present application, refers to sliding the screen to the right on the main screen of the electronic device until it reaches the leftmost split screen user interface. A negative screen can be used to place some quick service functions and notification messages, such as global search, quick access to a certain page of the application (payment code, WeChat, etc.), instant information and reminders (express information, expenditure information, commuting traffic, taxis) Travel information, schedule information, etc.) and follow trends (football stands, basketball stands, stock information, etc.).
4)快服务卡片,本文中又称“卡片”,是一种新的服务形态,提供一种比应用程序(application,APP)更细粒度的原子化服务能力,以可交互的卡片形式直接将用户最关心的服务或内容展示给用户,卡片可以嵌入各种APP或交互场景中,更好的满足用户需求。卡片一般是快应用或该快应用对应的原生APP里的一个页(page)。用户点击卡片可跳转到对应的快应用或者APP内的某个服务页面。4) Fast service card, also called "card" in this article, is a new service form that provides a finer-grained atomic service capability than application (APP), and directly integrates The service or content that the user cares about the most is displayed to the user, and the card can be embedded in various APPs or interactive scenarios to better meet user needs. The card is generally a page in a quick app or a native APP corresponding to the quick app. The user clicks on the card to jump to the corresponding quick app or a certain service page in the app.
卡片的生成过程为:应用服务的提供商通过在服务器上上传需要推送给用户的服务内容,服务器根据提供商上传的服务内容生成对应的卡片,并将该卡片推送到用户的电子设备上进行显示,使得用户的电子设备以卡片的形式将应用服务的提供商推送的服务呈现给用户。The card generation process is: the application service provider uploads the service content that needs to be pushed to the user on the server, and the server generates the corresponding card according to the service content uploaded by the provider, and pushes the card to the user’s electronic device for display , So that the user's electronic device presents the service pushed by the application service provider to the user in the form of a card.
一般来说,一张卡片对应应用(除了有特别说明外,本申请实施中所指的“应用”,可以是快应用,也可以是原生APP,本申请实施例不做限制)的一部分服务功能,应用程序的提供商可以将应用的服务拆分成多个服务模块,每个服务模块对应一张卡片,然后根据不同服务场景向用户推送不同卡片。Generally speaking, a card corresponds to a part of the service function of the application (except for special instructions, the "application" referred to in the implementation of this application can be a fast application or a native APP, which is not limited by the embodiments of this application) , The application provider can split the application service into multiple service modules, each service module corresponds to a card, and then push different cards to users according to different service scenarios.
5)富媒体(rich media),指具有动画、声音、视频和/或交互性的信息传播方法。富媒体可包含流媒体、声音、Flash、以及Java、Javascript、DHTML等程序设计语言的形式之一或者几种的组合。本申请实施例中的卡片可以承载富媒体信息。5) Rich media refers to information dissemination methods with animation, sound, video and/or interactivity. Rich media may include one or a combination of streaming media, sound, Flash, and programming languages such as Java, Javascript, and DHTML. The card in the embodiment of this application can carry rich media information.
6)置顶:是指在某个用户界面上(比如负一屏)上对卡片进行的一种状态设置操作,当某张卡片被设置为置顶时,该卡片会被显示在负一屏页面的最顶端,除非解除置顶设置,否则卡片不会消失。6) Top: refers to a state setting operation performed on a card on a certain user interface (such as a negative screen). When a card is set to top, the card will be displayed on the negative screen. At the top, the card will not disappear unless the top setting is removed.
7)主服务页面、次级服务页面:应用最上级的用户界面(即开启应用后呈现的第一个用户界面)称为主服务页面,除了最上级用户界面之外的其它用户界面称为次级服务页面(用户在主服务页面上输入界面切换操作可以进入次级服务页面)。在本申请实施例中,每张卡片可以关联该卡片对应应用的一个或者多个用户界面,用户通过在卡片上执行操作可以实现跳转至对应应用的用户界面的功能。7) Main service page and secondary service page: The uppermost user interface of the application (that is, the first user interface presented after the application is started) is called the main service page, and other user interfaces except the uppermost user interface are called secondary Level service page (users can enter the secondary service page by inputting interface switching operations on the main service page). In the embodiment of the present application, each card can be associated with one or more user interfaces of the corresponding application of the card, and the user can realize the function of jumping to the user interface of the corresponding application by performing operations on the card.
8)视觉样式(简称“样式”),是指事物呈现给人视觉上的感受,包括事物的形状、结构、大小、色彩、动静等。例如,电子设备显示卡片时,卡片的视觉样式可以包括卡片的形状(如矩形)、颜色(如白色、黑色等)、尺寸、卡片承载的服务信息项的布局方式等。8) Visual style ("style" for short) refers to the visual experience of things presented to people, including the shape, structure, size, color, movement, etc. of things. For example, when an electronic device displays a card, the visual style of the card may include the shape (such as rectangle), color (such as white, black, etc.), size, layout of the service information items carried by the card, etc.
9)本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。9) At least one of the embodiments of the present application includes one or more; wherein, multiple refers to greater than or equal to two.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as “first” and “second” are only used for the purpose of distinguishing description, and cannot be understood as indicating or implying relative importance, nor can it be understood as indicating Or imply the order.
为了更好地理解本申请实施例提供的技术方案,下面首先介绍本申请实施例的应用场景。In order to better understand the technical solutions provided by the embodiments of the present application, the following first introduces the application scenarios of the embodiments of the present application.
随着终端技术的不断发展,诸如手机、平板、个人电脑等电子设备上运行的应用越来越多,比如出行应用、即时通信应用、购物应用、社交网络应用、游戏应用、媒体流应用等。为了便于用户方便快速地查看和使用各类应用的服务信息,可以针对不同的应用生成不同的卡片,并在电子设备上负一屏进行显示所述卡片。这些卡片承载有对应应用的服务信息(比如出行应用中的票务信息、购物应用中的物流信息等),使得用户在不进入应用的情况下也能查看到这些服务信息。并且,这些卡片还可以承载与应用相关的操作(比如直达服务的跳转链接),使得用户可以通过卡片快速访问到对应应用的服务。With the continuous development of terminal technology, there are more and more applications running on electronic devices such as mobile phones, tablets, and personal computers, such as travel applications, instant messaging applications, shopping applications, social network applications, game applications, media streaming applications, etc. In order to facilitate users to conveniently and quickly view and use service information of various applications, different cards can be generated for different applications, and the cards can be displayed on one screen on the electronic device. These cards carry service information of corresponding applications (such as ticket information in travel applications, logistics information in shopping applications, etc.), so that users can view these service information without entering the application. In addition, these cards can also carry application-related operations (such as jump links to direct services), so that users can quickly access the services of the corresponding applications through the cards.
应理解,在本申请实施中,除非有特别说明之外,本申请实施例中所指的卡片对应的应用可以是原生应用程序,也可以是快应用,本申请实施例不做具体限制。It should be understood that, in the implementation of this application, unless otherwise specified, the application corresponding to the card referred to in the embodiment of this application may be a native application or a fast application, which is not specifically limited in the embodiment of this application.
图1A为电子设备在负一屏上显示卡片的一种示例。例如图1A所示,在电子设备的主屏幕向右滑动屏幕,直至滑动至最左侧分屏的用户界面即负一屏显示页面,该负一屏显示页面上显示有酒店应用“橘子酒店”推送的订单通知卡片,该卡片显示有订单对应的部分服务信息,如酒店的名称“橘子酒店”,酒店的地点“南京路311号”、入住时间“3月14号”、酒店周边地图等。卡片的下方有三个操作按钮“立即导航”、“我要打车”、“查看详情”,用户点击不同的操作按钮可进入不同的服务页面,例如图1B所示,点击查看详情可以进入酒店订单的订单详情页面。Figure 1A is an example of an electronic device displaying a card on a negative screen. For example, as shown in Figure 1A, swipe the screen to the right on the home screen of the electronic device until the user interface of the split screen on the far left is the negative one-screen display page. The negative one-screen display page displays the hotel application "Orange Hotel" Push the order notification card, which shows some service information corresponding to the order, such as the name of the hotel "Orange Hotel", the location of the hotel "311 Nanjing Road", the check-in time "March 14", the map around the hotel, etc. Below the card, there are three operation buttons "Navigate now", "I want to take a taxi", and "View details". Users can click different operation buttons to enter different service pages, as shown in Figure 1B. Click View details to enter the hotel order Order details page.
在相关技术中,用户可以对卡片执行操作,比如置顶卡片、移除卡片、分享卡片等。示例性地,如图1C所示,用户点击卡片右上角“更多操作”功能菜单(图1C中以三个竖排的点表示功能菜单,在具体实施时还可以有其它形式),可调出“更多操作”的菜单栏,菜单栏中有“分享”、“置顶”、“移除”等操作按钮;用户点击其中的“分享按钮”,可进一步调出选择分享方式的页面,比如图1C中所示的“微信”、“微博”、“蓝牙”等分享方式;用户选择分享方式并选择分享对象,即可将卡片上显示的信息分享给被分享用户的电子设备,如图1D所示,为用户选择使用微信分享方式将卡片分享给微信好友“莉莎”的示意图。In related technologies, users can perform operations on cards, such as putting cards on top, removing cards, and sharing cards. Exemplarily, as shown in Figure 1C, the user clicks on the "More Operations" function menu in the upper right corner of the card (in Figure 1C, the function menu is represented by three vertical dots, and other forms may be used in specific implementation), adjustable The menu bar of "More Operations" is displayed, and there are operation buttons such as "Share", "Top", "Remove" in the menu bar; the user can click on the "Share button" to further bring up the page for selecting the sharing method, such as The "WeChat", "Weibo", "Bluetooth" and other sharing methods shown in Figure 1C; the user selects the sharing method and selects the sharing object, then the information displayed on the card can be shared with the shared user's electronic device, as shown in the figure 1D shows a schematic diagram of the user choosing to use the WeChat sharing method to share the card with the WeChat friend "Lisa".
但是无论用户选择哪种分享方式,现有技术中,电子设备在响应分享操作时,均是将卡片以静态图片的形式发送给接收方电子设备,而卡片对应的服务却无法分享给接收方电子设备。如图1E所示,为微信好友“莉莎”收到图1A至图1D所示的电子设备发送分享信息的用户界面示意图(图1E所示的发送方用户以“亚亚”为例),分享信息在接收方用户“莉莎”的电子设备中的格式为静态图片,虽然该图片的视图和图1A所示卡片的视图相同,但是卡片上对应的服务功能(比如卡片链接的服务页面,卡片上操作按钮链接的服务页面等),并未分享给接收方电子设备,因此接收方用户除了图片视图所呈现出的静态信息外,无法访问与酒店订单相关的任何服务。However, no matter which sharing method the user chooses, in the prior art, when the electronic device responds to the sharing operation, the card is sent to the recipient electronic device in the form of a static picture, and the service corresponding to the card cannot be shared with the recipient electronic device. equipment. As shown in Fig. 1E, it is a schematic diagram of the user interface of the WeChat friend "Lisa" receiving the sharing information sent by the electronic device shown in Figs. 1A to 1D (the sender user shown in Fig. 1E uses "Yaya" as an example), The format of the shared information in the electronic device of the recipient user "Lisa" is a static picture. Although the view of the picture is the same as that of the card shown in Figure 1A, the corresponding service function on the card (such as the service page linked to the card, The service page linked to the operation button on the card, etc.) is not shared with the recipient’s electronic device, so the recipient user cannot access any services related to hotel bookings except for the static information presented in the image view.
进一步的,如果卡片上承载的服务信息还包含富媒体信息时,如视频、声音或者地图等动态信息,以图片格式分享卡片信息的方案也会无法将这些信息实现共享。Further, if the service information carried on the card also contains rich media information, such as dynamic information such as videos, sounds, or maps, the solution of sharing the card information in a picture format will not be able to share this information.
不仅如此,大多数应用的服务信息通常都是动态更新的(比如购物应用中的物流信息、天气应用中的天气信息等),所以卡片承载的服务信息通常也是动态更新的,以图片形式分享的方案只能将卡片在被分享时刻所承载的服务信息分享给接收方电子设备,当发送方电子设备上的卡片所承载的服务信息被刷新时,接收方电子设备是无法获刷新后的服务信息的。Not only that, the service information of most applications is usually dynamically updated (such as logistics information in shopping applications, weather information in weather applications, etc.), so the service information carried by the card is usually also dynamically updated and shared in the form of pictures The solution can only share the service information carried by the card at the moment it is shared with the recipient electronic device. When the service information carried by the card on the sender electronic device is refreshed, the recipient electronic device cannot obtain the refreshed service information of.
为了解决上述问题,本申请实施例提供一种卡片分享方案,发送方电子设备在接收到针对被分享卡片的分享操作后,响应该分享操作,生成分享信息,其中分享信息至少包括被分享卡片对应的卡片身份标识(identity document,ID),在本申请实施例中每张卡片具有唯一的卡片ID;发送方电子设备将分享信息发送给接收方电子设备,接收方的电子设备在接收到分享信息后,基于分享信息中的卡片ID向服务器发起卡片请求;服务器在接收到接收方电子设备发送的请求后,确定出与卡片ID相匹配的卡片,并将确定出的卡片下发到接收方电子设备;接收方电子设备在收到服务器下发的卡片后,将其进行显示。这样,可实现接收方电子设备以卡片的形式呈现被分享卡片的服务信息和服务功能的效果,实现真正意义上的卡片分享。并且,当服务器在更新某张卡片承载的服务信息时,可以对所有运行有该张卡片的电子设备(比如前述的发送方电子设备和接收方电子设备)发送更新的服务信息,这样,便可以使接收方电子设备的卡片能够和发送方电子设备上的卡片同步更新,以提升用户体验。In order to solve the above problems, the embodiments of the present application provide a card sharing solution. After receiving the sharing operation for the shared card, the sender's electronic device responds to the sharing operation and generates sharing information, where the sharing information includes at least the card corresponding to the shared card. The identity document (ID) of the card, in this embodiment of the application, each card has a unique card ID; the sender’s electronic device sends the shared information to the recipient’s electronic device, and the recipient’s electronic device receives the shared information Then, it initiates a card request to the server based on the card ID in the shared information; after receiving the request sent by the receiver’s electronic device, the server determines the card that matches the card ID, and sends the determined card to the receiver’s electronic device. Device; the receiving electronic device displays the card issued by the server after receiving it. In this way, it is possible to realize the effect that the receiver's electronic device presents the service information and service functions of the shared card in the form of a card, and realizes card sharing in a true sense. In addition, when the server is updating the service information carried by a card, it can send the updated service information to all electronic devices running the card (such as the aforementioned sender electronic device and receiver electronic device). In this way, The card of the receiver's electronic device can be updated synchronously with the card of the sender's electronic device to improve user experience.
本申请实施例中的技术方案可以应用于卡片分享系统中,图2A可以为本申请实施例中卡片分享系统的一种可能的结构示意图。如图2A所示,卡片分享系统可以包括第一电子设备、第二电子设备、第一服务器以及第二服务器。第一电子设备和第二电子设备之间可以相互通信,第一服务器可以分别和第一电子设备、第二电子设备、第二服务器通信。The technical solutions in the embodiments of the present application can be applied to a card sharing system. FIG. 2A can be a schematic diagram of a possible structure of the card sharing system in the embodiments of the present application. As shown in FIG. 2A, the card sharing system may include a first electronic device, a second electronic device, a first server, and a second server. The first electronic device and the second electronic device can communicate with each other, and the first server can communicate with the first electronic device, the second electronic device, and the second server respectively.
其中,第一服务器为提供卡片服务的服务器,第二服务器为应用服务提供商的服务器, 第二服务器可以向第一服务器发送需要推送给用户的服务内容,第一服务器根据该服务内容生成对应的快服务卡片,并将该卡片推送到用户的电子设备上进行显示,比如第一电子设备,使得第一电子设备以卡片的形式将服务呈现给用户。当然,在具体实施时,服务内容也可以不由第二服务器来提供,而是第一服务器提供服务内容并基于服务内容生成对应的快服务卡片。第一电子设备在接收到第一服务器下发的卡片后,可以接收用户针对该卡片的分享操作,并响应该分享操作将该卡片分享给第二电子设备。具体的分享方法将在后文进行详细介绍。Among them, the first server is a server that provides card services, and the second server is a server of an application service provider. The second server can send the service content that needs to be pushed to the user to the first server, and the first server generates the corresponding service according to the service content. Quickly serve the card, and push the card to the user's electronic device for display, such as the first electronic device, so that the first electronic device presents the service to the user in the form of a card. Of course, in specific implementation, the service content may not be provided by the second server, but the first server provides the service content and generates a corresponding quick service card based on the service content. After receiving the card issued by the first server, the first electronic device can receive the user's sharing operation on the card, and share the card with the second electronic device in response to the sharing operation. The specific sharing method will be introduced in detail later.
需要说明的是,在本申请实施例中,卡片分享系统还可以包括更多的电子设备,比如第三电子设备、第四电子设备等,本申请实施例对电子设备的数量不做限制。当然,卡片分享系统除了已示出的第二服务器之外,还可以包括更多应用服务提供商的服务器,本申请实施例对应用服务提供商的服务器的数量也不做具体限制。It should be noted that in the embodiment of the present application, the card sharing system may also include more electronic devices, such as a third electronic device, a fourth electronic device, etc., and the embodiment of the present application does not limit the number of electronic devices. Of course, in addition to the second server shown, the card sharing system may also include more servers of application service providers, and the embodiment of the present application does not specifically limit the number of servers of application service providers.
另外,卡片分享系统还可以包括更少的服务器,例如图2B可以为本申请实施例中卡片分享系统的另一种可能的结构示意图。在图2B所示的系统中,需要推送给用户的服务内容可以由第一服务器生成。In addition, the card sharing system may also include fewer servers. For example, FIG. 2B may be a schematic diagram of another possible structure of the card sharing system in the embodiment of the application. In the system shown in FIG. 2B, the service content that needs to be pushed to the user can be generated by the first server.
本申请实施例中涉及的电子设备,比如图2A、图2B中的第一电子设备或第二电子设备,可以是支持快服务卡片功能的任何电子设备。例如,可以是包含诸如个人数字助理和/或音乐播放器等功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
The electronic device involved in the embodiment of the present application, such as the first electronic device or the second electronic device in FIG. 2A and FIG. 2B, may be any electronic device that supports the quick service card function. For example, it may be a portable electronic device containing functions such as a personal digital assistant and/or a music player, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), and the like. Exemplary embodiments of portable electronic devices include but are not limited to carrying Or portable electronic devices with other operating systems. The above-mentioned 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 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
通常情况下,电子设备支持多种应用。比如以下应用中的一个或多个:出行应用、绘图应用、演示应用、字处理应用、游戏应用、电话应用、视频播放器应用、音乐播放器应用、电子邮件应用、购物应用、即时消息收发应用、照片管理应用、相机应用、浏览器应用、日历应用、时钟应用、支付应用和健康管理应用等。其中,即时消息收发应用可以有多种。比如短信应用、彩信应用、各种邮箱应用、微信、腾讯聊天软件(QQ)、WhatsApp Messenger、连我(Line)、照片分享(instagram)、Kakao Talk、钉钉等。用户通过即时消息收发应用,可以将文字、语音、图片、视频文件以及其他各种文件等信息发送给其他联系人。Generally, electronic devices support multiple applications. For example, one or more of the following applications: travel application, drawing application, presentation application, word processing application, game application, phone application, video player application, music player application, email application, shopping application, instant messaging application , Photo management applications, camera applications, browser applications, calendar applications, clock applications, payment applications and health management applications. Among them, there can be multiple instant messaging applications. Such as SMS applications, MMS applications, various email applications, WeChat, Tencent chat software (QQ), WhatsApp Messenger, Line, photo sharing (instagram), Kakao Talk, DingTalk, etc. Users can send text, voice, pictures, video files, and various other files to other contacts through instant messaging applications.
电子设备支持的上述这些应用可以是原生应用程序app,也可以是快应用,本申请实施例不做具体限制。电子设备同时可以支持这些应用对应的快服务卡片,比如购物应用中的订单物流服务对应的卡片,出行应用中的票务信息对应的卡片等。并且,电子设备除了可以支持已安装的应用对应的快服务卡片外,也可以支持未被安装的应用对应的快服务卡片。The above-mentioned applications supported by the electronic device may be native application programs or fast applications, and the embodiments of the present application do not make specific restrictions. The electronic device can also support quick service cards corresponding to these applications, such as cards corresponding to order logistics services in shopping applications, and cards corresponding to ticket information in travel applications. Moreover, the electronic device may not only support the quick service card corresponding to the installed application, but also the quick service card corresponding to the uninstalled application.
在本申请实施例中,当电子设备显示任意一个卡片时,用户可以查看到该卡片承载的对应应用的推送服务信息。用户还可以通过与卡片交互实现快速访问对应应用的服务。比如,点击卡片跳转至卡片关联的一个服务页面(比如可以是对应应用的主服务页面),又如,点击卡片上的操作按钮跳转至操作按钮关联的一个服务页面(可以是对应应用的主服务页面,也可以是对应应用的次级服务页面)等。并且,电子设备支持与其它电子设备或 服务器通信,以实现向其他电子设备分享卡片或者是接收其它电子设备分享的卡片。In the embodiment of the present application, when the electronic device displays any card, the user can view the push service information of the corresponding application carried by the card. Users can also interact with the card to quickly access the services of the corresponding application. For example, click the card to jump to a service page associated with the card (for example, the main service page of the corresponding application), or click the operation button on the card to jump to a service page associated with the operation button (which can be the corresponding application The main service page can also be the secondary service page of the corresponding application). In addition, the electronic device supports communication with other electronic devices or servers, so as to share cards with other electronic devices or receive cards shared by other electronic devices.
下面以电子设备为手机为例,说明本申请实施所应用的一种电子设备的结构示意图。The following takes the electronic device as a mobile phone as an example to illustrate a schematic structural diagram of an electronic device applied in the implementation of this application.
请参见图3,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。3, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1. Antenna 2, mobile communication module 150, wireless communication module 160, 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 subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 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.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。本申请实施例中卡片分享方案的执行可以由处理器110来控制或调用其他部件来完成,比如调用内部存储器121中存储的本申请实施例的处理程序,或者通过外部存储器接口120调用第三方设备中存储的本申请实施例的处理程序,来控制移动通信模块150或无线通信模块160向其他电子设备进行数据通信,以实现卡片分享。The processor 110 may include one or more processing units. For example, 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 processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors. The execution of the card sharing solution in the embodiment of the present application can be controlled by the processor 110 or call other components to complete, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling a third-party device through the external memory interface 120 The processing program stored in the embodiment of the present application is used to control the mobile communication module 150 or the wireless communication module 160 to perform data communication with other electronic devices to realize card sharing.
其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。显示屏194用于显示图像,视频等。比如,在显示屏194上显示手机屏幕的主界面,或者锁屏界面,或者负一屏界面,或者系统自带的通讯应用的用户界面,或者其他三方应用的用户界面等,以及在这些显示界面上显示本申请实施例中所述的快服务卡片。The mobile phone 100 implements a display function through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. For example, display the main interface of the mobile phone screen on the display 194, or the lock screen, or the negative one-screen interface, or the user interface of the communication application that comes with the system, or the user interface of other third-party applications, etc., and on these display interfaces The quick service card described in the embodiment of this application is displayed on the above.
GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。比如,手机100的移动通信模块150从第一服务器01接收卡片模板、卡片参数、卡片数据,传递给处理器110中的GPU,GPU基于卡片模板、卡片参数、卡片数据等进行图形渲染,生成需要展示的卡片。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. For example, the mobile communication module 150 of the mobile phone 100 receives card templates, card parameters, and card data from the first server 01, and transmits them to the GPU in the processor 110. The GPU performs graphics rendering based on the card templates, card parameters, card data, etc., and generates The displayed card.
显示屏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的正整数。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). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied on the mobile phone 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, 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. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。比如,图2A、图2B中的第一电子设备可以通过蓝牙发现第二电子设备,然后以Wi-Fi的方式和第二电子设备进行数据传输,例如发送被分享卡片的卡片ID。The wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2. For example, the first electronic device in FIGS. 2A and 2B can discover the second electronic device through Bluetooth, and then use Wi-Fi to perform data transmission with the second electronic device, for example, send the card ID of the shared card.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过手机100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the mobile phone 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实 施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。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, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the mobile phone 100 may include one or N cameras 193, and N is a positive integer greater than one.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100. In addition, 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), etc.
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The mobile phone 100 can receive key input, and generate key signal input related to user settings and function control of the mobile phone 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be connected to and separated from the mobile phone 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195. The mobile phone 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the mobile phone 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请 另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than those shown in the figure, 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.
下面,主要以图2A所示的卡片分享系统为例,并且以发送方电子设备为第一电子设备、接收方电子设备为第二电子设备为例,介绍本申请实施提供的卡片分享方法。In the following, the card sharing system shown in FIG. 2A is mainly taken as an example, and the sender electronic device is the first electronic device and the receiver electronic device is the second electronic device as an example to introduce the card sharing method provided by the implementation of this application.
图4为该卡片分享方法的流程图。参见图4,该方法包括:Figure 4 is a flowchart of the card sharing method. Referring to Figure 4, the method includes:
S11、第一电子设备接收针对第一卡片的分享操作,并响应该分享操作,生成分享信息,其中分享信息至少包括第一卡片对应的第一卡片ID。S11. The first electronic device receives the sharing operation for the first card, and responds to the sharing operation to generate sharing information, where the sharing information includes at least the first card ID corresponding to the first card.
在本申请实施例中,第一卡片可以是第一应用的服务提供商在第一服务器上传服务内容后,由第一服务器生成并下发给第一电子设备的。第一应用的服务提供商在第一服务器上传服务内容的具体实现可以是:第二服务器向第一服务器发送该服务内容,其中第二服务器为第一应用的服务器。In the embodiment of the present application, the first card may be generated by the first server and issued to the first electronic device after the service provider of the first application uploads service content on the first server. The specific implementation of the service provider of the first application uploading the service content on the first server may be: the second server sends the service content to the first server, where the second server is the server of the first application.
当第一服务器在生成每张卡片时,每张卡片都具有唯一的卡片ID,第一服务器在下发第一卡片给第一电子设备时,可以同时将第一卡片对应的第一卡片ID发送给第一电子设备。在本申请实施中,第一卡片的样式可以有多种样式,本申请实施例不做限制。这里例举两种可能的样式:When the first server generates each card, each card has a unique card ID. When the first server issues the first card to the first electronic device, it can simultaneously send the first card ID corresponding to the first card to First electronic equipment. In the implementation of this application, the style of the first card can have multiple styles, which are not limited in the embodiment of this application. Here are two possible styles:
(1)“标题区”+“内容区”,如图5A所示。(1) "Title Area" + "Content Area", as shown in Figure 5A.
(2)“标题区”+“内容区”+“操作区”,如图5B所示。(2) "Title area" + "content area" + "operation area", as shown in Figure 5B.
其中,“标题区”可以用于放置第一卡片的名称。“内容区”可以用于放置需要展示的服务信息。在具体实施时,一张卡片的“内容区”可以同时有多个服务信息项,比如图1A所示的酒店订单卡片上展示有酒店的地点、入住时间等服务信息项。“操作区”用于提供与第一卡片承载的至少一个服务信息相关的功能操作,使得用户在“操作区”上输入预设操作可以实现预设功能,例如跳转至第一应用的服务页面的功能操作、与服务信息交互的功能操作等功能。在一些实施例中,标题区还可以放置图标,比如第一应用的图标);还可以放置功能菜单,比如图1C所示的卡片右上角“更多操作”功能菜单。Among them, the "title area" can be used to place the name of the first card. The "content area" can be used to place the service information that needs to be displayed. In specific implementation, the "content area" of a card can have multiple service information items at the same time. For example, the hotel order card shown in FIG. 1A displays service information items such as hotel location and check-in time. The "operation area" is used to provide functional operations related to at least one piece of service information carried by the first card, so that users can enter preset operations on the "operation area" to implement preset functions, such as jumping to the service page of the first application The functional operation of the system, the functional operation of interacting with the service information and other functions. In some embodiments, icons, such as the icon of the first application, can also be placed in the title area; function menus can also be placed, such as the "More Operations" function menu in the upper right corner of the card shown in FIG. 1C.
第一卡片的名称可以有多种实现方式,可以是第一应用的名称、第一卡片承载的服务信息对应的服务类型等,本申请实施例不做限制。例如,假设第一卡片承载的服务信息为支付应用“支付宝”中的扣款信息,则标题可以为“支付宝”;又如,假设第一卡片承载的服务信息为购物应用“淘宝”中的快递信息,则标题可以为“淘宝”或“快递”。The name of the first card may be implemented in multiple ways, such as the name of the first application, the service type corresponding to the service information carried by the first card, etc., which are not limited in the embodiment of the present application. For example, suppose the service information carried by the first card is the deduction information in the payment application "Alipay", the title can be "Alipay"; for another example, suppose the service information carried by the first card is the express delivery in the shopping application "Taobao" Information, the title can be "Taobao" or "Express".
“操作区”上可以放置操作按钮来提供与服务信息相关的功能操作。其中,操作按钮的视觉样式可以是文字形式(文字形式的操作按钮称为文字操作按钮),也可以是图像形式(图像形式的操作按钮称为图像操作按钮),本申请实施例不做具体限制。操作按钮可以关联H5、Web和App页面跳转的统一资源定位符(uniform resource locator,URL),该URL可以链接到第一应用的某个服务页面。其中,不同的操作按钮内可以设置不同的URL,这样用户通过点击不同的操作按钮,就可实现第一应用对应的不同服务页面的跳转。另外,第一卡片自身也可以关联一个服务页面的URL,比如第一应用的主服务页面的URL,用户通过点击卡片上未设置有操作按钮的区域,可以快速跳转至该主服务页面。Operation buttons can be placed on the "operation area" to provide functional operations related to service information. Among them, the visual style of the operation button can be in the form of text (operation buttons in text form are called text operation buttons), or in image form (operation buttons in image form are called image operation buttons), and the embodiments of this application do not make specific restrictions . The operation button can be associated with a uniform resource locator (URL) for redirecting to H5, Web and App pages, and the URL can be linked to a certain service page of the first application. Among them, different URLs can be set in different operation buttons, so that the user can jump to different service pages corresponding to the first application by clicking different operation buttons. In addition, the first card itself can also be associated with the URL of a service page, such as the URL of the main service page of the first application. The user can quickly jump to the main service page by clicking an area on the card that is not provided with an operation button.
示例性地,以第一卡片为酒店应用推送的酒店订单卡片为例。如图6A所示,用户点击卡片的空白处,第一电子设备的显示界面跳转至酒店应用的主服务界面;如图6B所示,用户点击操作按钮“立即导航”,第一电子设备的显示界面跳转至地图导航的页面。Illustratively, take the hotel order card pushed by the first card for the hotel application as an example. As shown in Figure 6A, the user clicks on the blank space of the card, and the display interface of the first electronic device jumps to the main service interface of the hotel application; as shown in Figure 6B, the user clicks the operation button "Navigate Now", the first electronic device The display interface jumps to the page of map navigation.
在本申请实施例中,第一服务器可以预先保存多种如图5A、图5B类似样式的卡片模板,且每种卡片模板具有唯一的模板ID。In the embodiment of the present application, the first server may pre-store a variety of card templates with similar styles as shown in FIG. 5A and FIG. 5B, and each card template has a unique template ID.
第一服务器在生成每张卡片时,具体可以是创建每张卡片的卡片信息,每张卡片的卡片信息包括该张卡片的卡片模板及卡片参数,且每张卡片的卡片模板和卡片参数关联有该张卡片对应的卡片ID。第一服务器可以存储每张卡片的卡片信息,当服务在向电子设备推送卡片时,具体可以是向该电子设备推送卡片的卡片信息。When the first server generates each card, it can specifically create the card information of each card. The card information of each card includes the card template and card parameters of the card, and the card template and card parameters of each card are associated with The card ID corresponding to this card. The first server can store the card information of each card. When the service is pushing the card to the electronic device, it can specifically push the card information of the card to the electronic device.
示例性地,参照图7A,第一服务器向第一电子设备下发第一卡片的过程可以包括:Exemplarily, referring to FIG. 7A, the process of the first server issuing the first card to the first electronic device may include:
S201、第二服务器向第一服务器发送需要推送的服务内容。S201. The second server sends the service content that needs to be pushed to the first server.
具体的,第一应用的服务提供商在第一服务器上传服务内容时,可以选择一种卡片模板,比如选择图5B所示的卡片模板(第一卡片模板),并根据需要推送的服务内容填写对应的卡片参数(第一卡片参数),其中所述卡片参数用于指示卡片的内容元素,比如第一卡片的名称、第一卡片链接的URL、第一卡片承载的各个服务信息项的名称、操作按钮的名称、操作按钮链接的URL以及其他卡片运行时需要传入的数据的名称等。Specifically, the service provider of the first application can select a card template when uploading service content on the first server, for example, select the card template (first card template) shown in Figure 5B, and fill in according to the service content to be pushed Corresponding card parameters (first card parameters), where the card parameters are used to indicate the content elements of the card, such as the name of the first card, the URL of the first card link, the name of each service information item carried by the first card, The name of the operation button, the URL of the operation button link, and the name of the data that needs to be passed in when the card is running.
S202、第一服务器将卡片模板以及卡片参数发送给第一电子设备。S202: The first server sends the card template and the card parameters to the first electronic device.
S203、第一电子设备基于卡片参数向第二服务器请求卡片数据。S203: The first electronic device requests card data from the second server based on the card parameters.
具体的,第一电子设备的移动通信模块150在收到卡片模板和卡片参数后,将收到的卡片模板和卡片参数传递给第一电子设备的处理器110,处理器110基于卡片参数确定需要获取的卡片数据,然后向第二服务器请求确定出的卡片数据。比如,第一电子设备根据第一卡片内容区中各个服务信息项请求的具体服务信息、根据第一卡片自身关联的URL请求第一卡片对应的服务页面、根据各个操作按钮关联的URL请求各个操作按钮对应的服务页面、根据卡片运行时需要传入的数据的名称请求对应的数据等。以图1A为例,第一电子设备根据“地点”请求橘子酒店的具体地址,根据“入住时间”请求橘子酒店的入住时间、根据立即导航请求导航页面数据等。Specifically, after receiving the card template and card parameters, the mobile communication module 150 of the first electronic device transmits the received card template and card parameters to the processor 110 of the first electronic device, and the processor 110 determines the requirements based on the card parameters. The obtained card data is then requested from the second server for the determined card data. For example, the first electronic device requests the specific service information requested by each service information item in the first card content area, requests the service page corresponding to the first card according to the URL associated with the first card itself, and requests each operation according to the URL associated with each operation button. The service page corresponding to the button, the corresponding data request according to the name of the data that needs to be passed in when the card is running, etc. Taking FIG. 1A as an example, the first electronic device requests the specific address of the Orange Hotel according to the "location", requests the check-in time of the Orange Hotel according to the "check-in time", and requests navigation page data according to the immediate navigation.
S204、第二服务器向第一电子设备返回其请求的卡片数据。S204: The second server returns the requested card data to the first electronic device.
继续以图1A为例,第二服务器根据第一电子设备请求,返回橘子酒店的具体地址“南京路311号”,橘子酒店的入住时间3月14号、导航页面数据等。Continuing to take FIG. 1A as an example, the second server returns the specific address "311 Nanjing Road" of the Orange Hotel according to the request of the first electronic device, the check-in time of the Orange Hotel on March 14, navigation page data, etc.
S205、第一电子设备进行卡片渲染,显示第一卡片。S205. The first electronic device performs card rendering and displays the first card.
具体的,第一电子设备的移动通信模块150在收到第二服务器下发的卡片数据后,将卡片数据传递给第一电子设备的处理器110,处理器110基于卡片模板、卡片参数以及卡片数据进行图形渲染,生成第一卡片的图形,并可以控制第一电子设备的显示屏194显示第一卡片。Specifically, after receiving the card data issued by the second server, the mobile communication module 150 of the first electronic device transmits the card data to the processor 110 of the first electronic device. The processor 110 is based on the card template, card parameters, and card data. The data is graphically rendered to generate the graphics of the first card, and the display screen 194 of the first electronic device can be controlled to display the first card.
图7A是提供卡片服务的服务器(第一服务器)和提供应用服务内容的服务器(即第二服务器)为不同服务器时第一服务器向第一电子设备下发第一卡片的具体实施方法。在具体实施时,提供卡片服务的服务器和提供应用服务内容的服务器也可以为同一服务器(比如均为第一服务器),在这种情况下,请参见图7B,第一服务器向第一电子设备下发第一卡片的具体实施方法则包括:FIG. 7A is a specific implementation method for the first server to issue the first card to the first electronic device when the server providing card service (the first server) and the server providing application service content (ie, the second server) are different servers. In specific implementation, the server providing card service and the server providing application service content may also be the same server (for example, both are the first server). In this case, please refer to FIG. 7B. The specific implementation methods for issuing the first card include:
S301、第一服务器将卡片模板以及卡片参数发送给第一电子设备。S301: The first server sends the card template and the card parameters to the first electronic device.
S302、第一电子设备基于卡片参数向第一服务器请求卡片数据。S302: The first electronic device requests card data from the first server based on the card parameters.
具体的,第一电子设备的移动通信模块150在收到卡片模板和卡片参数后,将收到的卡片模板和卡片参数传递给第一电子设备的处理器110,处理器110基于卡片参数确定需 要获取的卡片数据,然后向第一服务器请求确定出的卡片数据。Specifically, after receiving the card template and card parameters, the mobile communication module 150 of the first electronic device transmits the received card template and card parameters to the processor 110 of the first electronic device, and the processor 110 determines the requirements based on the card parameters. The obtained card data is then requested from the first server for the determined card data.
S303、第一服务器向第一电子设备返回其请求的卡片数据。S303. The first server returns the requested card data to the first electronic device.
S304、第一电子设备进行卡片渲染,显示第一卡片。S304. The first electronic device performs card rendering and displays the first card.
在本申请实施例中,第一卡片可以显示在第一电子设备的负一屏,也可以显示在第一电子设备的屏幕的主界面、锁屏界面、系统自带的通讯应用的用户界面或者其它三方应用的用户界面等,本申请实施例对此不做具体限制。In the embodiment of the present application, the first card may be displayed on the negative screen of the first electronic device, or may be displayed on the main interface of the screen of the first electronic device, the lock screen, the user interface of the communication application that comes with the system, or The user interface of other three-party applications, etc., is not specifically limited in the embodiment of this application.
在本申请实施例中,上述分享操作可以为用户对预设的一个或者多个图标的点击操作,或者为用户输入的语音指令、或者为用户输入的快捷手势操作等,本申请实施例对此不作限定。In the embodiment of the present application, the aforementioned sharing operation may be a user's click operation on one or more preset icons, or a voice command input by the user, or a shortcut gesture operation input by the user, etc. This embodiment of the present application Not limited.
当分享操作为用户对预设图标执行点击操作时,第一电子设备的触摸传感器182检测到用户在显示屏194上的触摸操作,向处理器110上报用户在显示屏194上的触摸位置信息,处理器110根据触摸传感器182上报的触摸位置信息,确定接收到分享操作。When the sharing operation is that the user performs a click operation on the preset icon, the touch sensor 182 of the first electronic device detects the user's touch operation on the display screen 194, and reports the user's touch position information on the display screen 194 to the processor 110, The processor 110 determines that the sharing operation is received according to the touch position information reported by the touch sensor 182.
当分享操作为用户输入的快捷手势操作时,第一电子设备的触摸传感器182检测到用户在显示屏194上的触摸操作,向处理器110上报用户在显示屏194上的触摸位置信息,处理器110根据触摸传感器182在预设时间段内上报的触摸位置信息,确定的触摸操作为快捷手势操作,并确定接收到分享操作。When the sharing operation is a shortcut gesture operation input by the user, the touch sensor 182 of the first electronic device detects the user's touch operation on the display screen 194, and reports the user's touch position information on the display screen 194 to the processor 110. According to the touch position information reported by the touch sensor 182 within a preset time period, 110 determines that the touch operation is a shortcut gesture operation, and determines that the sharing operation is received.
当分享操作为用户输入语音指令时,第一电子设备的麦克风170C测到用户输入的语音信息,并向第一电子设备的处理器110上报该语音信息,第一电子设备的处理器110根据该语音信息确定接收到分享操作。When the sharing operation is the user inputting a voice command, the microphone 170C of the first electronic device detects the voice information input by the user and reports the voice information to the processor 110 of the first electronic device. The voice message confirms that the sharing operation is received.
在本申请一些可能的实施例中,第一电子设备生成分享信息除了包括第一卡片对应的卡片ID(即第一卡片ID)之外,还可以包括其他信息,比如第一电子设备的ID,第一电子设备上登录的用户ID、第一卡片对应的卡片模版ID、第一卡片对应卡片参数(如卡片名称、关联的URL)等,本申请实施对此不做限制。In some possible embodiments of the present application, the shared information generated by the first electronic device may include other information, such as the ID of the first electronic device, in addition to the card ID corresponding to the first card (ie, the first card ID). The user ID logged in on the first electronic device, the card template ID corresponding to the first card, the card parameters corresponding to the first card (such as the card name, the associated URL), etc., are not limited in the implementation of this application.
继续参照图4所示的S12、第一电子设备将分享信息发送给第二电子设备。Continuing to refer to S12 shown in FIG. 4, the first electronic device sends the sharing information to the second electronic device.
在本申请实施例中,第一电子设备将分享信息分享给第二电子设备的通道可以有多种实现方式。比如附近的设备、蓝牙、NFC、第一电子设备操作系统自带的通讯应用(比如短信息)或者第三方应用等,本申请实施例不做具体限制。In the embodiment of the present application, the channel for the first electronic device to share the shared information with the second electronic device can be implemented in multiple ways. For example, nearby devices, Bluetooth, NFC, communication applications (such as short messages) built in the operating system of the first electronic device, or third-party applications, etc., are not specifically limited in the embodiment of the present application.
对应的,第一电子设备的分享界面可以包括各种分享通道对应的操作按钮。例如图8中所示酒店卡片对应的分享界面,该分享界面上包括“蓝牙”分享通道对应的操作按钮、第三方APP(微信”、“微博”)分享通道对应的操作按钮。在具体实施时,分享界面上还可以设置用于实现快捷分享操作的图标。Correspondingly, the sharing interface of the first electronic device may include operation buttons corresponding to various sharing channels. For example, the sharing interface corresponding to the hotel card shown in Figure 8, the sharing interface includes the operation buttons corresponding to the "Bluetooth" sharing channel, and the operation buttons corresponding to the third-party APP (WeChat, "Weibo") sharing channel. In specific implementation At the same time, you can also set icons for quick sharing operations on the sharing interface.
一种可能的方式是设置默认通讯应用中的常用联系人对应的分享图标,例如图8中所示酒店卡片对应的分享界面,该分享界面的第二栏显示有“莉莎”、“布朗”、“邱可”等常用联系人的快捷分享图标。用户点击分享界面上的某个常用联系人的图标(比如“莉莎”),就可以直接将分享信息通过该默认通讯应用发送给该联系人。One possible way is to set the sharing icon corresponding to the frequently used contacts in the default communication application. For example, the sharing interface corresponding to the hotel card shown in Figure 8, the second column of the sharing interface displays "Lisa" and "Brown" , "Qiu Ke" and other quick sharing icons for frequently used contacts. The user clicks on the icon of a frequently-used contact on the sharing interface (such as "Lisa"), and then the sharing information can be directly sent to the contact through the default communication application.
另一种可能的方式是设置第一电子设备绑定其它电子设备对应的分享图标(如图8所示的“亚亚的手表”、“电视”、“亚亚的平板”)。用户点击某个已绑定的设备对应的分享图标(比如“亚亚的平板”)后,就可以直接将分享信息发送给该已绑定的电子设备,此时,第一电子设备可以不用跳转至其它应用的用户界面就可以实现分享信息的发送。Another possible way is to set the first electronic device to bind the sharing icons corresponding to other electronic devices ("Yaya's watch", "TV", "Yaya's tablet" as shown in FIG. 8). After the user clicks the sharing icon corresponding to a bound device (such as "Yaya’s tablet"), he can directly send the sharing information to the bound electronic device. At this time, the first electronic device does not need to jump. Transfer to the user interface of other applications to send the shared information.
当然,在具体实施时,上述实现快捷分享操作的图标还可以有其它实现方式,本申请 实施例不做限制。Of course, during specific implementation, the icon for realizing the quick sharing operation may also have other implementation methods, which are not limited in the embodiment of the present application.
S13、第二电子设备在接收到分享信息后,基于该分享信息中的第一卡片ID向第一服务器发起卡片请求。S13. After receiving the sharing information, the second electronic device initiates a card request to the first server based on the first card ID in the sharing information.
具体的,第二电子设备的移动通信模块150从接收到分享信息后,将分享信息传递给第二电子设备的处理器110;第二电子设备的处理器110基于该分享信息中的第一卡片ID生成卡片请求,第二电子设备的移动通信模块150将卡片请求发送给第一服务器。其中,该卡片请求中携带有第一卡片的第一卡片ID,该卡片请求用于指示第一服务器向第二电子设备下发第一卡片。Specifically, after receiving the shared information, the mobile communication module 150 of the second electronic device transmits the shared information to the processor 110 of the second electronic device; the processor 110 of the second electronic device is based on the first card in the shared information The ID generates a card request, and the mobile communication module 150 of the second electronic device sends the card request to the first server. Wherein, the card request carries the first card ID of the first card, and the card request is used to instruct the first server to issue the first card to the second electronic device.
继续参照图4所示的S14、第一服务器在接收到第二电子设备发送的该卡片请求后,确定出与第一卡片ID相匹配的卡片,并将确定出的卡片下发到第二电子设备。Continuing to refer to S14 shown in Figure 4, after receiving the card request sent by the second electronic device, the first server determines the card that matches the first card ID, and sends the determined card to the second electronic device. equipment.
请参见图9A,为第二电子设备接收分享信息并还原第一卡片的过程示意图。其中,第一服务器将第一卡片下发到第二电子设备的过程包括:Please refer to FIG. 9A, which is a schematic diagram of the process of receiving shared information for the second electronic device and restoring the first card. Wherein, the process in which the first server issues the first card to the second electronic device includes:
S401、第一服务器将第一卡片对应的卡片模板以及卡片参数发送给第二电子设备。S401: The first server sends a card template and card parameters corresponding to the first card to the second electronic device.
S402、第二电子设备基于卡片参数向第二服务器请求第一卡片对应的卡片数据。S402: The second electronic device requests the card data corresponding to the first card from the second server based on the card parameters.
具体的,第二电子设备的移动通信模块150在收到卡片模板和卡片参数后,将该卡片模板和卡片参数传递给第二电子设备的处理器110,第二电子设备的处理器110基于卡片参数确定需要获取的卡片数据(比如根据第一卡片关联的URL指向的服务页面、各个操作按钮链接的URL指向的服务页面、以及其他第一卡片运行时需要传入的数据等),然后向第二服务器请求确定出的卡片数据。Specifically, after receiving the card template and card parameters, the mobile communication module 150 of the second electronic device transmits the card template and card parameters to the processor 110 of the second electronic device, and the processor 110 of the second electronic device is based on the card The parameters determine the card data that needs to be obtained (such as the service page pointed to by the URL associated with the first card, the service page pointed to by the URL of each operation button, and other data that needs to be passed in when the first card is running, etc.), and then 2. The server requests the determined card data.
S403、第二服务器向第二电子设备返回其请求的卡片数据。S403: The second server returns the requested card data to the second electronic device.
图9A是提供卡片服务的服务器(第一服务器)和提供应用服务内容的服务器(即第二服务器为不同服务器)时第一服务器将第一卡片下发到第二电子设备的过程的具体实施方法。在具体实施时,提供卡片服务的服务器和提供应用服务内容的服务器也可以为同一服务器(比如均为第一服务器),在这种情况下,请参见图9B,第一服务器将第一卡片下发到第二电子设备的过程的具体实施方法则包括:Figure 9A is a specific implementation method of the process in which the first server delivers the first card to the second electronic device when the server providing card services (the first server) and the server providing application service content (that is, the second server is a different server) . In specific implementation, the server providing card service and the server providing application service content can also be the same server (for example, both are the first server). In this case, see Figure 9B. The first server downloads the first card The specific implementation method of the process of sending to the second electronic device includes:
S501、第一服务器将第一卡片对应的卡片模板以及卡片参数发送给第二电子设备。S501: The first server sends the card template and card parameters corresponding to the first card to the second electronic device.
S502、第二电子设备基于卡片参数向第一服务器请求第一卡片对应的卡片数据。S502: The second electronic device requests card data corresponding to the first card from the first server based on the card parameters.
具体的,第一电子设备的移动通信模块150在收到卡片模板和卡片参数后,将该卡片模板和卡片参数传递给第二电子设备的处理器110,第二电子设备的处理器110基于卡片参数确定需要获取的卡片数据(比如根据第一卡片关联的URL指向的服务页面、各个操作按钮链接的URL指向的服务页面、以及其他第一卡片运行时需要传入的数据等),然后向第一服务器请求确定出的卡片数据。Specifically, after receiving the card template and card parameters, the mobile communication module 150 of the first electronic device transmits the card template and card parameters to the processor 110 of the second electronic device, and the processor 110 of the second electronic device is based on the card The parameters determine the card data that needs to be obtained (such as the service page pointed to by the URL associated with the first card, the service page pointed to by the URL of each operation button, and other data that needs to be passed in when the first card is running, etc.), and then A server requests the determined card data.
S503、第一服务器向第二电子设备返回其请求的卡片数据。S503: The first server returns the requested card data to the second electronic device.
继续参照图4所示的S15、第二电子设备显示第一服务器下发的卡片。Continuing to refer to S15 shown in FIG. 4, the second electronic device displays the card issued by the first server.
与第一电子设备显示第一卡片的过程类似,第二电子设备的移动通信模块150在收到卡片数据后,将卡片数据传递给第二电子设备的处理器110,处理器110基于卡片模板和卡片参数以及卡片数据进行图形渲染,生成第二卡片,并控制第一电子设备的显示屏194显示第二卡片。由于第二卡片是第二电子设备基于第一卡片对应的卡片ID向第一服务器请求获得的卡片,即基于第一卡片相同的卡片模板和卡片数据生成的卡片,所以第二卡片和第一电子设备分享的第一卡片可以是相同的卡片,所以第二电子设备呈现的第二卡片和 第一电子设备上承载的第一卡片一样,可呈现视频、声音或者地图等动态信息,并且可以提供快速访问第一应用的服务的功能,从而达到在电子设备之间以卡片格式分享卡片的技术效果,以解决卡片分享方案存在无法分享卡片上的动态信息、无法共享卡片的服务功能的技术问题。Similar to the process in which the first electronic device displays the first card, after receiving the card data, the mobile communication module 150 of the second electronic device transmits the card data to the processor 110 of the second electronic device, which is based on the card template and The card parameters and card data are rendered graphically to generate a second card, and the display screen 194 of the first electronic device is controlled to display the second card. Since the second card is the card obtained by the second electronic device from the first server based on the card ID corresponding to the first card, that is, the card generated based on the same card template and card data of the first card, the second card and the first electronic The first card shared by the device can be the same card, so the second card presented by the second electronic device is the same as the first card carried on the first electronic device. It can present dynamic information such as video, sound or map, and can provide fast Access to the service function of the first application, so as to achieve the technical effect of sharing the card in the card format between electronic devices, so as to solve the technical problem that the card sharing solution cannot share the dynamic information on the card and the service function of the card cannot be shared.
此外,第一服务器在向第二电子设备下发卡片之前,还可以验证第一卡片是否还在有效期内,在确定第一卡片有效时再向第二电子设备下发卡片(即第一卡片对应的卡片模板、卡片参数以及卡片数据等)。这样,可以保证第二电子设备收到的被分享卡片是处于有效期的卡片,可以提高卡片分享方案的可靠性,进一步提高用户体验。In addition, before issuing the card to the second electronic device, the first server can also verify whether the first card is still within the validity period, and then issue the card to the second electronic device when determining that the first card is valid (that is, the first card corresponds to Card templates, card parameters, card data, etc.). In this way, it can be ensured that the shared card received by the second electronic device is a card in the validity period, the reliability of the card sharing solution can be improved, and the user experience can be further improved.
作为一种可选的实施方式,当第一服务器在根据第二服务器返回的实时数据更新第一卡片承载的服务信息或者服务功能时,可以根据卡片ID同时对第一电子设备和第二电子设备上的卡片进行更新。这样,便可以保证第二电子设备上的第二卡片和第一电子设备上的第一卡片实时同步。特别是一些服务信息或服务功能更新频繁的应用,比如快递应用中的物流信息、打车软件中的司机定位、机票应用中航班延误信息、航班登机口变更信息等,本实施方式可以很好地保证被分享方能够和分享方同步收到更新信息,且分享方不需要重新执行分享操作,进一步提升用户体验。As an optional implementation manner, when the first server updates the service information or service functions carried by the first card according to the real-time data returned by the second server, the first electronic device and the second electronic device can be simultaneously processed according to the card ID. Update the card on the. In this way, it can be ensured that the second card on the second electronic device and the first card on the first electronic device are synchronized in real time. Especially for applications where service information or service functions are frequently updated, such as logistics information in express delivery applications, driver positioning in taxi software, flight delay information in ticket applications, and flight boarding gate change information, etc., this implementation can be very useful It is ensured that the shared party can receive the updated information synchronously with the sharing party, and the sharing party does not need to perform the sharing operation again, which further improves the user experience.
示例性的,在本申请实施例中,第二电子设备在获得第二卡片后,第二卡片在第二电子设备上的显示位置可以是在第二电子设备部的屏幕的主界面上,或者在锁屏界面上,或者在负一屏界面上,系统自带的通讯应用的用户界面,或者其它三方应用的用户界面上等,本申请实施例对此不做具体限制。Exemplarily, in the embodiment of the present application, after the second electronic device obtains the second card, the display position of the second card on the second electronic device may be on the main interface of the screen of the second electronic device part, or On the lock screen interface, or on the negative one screen interface, the user interface of the communication application that comes with the system, or the user interface of other third-party applications, the embodiment of the present application does not specifically limit this.
在具体实施时,第二卡片的显示位置可以根据第二电子设备的运行状态或者用户输入的操作指令来确定。In specific implementation, the display position of the second card may be determined according to the operating state of the second electronic device or the operation instruction input by the user.
一种示例,如果第二电子设备允许应用通知在锁屏时可见,则当第一电子设备处于锁屏状态时,第二卡片可以直接显示在锁屏界面上。仍然以第一卡片为酒店订单卡片为例,图10为第二卡片显示在锁屏界面时示意图。In an example, if the second electronic device allows application notifications to be visible when the screen is locked, when the first electronic device is in the locked screen state, the second card may be directly displayed on the lock screen interface. Still taking the first card as the hotel order card as an example, Fig. 10 is a schematic diagram when the second card is displayed on the lock screen interface.
另一种示例,如果第二电子设备处于解锁状态,则第二卡片可以显示在指定应用的用户界面上。比如,第一电子设备通过某通讯应用分享第一卡片给第二电子设备,且第二电子设备也支持该通讯应用,则第二电子设备在基于第一卡片的卡片模板和卡片数据生成第二卡片后,将其显示在该通讯应用中对应发送方用户的聊天界面中。仍然以第一卡片为酒店订单卡片为例,图11为第二卡片显示在通讯应用的聊天界面的示意图,其中图11所示的“亚亚”为发送方用户。In another example, if the second electronic device is in an unlocked state, the second card may be displayed on the user interface of the designated application. For example, if the first electronic device shares the first card with the second electronic device through a communication application, and the second electronic device also supports the communication application, the second electronic device generates a second card based on the card template and card data of the first card. After the card is displayed, it is displayed on the chat interface of the corresponding sender user in the communication application. Still taking the first card as the hotel order card as an example, FIG. 11 is a schematic diagram of the second card displayed on the chat interface of the communication application, where "Yaya" shown in FIG. 11 is the sender user.
在一种示例,当第二卡片显示在上述通讯应用中的聊天界面时,第二电子设备可以接收用户输入的收藏操作,将第二卡片添加到第二电子设备的负一屏。以第二卡片为酒店订单卡片为例,参见图12,接收方用户在图11所示的聊天界面上长按第二卡片,显示界面可弹出操作提示框,用户点击操作提示框中的“收藏”,即可将第二卡片添加到第二电子设备的负一屏。图13A、图13B所示,分别为第二卡片被收藏前负一屏的界面示意图和被收藏后负一屏的界面示意图。In an example, when the second card is displayed on the chat interface in the aforementioned communication application, the second electronic device may receive a favorite operation input by the user, and add the second card to the negative screen of the second electronic device. Taking the second card as a hotel order card as an example, see Figure 12. The recipient user long presses the second card on the chat interface shown in Figure 11, and the operation prompt box pops up on the display interface. The user clicks "Favorites" in the operation prompt box. ", you can add the second card to the negative screen of the second electronic device. FIG. 13A and FIG. 13B are respectively a schematic diagram of the interface with one screen negative before the second card is collected and a schematic diagram of the interface with one screen negative after the second card is collected.
当然,第二电子设备在生成第二卡片之后,也可以自动将第二卡片添加到负一屏,本申请实施例对此不做具体限制。Of course, after the second electronic device generates the second card, it can also automatically add the second card to the negative screen, which is not specifically limited in the embodiment of the present application.
作为一种可选的实施方式,在本申请实施例中,当第二卡片显示在第二电子设备的任意用户界面(如锁屏、负一屏、系统自带的通讯应用的用户界面等)时,用户都可以与第 二卡片交互,以快速访问第一应用的服务。例如,图14A所示,用户在图10所示的锁屏界面上点击第二卡片,第二电子设备的显示界面可跳转至酒店应用的主服务界面。当然,在具体实施时,用户在点击第二卡片之后,还可能需要执行解锁操作,第二电子设备的显示界面才能跳转至酒店应用的主服务界面。又如,图14B所示,用户在图11所示的聊天界面上点击第二卡片上的“立即导航”操作按钮,第二电子设备的显示界面可以跳转至地图导航的页面。As an optional implementation, in this embodiment of the application, when the second card is displayed on any user interface of the second electronic device (such as a lock screen, a negative screen, the user interface of a communication application that comes with the system, etc.) When the time, the user can interact with the second card to quickly access the services of the first application. For example, as shown in FIG. 14A, the user clicks the second card on the lock screen interface shown in FIG. 10, and the display interface of the second electronic device can jump to the main service interface of the hotel application. Of course, in a specific implementation, after the user clicks on the second card, the user may also need to perform an unlocking operation before the display interface of the second electronic device can jump to the main service interface of the hotel application. As another example, as shown in FIG. 14B, the user clicks the "navigate now" operation button on the second card on the chat interface shown in FIG. 11, and the display interface of the second electronic device can jump to the page of map navigation.
在本申请实施例中,第一电子设备在接收到用户输入的针对被分享卡片(即第一卡片)的分享操作后,响应该分享操作,生成分享信息,并将分享信息发送给第二电子设备,其中分享信息至少包括被分享卡片对应的卡片ID;第二电子设备在接收到分享信息后,基于卡片ID向第一服务器发起卡片请求;第一服务器在接收到第二电子设备发送的请求后,确定出与卡片ID相匹配的卡片,并将确定出的卡片下发到第二电子设备。由于在本申请实施例中每张卡片具有唯一的卡片ID,因此第二电子设备基于卡片ID向第一服务器请求获得的卡片,即第二卡片,和第一电子设备分享的第一卡片可以是相同的卡片,所以第二电子设备呈现的第二卡片和第一电子设备上承载的第一卡片一样,可呈现视频、声音或者地图等动态信息,并且可以提供快速访问第一应用的服务的功能,从而达到在电子设备之间以卡片格式分享卡片的技术效果,以解决卡片分享方案存在无法分享卡片上的动态信息、无法共享卡片的服务功能的技术问题。In the embodiment of the present application, after receiving the sharing operation of the shared card (ie, the first card) input by the user, the first electronic device responds to the sharing operation, generates sharing information, and sends the sharing information to the second electronic device. A device, where the shared information includes at least the card ID corresponding to the shared card; after receiving the shared information, the second electronic device initiates a card request to the first server based on the card ID; the first server receives the request sent by the second electronic device Afterwards, the card matching the card ID is determined, and the determined card is issued to the second electronic device. Since each card has a unique card ID in the embodiment of this application, the card obtained by the second electronic device from the first server based on the card ID request, that is, the second card, and the first card shared with the first electronic device can be The same card, so the second card presented by the second electronic device is the same as the first card carried on the first electronic device. It can present dynamic information such as videos, sounds or maps, and can provide the function of quickly accessing the services of the first application , So as to achieve the technical effect of sharing the card in the card format between electronic devices, so as to solve the technical problem that the card sharing solution cannot share the dynamic information on the card and cannot share the service function of the card.
并且,本申请实施例技术方案中的第一服务器在根据第二服务器返回的实时数据更新第一电子设备上的第一卡片承载的服务信息或者服务功能时,可以根据卡片ID同时对第二电子设备上的第二卡片进行更新。这样,可以保证第二电子设备上的第一卡片和第一电子设备上的第二卡片同步。In addition, when the first server in the technical solutions of the embodiments of the present application updates the service information or service functions carried by the first card on the first electronic device according to the real-time data returned by the second server, it can simultaneously update the second electronic device according to the card ID. The second card on the device is updated. In this way, it can be ensured that the first card on the second electronic device is synchronized with the second card on the first electronic device.
不仅如此,第二电子设备在获得第二卡片后,第二卡片可以在第二电子设备的锁屏、应用中的用户界面、负一屏等多个用户界面上进行显示,卡片的显示方式比较丰富,进一步可以提升用户体验。Not only that, after the second electronic device obtains the second card, the second card can be displayed on multiple user interfaces such as the lock screen of the second electronic device, the user interface in the application, and the negative one screen. The display methods of the card are compared. Enrichment can further enhance the user experience.
基于相同的技术构思,本申请实施例还提供一种电子设备,用以执行本申请上述卡片分享方法实施例中第一电子设备、第二电子设备、第一服务器或第二服务器所执行的方法步骤。Based on the same technical concept, an embodiment of the present application also provides an electronic device for executing the method executed by the first electronic device, the second electronic device, the first server, or the second server in the card sharing method embodiment of the present application. step.
请参见图15,该电子设备包括:一个或多个处理器1501和存储器1502,其中存储器1502中存储有程序指令,当程序指令被设备执行时,可以实现本申请实施例上述图4、图7A、图7B、图9A以及图9B所示实施例中的方法步骤。Referring to FIG. 15, the electronic device includes: one or more processors 1501 and a memory 1502, where program instructions are stored in the memory 1502. When the program instructions are executed by the device, the above-mentioned FIGS. 4 and 7A of the embodiment of the present application can be implemented. , Figure 7B, Figure 9A, and Figure 9B show the method steps in the embodiment.
其中,处理器1501可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的指令,结合其硬件完成上述方法的步骤。The processor 1501 may be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. 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 decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory (RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory, or electrically erasable programmable memory, registers, etc. mature in the field Storage medium. The storage medium is located in the memory, and the processor reads the instructions in the memory and completes the steps of the above method in combination with its hardware.
装置的具体实现方式的相关特征可以参照上文的方法部分,此处不再赘述。For the relevant features of the specific implementation of the device, please refer to the above method part, which will not be repeated here.
基于相同的技术构思,本申请实施例还提供一种芯片,所述芯片与设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现本申请实施例上述卡片分享方法。Based on the same technical concept, the embodiment of the present application also provides a chip, which is coupled with the memory in the device, so that the chip invokes the program instructions stored in the memory during operation to implement the above-mentioned card of the embodiment of the present application. Sharing method.
基于相同的技术构思,本申请实施例还提供一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行本申请实施例上述卡片分享方法。Based on the same technical concept, the embodiments of the present application also provide a computer storage medium. The computer-readable storage medium includes a computer program. When the computer program runs on an electronic device, the electronic device executes the foregoing Card sharing method.
基于相同的技术构思,本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行实现本申请实施例上述卡片分享方法。Based on the same technical concept, the embodiments of the present application also provide a computer program product. The computer program product includes instructions. When the instructions are executed, the computer executes the card sharing method described in the embodiments of the present application.
本申请的各个实施例可以单独使用,也可以相互结合使用,以实现不同的技术效果。The various embodiments of the present application can be used alone or in combination with each other to achieve different technical effects.
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本申请实施例的方法,不应理解为对本申请实施例的限制。本技术领域的技术人员可轻易想到的变化或替换,都应涵盖在本申请实施例的保护范围之内。As mentioned above, the above embodiments are only used to introduce the technical solutions of the present application in detail, but the descriptions of the above embodiments are only used to help understand the methods of the embodiments of the present application, and should not be construed as limiting the embodiments of the present application. Any changes or replacements that can be easily conceived by those skilled in the art should be covered by the protection scope of the embodiments of the present application.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, depending on the context, the term "when" can be interpreted as meaning "if..." or "after" or "in response to determining..." or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if detected (statement or event)" can be interpreted as meaning "if determined..." or "in response to determining..." or "when detected (Condition or event stated)" or "in response to detection of (condition or event stated)".
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
为了解释的目的,前面的描述是通过参考具体实施例来进行描述的。然而,上面的示例性的讨论并非意图是详尽的,也并非意图要将本申请限制到所公开的精确形式。根据以上教导内容,很多修改形式和变型形式都是可能的。选择和描述实施例是为了充分阐明本申请的原理及其实际应用,以由此使得本领域的其他技术人员能够充分利用具有适合于所构想的特定用途的各种修改的本申请以及各种实施例。For the purpose of explanation, the foregoing description is described by referring to specific embodiments. However, the above exemplary discussion is not intended to be exhaustive, nor is it intended to limit the application to the precise form disclosed. Based on the above teaching content, many modifications and variations are possible. The embodiments are selected and described in order to fully clarify the principle of the application and its practical application, so that other skilled in the art can make full use of the application and various implementations with various modifications suitable for the specific purpose conceived. example.
Claims (21)
- 一种卡片分享系统,其特征在于,所述系统包括第一电子设备、第二电子设备以及第一服务器;A card sharing system, characterized in that the system includes a first electronic device, a second electronic device and a first server;所述第一电子设备用于:显示第一卡片;响应于将第一卡片分享给所述第二电子设备的指令,生成分享信息,并将所述分享信息发送给所述第二电子设备;其中,所述第一卡片为所述第一电子设备基于所述第一服务器下发的第一卡片模板和第一卡片参数生成的卡片,所述分享信息包括所述第一卡片对应的第一卡片身份标识ID;The first electronic device is configured to: display a first card; in response to an instruction to share the first card with the second electronic device, generate sharing information, and send the sharing information to the second electronic device; Wherein, the first card is a card generated by the first electronic device based on a first card template and first card parameters issued by the first server, and the sharing information includes the first card corresponding to the first card. Card identification ID;所述第二电子设备用于:接收所述分享信息,基于所述第一卡片ID向所述第一服务器发送第一卡片请求;其中,所述第一卡片请求中携带有所述第一卡片ID;The second electronic device is configured to: receive the sharing information, and send a first card request to the first server based on the first card ID; wherein, the first card request carries the first card ID;所述第一服务器用于:响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的所述第一卡片模板和所述第一卡片参数,并将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备;其中,所述第一服务器存储有至少一张卡片的卡片信息,其中每张卡片的卡片信息包括该张卡片的卡片模板及卡片参数,且每张卡片的卡片模板和卡片参数关联有该张卡片对应的卡片ID,所述卡片模板用于指示卡片的视觉样式,所述卡片参数用于指示卡片的内容元素,所述至少一张卡片包括所述第一卡片;The first server is configured to: in response to the first card request, determine the first card template and the first card parameter that match the first card ID, and determine the determined The first card template and the first card parameters are issued to the second electronic device; wherein, the first server stores card information of at least one card, wherein the card information of each card includes the card information Card templates and card parameters, and the card template and card parameters of each card are associated with the card ID corresponding to the card, the card template is used to indicate the visual style of the card, and the card parameters are used to indicate the content elements of the card, The at least one card includes the first card;所述第二电子设备还用于:接收所述第一卡片模板和所述第一卡片参数,基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。The second electronic device is further configured to: receive the first card template and the first card parameter, generate a second card based on the first card template and the first card parameter, and display the second card card.
- 如权利要求1所述的系统,其特征在于,所述第一卡片包括内容区和标题区;The system of claim 1, wherein the first card includes a content area and a title area;所述内容区为所述第一卡片承载的至少一个服务信息项的呈现区域;所述至少一个服务信息项为所述第一卡片关联的第一应用中的服务信息项;所述第一卡片的内容元素包括所述至少一个服务信息项中各个服务信息项的名称;The content area is a presentation area of at least one service information item carried by the first card; the at least one service information item is a service information item in a first application associated with the first card; the first card The content element of includes the name of each service information item in the at least one service information item;所述标题区为所述第一卡片的标题的呈现区域,所述第一卡片的内容元素包括所述第一卡片的标题的名称。The title area is a presentation area of the title of the first card, and the content element of the first card includes the name of the title of the first card.
- 如权利要求2所述的系统,其特征在于,所述至少一个服务信息项中各个服务信息项包含的信息的格式包括文本、图片、视频以及音频中的一种或多种。The system according to claim 2, wherein the format of the information contained in each service information item in the at least one service information item includes one or more of text, picture, video, and audio.
- 如权利要求2所述的系统,其特征在于,所述第一卡片还包括操作区,用于提供与所述至少一个服务信息项相关的功能操作。The system according to claim 2, wherein the first card further comprises an operation area for providing functional operations related to the at least one service information item.
- 如权利要求4所述的系统,其特征在于,所述操作区包括文字操作按钮,所述文字操作按钮关联有所述第一应用的服务页面的统一资源定位符URL;所述第一卡片的内容元素包括所述文字操作按钮的名称、所述文字操作按钮关联的URL。The system according to claim 4, wherein the operation area comprises a text operation button, and the text operation button is associated with the uniform resource locator URL of the service page of the first application; The content element includes the name of the text operation button and the URL associated with the text operation button.
- 如权利要求2所述的系统,其特征在于,所述第一卡片关联有所述第一应用的主服务页面的URL。The system of claim 2, wherein the first card is associated with the URL of the main service page of the first application.
- 如权利要求1-6任一项所述的系统,其特征在于,所述系统还包括第二服务器;7. The system according to any one of claims 1-6, wherein the system further comprises a second server;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还用于:基于所述第一卡片参数向所述第二服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;Before generating a second card based on the first card template and the first card parameters, the second electronic device is further configured to: request first card data from the second server based on the first card parameters, Wherein the first card data includes the specific content of each content element indicated by the first card parameter;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体用于:基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。When the second electronic device generates a second card based on the first card template and the first card parameter, it is specifically configured to: based on the first card template, the first card parameter, and the first card template. The card data is rendered graphically to generate a second card.
- 如权利要求1-6任一项所述的系统,其特征在于,The system according to any one of claims 1-6, wherein:所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还用于:基于所述第一卡片参数向所述第一服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;Before generating the second card based on the first card template and the first card parameters, the second electronic device is further configured to: request first card data from the first server based on the first card parameters, Wherein the first card data includes the specific content of each content element indicated by the first card parameter;所述第二电子设备在基于所述第一卡片模板和所述第一卡片参数生成第二卡片时,具体用于:基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。When the second electronic device generates a second card based on the first card template and the first card parameter, it is specifically configured to: based on the first card template, the first card parameter, and the first card template. The card data is rendered graphically to generate a second card.
- 如权利要求1-6任一项所述的系统,其特征在于,所述第二电子设备在显示所述第二卡片时,具体用于:7. The system according to any one of claims 1-6, wherein the second electronic device is specifically used for:在锁屏界面显示所述第二卡片;或者Display the second card on the lock screen interface; or在第二应用的用户界面上显示所述第二卡片;其中所述第二应用为所述第二电子设备从所述第一电子设备接收所述分享信息的应用;或者Displaying the second card on a user interface of a second application; wherein the second application is an application for the second electronic device to receive the shared information from the first electronic device; or在负一屏界面显示所述第二卡片。The second card is displayed on the negative one screen interface.
- 如权利要求1-6任一项所述的系统,其特征在于,The system according to any one of claims 1-6, wherein:所述第一服务器还用于:确定对第一卡片ID对应的卡片进行更新;确定出第一卡片ID对应的卡片包括所述第一卡片、所述第二卡片;向所述第一卡片所在的所述第一电子设备和所述第二卡片所在的所述第二电子设备发送更新信息;The first server is further configured to: determine to update the card corresponding to the first card ID; determine that the card corresponding to the first card ID includes the first card and the second card; The first electronic device and the second electronic device where the second card is located send update information;所述第一电子设备还用于:根据接收到的更新信息对显示的所述第一卡片进行更新;The first electronic device is further configured to: update the displayed first card according to the received update information;所述第二电子设备还用于:根据接收到的更新信息对显示的所述第二卡片进行更新。The second electronic device is further configured to: update the displayed second card according to the received update information.
- 一种卡片分享方法,其特征在于,应用于第一电子设备,所述第一电子设备显示有第一卡片;所述方法包括:A card sharing method, characterized in that it is applied to a first electronic device, and the first electronic device displays a first card; the method includes:所述第一电子设备响应于将第一卡片分享给第二电子设备的指令,生成分享信息;其中,所述第一卡片为所述第一电子设备基于第一服务器下发的第一卡片模板和第一卡片参数生成的卡片,所述分享信息包括所述第一卡片对应的第一卡片ID;The first electronic device generates sharing information in response to an instruction to share the first card with the second electronic device; wherein, the first card is a first card template issued by the first electronic device based on the first server A card generated with a first card parameter, the shared information includes a first card ID corresponding to the first card;所述第一电子设备将所述分享信息发送给所述第二电子设备,以使所述第二电子设备基于所述第一卡片ID向所述第一服务器发送第一卡片请求,从所述第一服务器获得所述第一卡片模板和所述第一卡片参数,并基于所述第一卡片模板和所述第一卡片参数生成第二卡片并显示所述第二卡片。The first electronic device sends the sharing information to the second electronic device, so that the second electronic device sends a first card request to the first server based on the first card ID, from the The first server obtains the first card template and the first card parameter, generates a second card based on the first card template and the first card parameter, and displays the second card.
- 如权利要求11所述的方法,其特征在于,在所述第一电子设备将所述分享信息发送给所述第二电子设备之后,所述方法还包括:The method according to claim 11, wherein after the first electronic device sends the sharing information to the second electronic device, the method further comprises:所述第一电子设备接收所述第一服务器发送的更新信息;Receiving the update information sent by the first server by the first electronic device;所述第一电子设备根据所述更新信息对显示的所述第一卡片进行更新。The first electronic device updates the displayed first card according to the update information.
- 一种卡片分享方法,其特征在于,应用于第二电子设备;所述方法包括:A card sharing method, characterized in that it is applied to a second electronic device; the method includes:所述第二电子设备接收第一电子设备发送的分享信息;其中,所述分享信息包括第一卡片对应的第一卡片ID;其中,所述第一卡片为所述第一电子设备基于第一服务器下发的第一卡片模板和第一卡片参数生成的卡片;The second electronic device receives the sharing information sent by the first electronic device; wherein, the sharing information includes the first card ID corresponding to the first card; wherein, the first card is the first electronic device based on the first card ID; The first card template issued by the server and the card generated by the first card parameter;所述第二电子设备基于所述第一卡片ID向所述第一服务器发送第一卡片请求,以使所述第一服务器响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的所述第一卡片模板和所述第一卡片参数,并将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备;The second electronic device sends a first card request to the first server based on the first card ID, so that the first server, in response to the first card request, determines that it matches the first card ID Matching the first card template and the first card parameter, and issuing the determined first card template and the first card parameter to the second electronic device;所述第二电子设备接收所述第一服务器下发的所述第一卡片模板和所述第一卡片参数;Receiving, by the second electronic device, the first card template and the first card parameters issued by the first server;所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。The second electronic device generates a second card based on the first card template and the first card parameter, and displays the second card.
- 如权利要求13所述的方法,其特征在于,在所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还包括:The method according to claim 13, wherein before the second electronic device generates the second card based on the first card template and the first card parameters, further comprising:所述第二电子设备基于所述第一卡片参数向第二服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;The second electronic device requests first card data from a second server based on the first card parameter, where the first card data includes the specific content of each content element indicated by the first card parameter;所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,包括:The second electronic device generating a second card based on the first card template and the first card parameter includes:所述第二电子设备基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。The second electronic device performs graphic rendering based on the first card template, the first card parameters, and the first card data to generate a second card.
- 如权利要求13所述的方法,其特征在于,在所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片之前,还包括:The method according to claim 13, wherein before the second electronic device generates the second card based on the first card template and the first card parameters, further comprising:所述第二电子设备基于所述第一卡片参数向所述第一服务器请求第一卡片数据,其中所述第一卡片数据包括所述第一卡片参数指示的各个内容元素的具体内容;The second electronic device requests first card data from the first server based on the first card parameter, where the first card data includes specific content of each content element indicated by the first card parameter;所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,包括:所述第二电子设备基于所述第一卡片模板、所述第一卡片参数以及所述第一卡片数据进行图形渲染,生成第二卡片。The second electronic device generates a second card based on the first card template and the first card parameter, including: the second electronic device generates a second card based on the first card template, the first card parameter, and the The first card data is rendered graphically to generate the second card.
- 如权利要求13-15任一项所述的方法,其特征在于,所述第二电子设备显示所述第二卡片,包括:15. The method according to any one of claims 13-15, wherein the second electronic device displaying the second card comprises:所述第二电子设备在锁屏界面显示所述第二卡片;或者The second electronic device displays the second card on the lock screen interface; or所述第二电子设备在第二应用的用户界面上显示所述第二卡片;其中所述第二应用为所述第二电子设备从所述第一电子设备接收所述分享信息的应用;或者The second electronic device displays the second card on the user interface of the second application; wherein the second application is an application for the second electronic device to receive the shared information from the first electronic device; or所述第二电子设备在负一屏界面显示所述第二卡片。The second electronic device displays the second card on a negative one-screen interface.
- 如权利要求13-15任一项所述的方法,其特征在于,在所述第二电子设备生成第二卡片之后,所述方法还包括:15. The method according to any one of claims 13-15, wherein after the second electronic device generates the second card, the method further comprises:所述第二电子设备接收所述第一服务器发送的更新信息;Receiving the update information sent by the first server by the second electronic device;所述第二电子设备根据所述更新信息对显示的所述第二卡片进行更新。The second electronic device updates the displayed second card according to the update information.
- 一种分享卡片的方法,其特征在于,应用于第一服务器,所述方法包括:A method for card sharing, characterized in that it is applied to a first server, and the method includes:所述第一服务器接收第二电子设备发送的第一卡片请求;其中,所述第一卡片请求中携带有第一卡片ID;The first server receives a first card request sent by a second electronic device; wherein, the first card request carries a first card ID;所述第一服务器响应于所述第一卡片请求,确定出和所述第一卡片ID相匹配的第一卡片模板和第一卡片参数;其中,所述第一服务器存储有至少一张卡片的卡片信息,其中每张卡片的卡片信息包括该张卡片的卡片模板及卡片参数,且每张卡片的卡片模板和卡片参数关联有该张卡片对应的卡片ID,所述卡片模板用于指示卡片的视觉样式,所述卡片参数用于指示卡片的内容元素;In response to the first card request, the first server determines a first card template and first card parameters that match the first card ID; wherein, the first server stores at least one card Card information, where the card information of each card includes the card template and card parameters of the card, and the card template and card parameters of each card are associated with the card ID corresponding to the card, and the card template is used to indicate the card’s Visual style, the card parameter is used to indicate the content element of the card;所述第一服务器将确定出的所述第一卡片模板和所述第一卡片参数下发给所述第二电子设备,以使所述第二电子设备基于所述第一卡片模板和所述第一卡片参数生成第二卡片,并显示所述第二卡片。The first server issues the determined first card template and the first card parameters to the second electronic device, so that the second electronic device is based on the first card template and the The first card parameter generates a second card and displays the second card.
- 如权利要求18所述的方法,其特征在于,在所述第一服务器将确定出的所述第 一卡片模板和所述第一卡片参数下发给所述第二电子设备之后,所述方法还包括:The method of claim 18, wherein after the first server issues the determined first card template and the first card parameters to the second electronic device, the method Also includes:所述第一服务器确定对第一卡片ID对应的卡片进行更新;The first server determines to update the card corresponding to the first card ID;所述第一服务器确定出第一卡片ID对应的卡片包括第一卡片、所述第二卡片;The first server determines that the card corresponding to the first card ID includes the first card and the second card;所述第一服务器向所述第一卡片所在的第一电子设备和所述第二卡片所在的所述第二电子设备发送更新信息,以使所述第一电子设备根据接收到的更新信息对显示的所述第一卡片更新,以及使所述第二电子设备根据接收到的更新信息对显示的所述第二卡片进行更新。The first server sends update information to the first electronic device where the first card is located and the second electronic device where the second card is located, so that the first electronic device compares the updates according to the received update information. The displayed first card is updated, and the second electronic device is made to update the displayed second card according to the received update information.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求11至19任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program runs on an electronic device, the electronic device executes any one of claims 11 to 19 Methods.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行如权利要求11至19任一项所述的方法。A computer program product, wherein the computer program product includes instructions, which when executed, cause a computer to execute the method according to any one of claims 11 to 19.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703913.2 | 2019-07-31 | ||
CN201910703913.2A CN110572431A (en) | 2019-07-31 | 2019-07-31 | Card sharing method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021017837A1 true WO2021017837A1 (en) | 2021-02-04 |
Family
ID=68773875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/102221 WO2021017837A1 (en) | 2019-07-31 | 2020-07-15 | Card sharing method, apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110572431A (en) |
WO (1) | WO2021017837A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115268731A (en) * | 2021-04-29 | 2022-11-01 | 华为技术有限公司 | Method for processing service card and electronic equipment |
CN115421932A (en) * | 2021-08-12 | 2022-12-02 | 荣耀终端有限公司 | Notification message display method and electronic equipment |
CN115562534A (en) * | 2022-01-10 | 2023-01-03 | 荣耀终端有限公司 | Information display method and electronic equipment |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572431A (en) * | 2019-07-31 | 2019-12-13 | 华为技术有限公司 | Card sharing method, device and system |
CN113761427A (en) * | 2020-06-03 | 2021-12-07 | 华为技术有限公司 | Method for generating card in self-adaptive mode, terminal device and server |
CN116009999A (en) * | 2020-06-08 | 2023-04-25 | 荣耀终端有限公司 | Card sharing method, electronic equipment and communication system |
CN112560060A (en) * | 2020-12-16 | 2021-03-26 | 歌尔光学科技有限公司 | Information sharing method, terminal and readable storage medium |
CN112559222B (en) * | 2020-12-23 | 2024-08-27 | 百果园技术(新加坡)有限公司 | Message display method, device, computer equipment and storage medium |
CN113382109B (en) * | 2021-05-11 | 2022-11-04 | Oppo广东移动通信有限公司 | Short message display method and device, electronic equipment and storage medium |
CN113485609B (en) * | 2021-07-19 | 2024-04-09 | 咪咕数字传媒有限公司 | Electronic book sharing method, device, storage medium and apparatus |
CN115086344B (en) * | 2021-10-14 | 2023-06-13 | 荣耀终端有限公司 | Card sharing method, system and storage medium |
CN115022269A (en) * | 2021-12-30 | 2022-09-06 | 北京字跳网络技术有限公司 | Message processing method, device, equipment and medium |
WO2023142940A1 (en) * | 2022-01-28 | 2023-08-03 | 华为技术有限公司 | Application component sharing method and related device |
CN117676518A (en) * | 2022-08-31 | 2024-03-08 | 华为技术有限公司 | Cross-device interaction method for cards and electronic device |
CN115550295A (en) * | 2022-09-01 | 2022-12-30 | 钉钉(中国)信息技术有限公司 | Message processing method, message display method and computing equipment |
CN117762281A (en) * | 2022-09-19 | 2024-03-26 | 华为终端有限公司 | Method for managing service card and electronic equipment |
CN117786260A (en) * | 2022-09-27 | 2024-03-29 | 华为终端有限公司 | Card updating method and related device |
CN118094038A (en) * | 2022-11-15 | 2024-05-28 | 华为技术有限公司 | Content sharing method, computer readable storage medium and intelligent device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140104141A1 (en) * | 2012-10-15 | 2014-04-17 | Lg Electronics Inc. | Mobile terminal |
CN107193606A (en) * | 2017-05-26 | 2017-09-22 | 北京小米移动软件有限公司 | Using distribution method and device |
CN107560609A (en) * | 2016-06-30 | 2018-01-09 | 上海博泰悦臻网络技术服务有限公司 | Electronic equipment and its method for information display and system of application |
CN108605049A (en) * | 2015-12-29 | 2018-09-28 | 三星电子株式会社 | The message sharing method based on application state and card for user equipment |
CN110572431A (en) * | 2019-07-31 | 2019-12-13 | 华为技术有限公司 | Card sharing method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110035181B (en) * | 2019-04-12 | 2020-08-04 | 维沃移动通信有限公司 | Method and terminal for setting theme of quick application card |
-
2019
- 2019-07-31 CN CN201910703913.2A patent/CN110572431A/en active Pending
-
2020
- 2020-07-15 WO PCT/CN2020/102221 patent/WO2021017837A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140104141A1 (en) * | 2012-10-15 | 2014-04-17 | Lg Electronics Inc. | Mobile terminal |
CN108605049A (en) * | 2015-12-29 | 2018-09-28 | 三星电子株式会社 | The message sharing method based on application state and card for user equipment |
CN107560609A (en) * | 2016-06-30 | 2018-01-09 | 上海博泰悦臻网络技术服务有限公司 | Electronic equipment and its method for information display and system of application |
CN107193606A (en) * | 2017-05-26 | 2017-09-22 | 北京小米移动软件有限公司 | Using distribution method and device |
CN110572431A (en) * | 2019-07-31 | 2019-12-13 | 华为技术有限公司 | Card sharing method, device and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115268731A (en) * | 2021-04-29 | 2022-11-01 | 华为技术有限公司 | Method for processing service card and electronic equipment |
CN115421932A (en) * | 2021-08-12 | 2022-12-02 | 荣耀终端有限公司 | Notification message display method and electronic equipment |
CN115421932B (en) * | 2021-08-12 | 2023-08-22 | 荣耀终端有限公司 | Notification message display method and electronic equipment |
CN115562534A (en) * | 2022-01-10 | 2023-01-03 | 荣耀终端有限公司 | Information display method and electronic equipment |
CN115562534B (en) * | 2022-01-10 | 2023-10-20 | 荣耀终端有限公司 | Information display method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110572431A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017837A1 (en) | Card sharing method, apparatus and system | |
CN113553014B (en) | Application interface display method under multi-window screen projection scene and electronic equipment | |
CN112703478B (en) | Data sharing method, graphical user interface, electronic device and system | |
WO2021013158A1 (en) | Display method and related apparatus | |
US9116658B2 (en) | Mobile terminal, image display device mounted on vehicle and data processing method using the same | |
KR102481065B1 (en) | Application function implementation method and electronic device | |
US20240192986A1 (en) | Application handoff method and apparatus | |
US10798153B2 (en) | Terminal apparatus and server and method of controlling the same | |
US20220400137A1 (en) | Widget display method and apparatus | |
US20240236228A1 (en) | Audio Output Method and Terminal Device | |
CN107193524B (en) | Multi-display device and method of operating the same | |
CN111247510B (en) | Display method of application window and terminal | |
WO2019183997A1 (en) | Video preview method and electronic device | |
US20240069850A1 (en) | Application Sharing Method, Electronic Device, and Storage Medium | |
WO2021244452A1 (en) | Multi-device interaction method and system | |
WO2022078295A1 (en) | Device recommendation method and electronic device | |
US12028300B2 (en) | Method, apparatus, and system for sending pictures after thumbnail selections | |
CN111246299A (en) | Communication terminal and application management method | |
WO2023142869A1 (en) | Application synchronization method and electronic device | |
WO2022052706A1 (en) | Service sharing method, system and electronic device | |
JP2018503149A (en) | Information input method, apparatus, program, and recording medium | |
EP4387210A1 (en) | Screen identification method for distributed display, medium and electronic device | |
CN112422597B (en) | Network content access method, device and storage medium | |
WO2024046062A1 (en) | Cross-device card interaction method and electronic device | |
CN111414563B (en) | Webpage interaction method, device, computer equipment and storage medium |
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: 20847558 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20847558 Country of ref document: EP Kind code of ref document: A1 |