The present application relates to the Internet field, and in particular, to method and system for loading application-specific interfaces into a social networking application.
During conventional resource exchanges, after a user selects a resource and gives an exchange instruction on a web page, the user is redirected to an exchange response interface (exchange response page) of the resource in a web page redirection manner, so that the user completes the exchange. However, this manner has problems in an actual application. For example, because the web page redirection manner is used, the speed for loading an interface is low.
The above deficiencies and other problems associated with the conventional approach of performing a resource exchange on a mobile device are reduced or eliminated by the invention disclosed below. In some embodiments, the present application is implemented in a mobile device that has one or more processors, memory and one or more modules, programs or sets of instructions stored in the memory for performing multiple functions. Instructions for performing these functions may be included in a computer program product configured for execution by one or more processors and stored in a non-transitory computer readable medium.
One aspect of the present application involves a computer-implemented method performed by a mobile device having one or more processors and memory and a display. While running the social networking application, the mobile device detects an identifier associated with the third-party application and sends the third-party application identifier to a remote server. The remote server is configured to verify the third-party application identifier and return a verification result to the mobile device. In response to a positive verification result from the remote server, the mobile device activates the third-party application to generate an application-specific interface in accordance with the positive verification result and loads the interface into the social networking application. After detecting a user request initiated through the application-specific interface loaded into the social networking application, the mobile device sends the user request to the remote server. The remote server is configured to perform a transaction with a third-party server in accordance with the user request and return a response to the mobile device. Upon receipt of the response, the mobile device deactivates the third-party application and replaces the application-specific interface with a display of an instant message corresponding to the response in the social networking application.
Another aspect of the present application involves a mobile device including memory, one or more processors, and one or more program modules stored in the memory and configured for execution by the one or more processors to perform the method described above.
Yet another aspect of the present application involves a non-transitory computer readable storage medium having stored therein one or more programs for execution by one or more processors of a mobile device. The one or more programs include instructions, when executed by the one or more processors, cause the processors to perform the operations as described above.
The aforementioned features and advantages of the invention as well as additional features and advantages thereof will be more clearly understood hereinafter as a result of a detailed description of preferred embodiments when taken in conjunction with the drawings.
Like reference numerals refer to corresponding parts throughout the several views of the drawings.
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the subject matter presented herein. But it will be apparent to one skilled in the art that the subject matter may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.
In order to make the technical solutions of the present application more comprehensible, the solutions of the present application are described in further detail below with reference to accompanying drawings and embodiments.
Step 11: Receive a request for exchanging a resource in an application-specific manner from a user and obtain resource information of the resource.
In this step, if it is monitored that the user performs a preset operation on a certain resource, and a link corresponding to the resource is a link defined according to an application-specific standard, resource information of the resource can be obtained.
The preset operation includes, but is not limited to, one of the following operations: scanning a static two-dimensional code corresponding to the resource; clicking a link corresponding to the resource; and clicking an image-text message corresponding to the resource.
A static two-dimensional code is a two-dimensional code with fixed content and can be scanned by everyone.
A link corresponding to a resource exchanged in the application-specific manner is required to be a link defined according to an application-specific standard. A specific expression manner of the standard may be set according to an actual need, for example, each link defined according to the application-specific standard needs to use the following structure: a preset prefix plus a series of key-value pairs for distinguishing the resource.
The link refers to a uniform resource locator (URL).
For a resource exchanged in the application-specific manner, a link, a static two-dimensional code, or an image-text message that corresponds to the resource may be displayed to the user. Methods for creating the static two-dimensional code and the image-text message belong to the prior art. In this way, once it is monitored that the user scans the static two-dimensional code corresponding to the resource, clicks the link corresponding to the resource, or clicks the image-text message corresponding to the resource, resource information of the resource can be obtained.
The resource information may include information of a provider of the resource, information of the resource, and the like. The information may be included in the link, the static two-dimensional code, and the image-text message that correspond to the resource.
The static two-dimensional code is used as an example. As described above, the static two-dimensional code is a two-dimensional code with fixed content; in other words, compared with a dynamic two-dimensional code, content in the static two-dimensional code is not updated dynamically. In this way, for any resource, if anyone wants to exchange the resource, a static two-dimensional code corresponding to the resource may be scanned, and correspondingly, resource information of the resource can be obtained through scanning.
Step 12: Generate resource exchange response details according to the obtained resource information.
In this step, information needed for generating the resource exchange response details corresponding to the resource information may be obtained from a resource platform corresponding to the resource in a getpackage manner, and then the resource exchange response details are generated according to the obtained information needed for generating the resource exchange response details.
Content specifically included in the information needed for generating the resource exchange response details may be set according to an actual need, for example, an effective time, an exchange manner, and the like of the current exchange may be included.
Both the specific implementation manner of the getpackage and the manner of generating the resource exchange response details belong to the prior art.
In addition, for each resource, a callback address, namely, a callback URL, of a resource platform corresponding to the resource may be obtained in advance, so that information needed for generating resource exchange response details can be obtained subsequently according to the callback address. In other words, the information needed for generating the resource exchange response details of the resource may be obtained from the resource platform based on the callback address, which is obtained in advance, of the resource platform corresponding to the resource to be exchanged by the user.
Based on the foregoing introduction, a specific implementation manner of this step may include: sending a request for obtaining the information needed for generating the resource exchange response details to the resource platform corresponding to the resource, where the request carries the obtained resource information, signature information of itself, and the like; verifying, by the resource platform, the received signature information, and if the verification is passed, returning the information needed for generating the resource exchange response details corresponding to the resource information, and signature information of the resource platform; and verifying the received signature information of the resource platform, and if the verification is passed, generating the resource exchange response details according to the received information needed for generating the resource exchange response details.
Manners in which the two communication parties generate signature information of themselves and verify signature information with each other are not limited as long as the two parties negotiate with each other in advance and perform operations in a negotiated manner. In this manner, the two communication parties may verify with each other whether the identity of the other party is legal, so as to ensure security of the current resource exchange.
Step 13: Generate an application-specific exchange response interface according to the generated resource exchange response details, and display the application-specific exchange response interface to the user.
In this step, the application-specific exchange response interface may be further generated according to the resource exchange response details generated in step 12, and the application-specific exchange response interface is displayed to the user.
The application-specific exchange response interface refers to an application-specific interface in which the resource exchange response details are displayed, and specific content included in the resource exchange response details may be set according to an actual need.
The application-specific interface refers to a non-webView interface. Compared with a webView interface, the application-specific interface is obviously advantageous in terms of the loading speed, and can display information to a user more quickly.
A specific manner of displaying the resource exchange response details on the application-specific interface may be: a window popping up, where the resource exchange response details are displayed on the window, or pushing an interface, for example, pushing an interface from the right to the left, where the resource exchange response details are displayed on the interface. Definitely, the foregoing is only an example for description and is not intended to limit the technical solutions of the present application. Generally speaking, any non-web page display manner is acceptable.
In an actual application, the exchanging a resource in the application-specific manner in the solution of the present application may refer to buying a commodity in an application-specific payment manner, or the like. It can be known from the foregoing introduction that application-specific payment refers to redirection to an application-specific interface of a mobile device by scanning a static two-dimensional code corresponding to the commodity, clicking a corresponding link, or clicking a corresponding image-text message on the mobile device, to display order information, so as to achieve faster and more efficient payment.
Correspondingly, the resource information obtained in step 11 may include seller information of the commodity and information of the commodity. In step 12, the seller information, the information of the commodity, and buyer information may be sent together with the signature information to the resource platform, namely a seller platform of the commodity, so that the seller platform learns about specifics about this transaction in time.
In an actual application, the process shown in
Step 21: A mobile device monitors that a user clicks a link corresponding to a resource and defined according to an application-specific standard, and obtains resource information of the resource.
Step 22: The mobile device sends the obtained resource information to a remote server.
Step 23: The server obtains, from a resource platform (e.g., a server supporting a third-party application) in a getpackage manner, and based on a callback address, which is obtained in advance, of the resource platform corresponding to the resource, information needed for generating resource exchange response details corresponding to the resource information.
Step 24: The server generates the resource exchange response details according to the obtained information needed for generating the resource exchange response details, and sends the resource exchange response details to the mobile device.
Step 25: The mobile device generates an application-specific exchange response interface according to the received resource exchange response details, and displays the application-specific exchange response interface to the user.
It can be seen that, in the method embodiments of the present application, when a user exchanges a resource, an application-specific exchange response interface may be used to display resource exchange response details of the current exchange, namely, an application-specific exchange response interface is generated and displayed to the user. The present application is different from the prior art in which an exchange response interface is displayed to the user in a web page redirection manner, and therefore improves a speed for loading the exchange response interface.
In addition, the user can exchange a resource not only through an online click operation but also by scanning a static two-dimensional code offline, namely, the exchange can be completed without resorting to a network but only using a static two-dimensional code printed on a paper, which is very easy and convenient to implement, is applicable to various different scenarios, and has wide applicability.
Based on the foregoing introduction,
The mobile device is configured to receive a request for exchanging a resource in an application-specific manner from a user, obtain resource information of the resource, send the resource information to the server, generate an application-specific exchange response interface according to resource exchange response details received from the server, and display the application-specific exchange response interface to the user.
The server is configured to generate the resource exchange response details according to the resource information, and send the resource exchange response details to the mobile device.
If the mobile device monitors that the user performs a preset operation on the resource, and a link corresponding to the resource is a link defined according to an application-specific standard, resource information of the source can be obtained.
The preset operation includes one of the following operations: scanning a static two-dimensional code corresponding to the resource; clicking a link corresponding to the resource; and clicking an image-text message corresponding to the resource.
In addition, the server may be further configured to: obtain, in a getpackage manner from a resource platform corresponding to the resource, information needed for generating the resource exchange response details corresponding to the resource information, and generate the resource exchange response details according to the information needed for generating the resource exchange response details.
The server may obtain, from the resource platform and based on a callback address, which is obtained in advance, of the resource platform, the information needed for generating the resource exchange response details.
The server sends a request for obtaining the information needed for generating the resource exchange response details to the resource platform, where the request carries the resource information and signature information of the server.
The resource platform verifies the received signature information, and if the verification is passed, returns, to the server, the information needed for generating the resource exchange response details corresponding to the resource information, and signature information of the resource platform.
The server verifies the received signature information, and if the verification is passed, generates the resource exchange response details according to the received information needed for generating the resource exchange response details.
As shown in
The first processing module is configured to receive a request for exchanging a resource in an application-specific manner from a user, obtain resource information of the resource, and send the resource information to the server.
The second processing module is configured to generate an application-specific exchange response interface according to resource exchange response details received from the server, and display the application-specific exchange response interface to the user.
If the first processing module monitors that the user performs a preset operation on the resource, and a link corresponding to the resource is a link defined according to an application-specific standard, the first processing module can obtain resource information of the source.
The preset operation includes one of the following operations: scanning a static two-dimensional code corresponding to the resource; clicking a link corresponding to the resource; and clicking an image-text message corresponding to the resource.
In an actual application, the mobile device shown in
It can be seen that in the system embodiment of the present application, when a user exchanges a resource, an application-specific exchange response interface may be used to display resource exchange response details of the current exchange, namely, an application-specific exchange response interface is generated and displayed to the user. The present application is different from the prior art in which an exchange response interface is displayed to the user in a web page redirection manner, and therefore improves a speed for loading the exchange response interface.
In addition, the user can exchange a resource not only through an online click operation but also by scanning a static two-dimensional code offline, namely, the exchange can be completed without resorting to a network but only using a static two-dimensional code printed on a paper, which is easy and convenient to implement, is applicable to different scenarios, and has wide applicability.
In some embodiments, the I/O interface 540 includes an input unit 542 and a display unit 544. Examples of the input unit 542 include a keyboard, a mouse, a touch pad, a game controller, a function key, a trackball, a joystick, a microphone, a camera and the like. Additionally, the display unit 544 displays information that is inputted by the user or provided to the user for review. Examples of display unit 844 include, but are not limited to, a liquid crystal display (LCD) and an organic light-emitting diode (OLED) display. In some implementations, the input unit 542 and the display unit 544 are integrated on a touch-sensitive display that displays a graphical user interface (GUI).
In some embodiments, the communication interfaces 530 include circuitry (sometimes called a chipset) that interconnects and controls communications between system components. In some embodiments, the communication interfaces 530 further include a receiver 532 and a transmitter 534 so as to, e.g., communicate with a nearby base station as shown in
In some embodiments, the memory 520 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM or other random access solid state memory devices; and optionally includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid state storage devices. In some embodiments, memory 520 includes one or more storage devices remotely located from the one or more processors 510. In some embodiments, memory 520, or alternatively the non-volatile memory device(s) within memory 520, includes a non-transitory computer readable storage medium.
In some embodiments, the memory 520 or alternatively the non-transitory computer readable storage medium of memory 520 stores the following programs, modules and data structures, instructions, or a subset thereof:
More details on the functions of the social networking application 504 and the third-party application 505 are explained below with reference to
As shown in
As shown in
In this example, the remote server is responsible for managing services provided through the social networking application 504. Upon receipt of the third-party application identifier, the remote server verifies the third-party application identifier and returns a verification result to the mobile device 500. For example, the remote server may send the third-party application identifier and optionally an identifier of the user of the mobile device 500 to the third-party server that is configured to support the third-party application (e.g., an application that collects fees from purchasers of a publication). The third-party server interprets the third-party application identifier and determines one or more parameters associated with the third-party application identifier required for performing the transaction with the third-party server. For example, the third-party server determines the location of the newsstand that has the QR code, the identity of the publication to be purchased by the user of the mobile device 500, and the cost of the publication. Based on the interpretation of the identifier, the third-party server generates a response including the parameters and returns the response to the remote server. In some embodiments, the parameters are encrypted by the third-party server such that only the third-party application at the mobile device 500 is able to decrypt the parameters and generate an application-specific interface using the parameters. This security measure is to make sure that the confidential information specific to the third-party application is not inadvertently exposed to others through the social networking application.
The verification at the remote server may have two possible outcomes, positive or negative. A positive verification result indicates that the user of the mobile device 500 is allowed to continue the transaction with the third-party server through the social networking application. In response to a positive verification result (620), the mobile device 500 (or more specifically, the social networking application 504) activates (625) the third-party application 505 to generate an application-specific interface in accordance with the positive verification result and load the interface into the social networking application 505.
Upon detecting (630) a user request initiated through the application-specific interface loaded into the social networking application (e.g., a user click of the submit button 735), the social networking application 504 sends (635) the user request to the remote server. In some embodiments, although the user request was initiated from the third-party application 505, it was not directly submitted to the third-party server. Rather, the user request is submitted to the remote server associated with the social networking application 504, e.g., through the third-party application interface module 5042. In some embodiments, the current location of the mobile device 500 (e.g., as determined by the GPS module 506) is also provided by the mobile device 500 along with the user request. Such location information may be used by the remote server or the third-party server to determine the location of such transaction so that the service provider can tell the effectiveness of the QR codes at different locations.
In response, the remote server performs a transaction with the third-party server in accordance with the user request and returns a response to the mobile device. In some embodiments, the remote server needs to provide the user account information 5052 to the third-party server to complete the transaction. In some embodiments, the user account information 5052 may be the same or related to the user account information of the social networking application 504. For example, a user that has logged into his/her account of the social networking application 504 is allowed to access his/her account of the third-party application 505 using the same user account information.
Upon receipt of the transaction response from the remote server, the mobile device 500 (or more specifically, the social networking application 504) deactivates (640) the third-party application 505 and replaces the application-specific interface with a display of an instant message corresponding to the response in the social networking application 504. In some embodiments, the social networking application 504 identifies (645) a conversation associated with the third-party application 505 in the social networking application 504 and displays (650) the instant message in the identified conversation.
Finally, in response to a negative verification result (655), the mobile device 500 (or more specifically, the social networking application 504) displays (660) an instant message corresponding to the negative verification result in the social networking application 504. A negative verification result may be that the user of the mobile device 500 does not have enough resource to complete the transaction or that the third-party server may stop supporting such transactions.
In conclusion, the foregoing is merely preferred embodiments of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present application shall fall within the protection scope of the present application.
While particular embodiments are described above, it will be understood it is not intended to limit the invention to these particular embodiments. On the contrary, the invention includes alternatives, modifications and equivalents that are within the spirit and scope of the appended claims. Numerous specific details are set forth in order to provide a thorough understanding of the subject matter presented herein. But it will be apparent to one of ordinary skill in the art that the subject matter may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.
The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and/or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms “includes,” “including,” “comprises,” and/or “comprising,” when used in this specification, specify the presence of stated features, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, operations, elements, components, and/or groups thereof.
As used herein, the term “if” may be construed to mean “when” or “upon” or “in response to determining” or “in accordance with a determination” or “in response to detecting,” that a stated condition precedent is true, depending on the context. Similarly, the phrase “if it is determined [that a stated condition precedent is true]” or “if [a stated condition precedent is true]” or “when [a stated condition precedent is true]” may be construed to mean “upon determining” or “in response to determining” or “in accordance with a determination” or “upon detecting” or “in response to detecting” that the stated condition precedent is true, depending on the context.
Although some of the various drawings illustrate a number of logical stages in a particular order, stages that are not order dependent may be reordered and other stages may be combined or broken out. While some reordering or other groupings are specifically mentioned, others will be obvious to those of ordinary skill in the art and so do not present an exhaustive list of alternatives. Moreover, it should be recognized that the stages could be implemented in hardware, firmware, software or any combination thereof.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated.
Number | Date | Country | Kind |
---|---|---|---|
2014 1 0234115 | May 2014 | CN | national |
This is a continuation application of International Patent Application No. PCT/CN2015/070502, filed on Jan. 12, 2015, which claims priority to Chinese Patent Application No. 201410234115.7, filed on May 29, 2014, the disclosures of which are incorporated by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
8005930 | Abeln | Aug 2011 | B2 |
20100057872 | Koons | Mar 2010 | A1 |
20100262924 | Kalu | Oct 2010 | A1 |
20130043302 | Powlen | Feb 2013 | A1 |
20130080420 | Taylor | Mar 2013 | A1 |
20130247031 | He | Sep 2013 | A1 |
20140156481 | Gilveli | Jun 2014 | A1 |
20140195395 | Bhakta | Jul 2014 | A1 |
20140359018 | Sun | Dec 2014 | A1 |
20150200948 | Cairns | Jul 2015 | A1 |
Number | Date | Country |
---|---|---|
101051372 | Oct 2007 | CN |
101183949 | May 2008 | CN |
102137144 | Jul 2011 | CN |
102411585 | Apr 2012 | CN |
102542691 | Jul 2012 | CN |
102866905 | Jan 2013 | CN |
102929672 | Feb 2013 | CN |
103365844 | Oct 2013 | CN |
103748583 | Apr 2014 | CN |
103782294 | May 2014 | CN |
104144206 | Nov 2014 | CN |
Entry |
---|
International Search Report in international application No. PCT/CN2015/070502, dated Mar. 31, 2015. |
English Translation of the Written Opinion of the International Search Authority in international application No. PCT/CN2015/070502, dated Mar. 31, 2015. |
Notification of the First Office Action of Chinese application No. 201410234115.7, dated Nov. 2, 2015. |
Notification of the Third Office Action of Chinese application No. 201410234115.7, dated May 9, 2016. |
Number | Date | Country | |
---|---|---|---|
20160309000 A1 | Oct 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/070502 | Jan 2015 | US |
Child | 15190907 | US |