Application program updating method and device, and data transmission method and device
Dynamically update the column controller navigation bar and page of the iOS application through the console, which solves the problem that the column controller style and page cannot be modified flexibly, realizes the rapid update of the page without releasing a new version, and ensures system stability. sex and user experience.
Patent Information
- Application Number
- CN202010010261.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-01-06
AI Technical Summary
The column controller styles and pages of existing iOS applications cannot be flexibly modified after creation, resulting in a lack of flexibility and the inability to update immediately, which affects the user experience. Moreover, it can only be modified by releasing a new version, which cannot quickly solve page problems. .
Obtain and send navigation bar configuration information and page update information through the console, allowing dynamic updates of navigation bar styles and pages while the application is running, including full and staged updates, supporting native, H5 and React Native page types to implement navigation bars and flexible modification of pages.
It enables flexibly changing the application page display without releasing a new version, ensuring system stability, quickly discovering and adjusting problems, controlling the scope of impact, and simplifying the operation process without changing the application code.
Smart Images

Figure CN113076118B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an application updating method and device and a data sending method and device. Background Art
[0002] In iOS (a mobile operating system), the main interface of most applications uses a column controller as a skeleton to manage the hierarchical structure of the page. The column controller implements page switching by managing multiple tags and corresponding view controllers. In the prior art, the style of the column controller, the number of tags, and the pages corresponding to each tag cannot be changed at any time after creation, and the framework of the application is also fixed, lacking flexibility. At the same time, the pages managed by the column controller are generally important pages of the application. Once problems occur on these pages, the user experience will be affected. However, the prior art can only modify the page by releasing a new version, and the new version needs to be reviewed before it can be put online, and it cannot be modified and take effect immediately. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides an application updating method and device and a data sending method and device, which can update the navigation bar style information and page information of the application column controller at any time through a console.
[0004] To achieve the above objective, according to one aspect of the present invention, a method for updating an application is provided.
[0005] The application update method of an embodiment of the present invention includes: obtaining navigation bar configuration information and / or phased page update information for the application issued by the console; wherein the navigation bar is in a column controller of the application, and the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: style update information and / or full page update information of the navigation bar; updating the navigation bar according to the style update information of the navigation bar; and / or updating the application page controlled by the tag according to the phased page update information or the full page update information.
[0006] Optionally, the style update information of the navigation bar includes: update information of the navigation bar background image and / or style update information of the label, and the style update information of the label includes update information of the label title, image and / or superscript; the full page update information is information sent by the console to multiple clients within a preset range, and the information includes the label title corresponding to the page to be updated and the preset type and identification of the updated page; the staged page update information is information sent by the console to a preset proportion of clients among the multiple clients, and the information includes the label title corresponding to the page to be updated and the preset type and identification of the updated page.
[0007] Optionally, obtaining navigation bar configuration information and / or phased page update information for the application issued by the console, including: when the application is started or switched from the background to the foreground, obtaining the navigation bar configuration information and / or phased page update information for the application issued by the console; updating the application page controlled by the tag according to the phased page update information or the full page update information, including: when the phased page update information or the full page update information is obtained, calling the view controller corresponding to the tag title included in the information, and the view controller creates a page according to the type and identifier of the updated page included in the information.
[0008] Optionally, the method can be applied to the iOS system; the type of the page includes at least one of the following: a native page, an H5 page, and a React Native page; the identifier of the native page is the class name of the view controller corresponding to the page, the identifier of the H5 page is the link address of the page, and the identifier of the React Native page is the name of the page module.
[0009] To achieve the above objective, according to another aspect of the present invention, a data sending method is provided.
[0010] The data sending method of an embodiment of the present invention is applied to a console, including: determining style update information for an application navigation bar, the navigation bar being located in a column controller of the application; generating navigation bar configuration information using the style update information, and sending the navigation bar configuration information to a client on which the application is installed to update the style of the navigation bar; and / or determining page update information for an application navigation bar, the navigation bar being located in a column controller of the application; when it is necessary to send page update information to multiple clients within a preset range: determining the page update information as full page update information, generating navigation bar configuration information using the full page update information, and sending the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; when it is necessary to send page update information to a preset proportion of clients among the multiple clients: determining the page update information as staged page update information, and sending the staged page update information to the preset proportion of clients to update the page controlled by the navigation bar.
[0011] Optionally, the navigation bar includes at least one tag for controlling the application page; the style update information of the navigation bar includes: update information of the navigation bar background image and / or style update information of the tag; the method further includes: after sending the staged page update information to the preset proportion of clients, collecting operating indicator data of the application in the client; when the operating indicator data meets preset conditions, sending the staged page update information to other clients among the multiple clients; when it is necessary to add a tag in the navigation bar, combining the style update information of the tag to be added and the full page update information corresponding to the tag to be added into navigation bar configuration information and sending them to the multiple clients.
[0012] Optionally, the style update information of the label includes update information of the label title, picture and / or superscript; both the full page update information and the staged page update information include the label title corresponding to the page to be updated and the preset type and identifier of the updated page; the page type includes at least one of the following: native page, H5 page, React Native page; the identifier of the native page is the class name of the view controller corresponding to the page, the identifier of the H5 page is the link address of the page, and the identifier of the React Native page is the name of the page module; when it is necessary to send page update information to a preset proportion of clients among the multiple clients, including: when it is necessary to upgrade or repair the page controlled by the navigation bar.
[0013] To achieve the above objective, according to another aspect of the present invention, an application updating device is provided.
[0014] An application updating device according to an embodiment of the present invention may include: a configuration acquisition unit, used to acquire navigation bar configuration information and / or phased page update information for an application issued by a console; wherein the navigation bar is located in a column controller of the application, the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: style update information and / or full page update information of the navigation bar; an update unit, used to: update the navigation bar according to the style update information of the navigation bar; and / or, update the application page controlled by the tag according to the phased page update information or the full page update information.
[0015] To achieve the above objective, according to another aspect of the present invention, a data sending device is provided.
[0016] The data sending device of an embodiment of the present invention is applied in a console and may include: a first sending unit, used to: determine style update information for an application navigation bar, the navigation bar being in a column controller of the application; generate navigation bar configuration information using the style update information, and send the navigation bar configuration information to a client that has the application installed to update the style of the navigation bar; and / or, a second sending unit, used to: determine page update information for an application navigation bar, the navigation bar being in a column controller of the application; when it is necessary to send page update information to multiple clients within a preset range: determine the page update information as full page update information, generate navigation bar configuration information using the full page update information, and send the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; when it is necessary to send page update information to a preset proportion of clients among the multiple clients: determine the page update information as staged page update information, and send the staged page update information to the preset proportion of clients to update the page controlled by the navigation bar.
[0017] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.
[0018] An electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the application update or data sending method provided by the present invention.
[0019] To achieve the above objective, according to yet another aspect of the present invention, a computer-readable storage medium is provided.
[0020] A computer-readable storage medium of the present invention stores a computer program, and when the program is executed by a processor, the application program updating or data sending method provided by the present invention is implemented.
[0021] According to the technical solution of the present invention, one embodiment of the above invention has the following advantages or beneficial effects: by configuring the style update information of the navigation bar of the column controller in the console and sending the navigation bar configuration information including the style update information to the client, the navigation bar background and the style of each label can be flexibly changed as needed; when the application is online or the column controller adds a new page (i.e., a new label), the console can send the navigation bar configuration information including the full page update information to the corresponding client within a preset range, so that each client can display each page of the column controller or the newly added page; when a page controlled by the column controller has a problem or needs to be upgraded, the console can send the staged page update information to the clients of the preset proportion within the preset range to modify or upgrade the corresponding page, and at the same time, the console collects the operation index data of these applications, and sends the staged page update information to more clients when the operation index data reaches the preset conditions, so that the page display of the application can be flexibly changed without releasing a new version of the application. The present invention has a simple operation process, and the application style and page structure can be configured without changing the application code. The page modification or upgrade realized according to the staged page update information can ensure the stability of the overall system, and the problem can be discovered and adjusted in the early stage of using the updated page to control the impact range.
[0022] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0024] Figure 1 Schematic diagram of the main steps of the application updating method in an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of a navigation bar of a column controller in an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of the interaction between the console and the client in an embodiment of the present invention;
[0027] Figure 4 It is a schematic diagram of components of an application updating device in an embodiment of the present invention;
[0028] Figure 5 It is a schematic diagram of components of a data sending device in an embodiment of the present invention;
[0029] Figure 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
[0030] Figure 7It is a schematic diagram of the structure of an electronic device used to implement the application updating method or the data sending method in the embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0032] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0033] Figure 1 4 is a schematic diagram of main steps of the application updating method according to an embodiment of the present invention.
[0034] like Figure 1 As shown, the application updating method of the embodiment of the present invention can be specifically performed according to the following steps:
[0035] Step S101: Obtain navigation bar configuration information and / or phased page update information for the application program issued by the console.
[0036] In this step, the navigation bar refers to the navigation bar of the column controller of the application. In the iOS system, the column controller is UITabbarcontroller, which is used to manage the view controller (Viewcontroller) to achieve page switching. The column controller includes a navigation bar (UITabbar), which is located at the bottom of the screen and is always visible. The navigation bar is provided with at least one label (UITabbaritem) for controlling the application page. Each label corresponds to an application page through the view controller, and each label has a title, an image and a corner mark. Figure 2 is a schematic diagram of a column controller navigation bar in an embodiment of the present invention, such as Figure 2 As shown, the navigation bar includes four labels. The label images are pentagon, circle, square and triangle from left to right, and the titles are Label A, Label B, Label C and Label D. The shape containing the HOT character in the upper right corner of Label C is the superscript of the label.
[0037] It should be noted that the application update method of the embodiment of the present invention can be applied to the application update of the iOS system, and can also be applied to the Android system and the browser side. When the method is applied to the Android system and the browser side, the above-mentioned column controller refers to a component in the Android system and the browser that has the same or similar functions as the iOS column controller. The following will mainly be described by taking the application of the present invention in the iOS system as an example.
[0038] In an embodiment of the present invention, the console is the part of the server that directly interacts with the client, that is, the front-end part of the server, which is used to configure page data or style data for the client. In step S101, the navigation bar configuration information may include the style update information of the navigation bar or the full page update information, the style update information of the navigation bar may include the update information of the navigation bar background image (such as the content, color, etc. of the updated background image) and or the style update information of the label, and the style update information of the label may include the update information of the title, picture or superscript of the label. It can be understood that the update information of the title may include the updated title content, font, color information, etc. in the selected or unselected state, the update information of the picture may include the updated picture content, size, color, etc. in the selected or unselected state, and the update information of the superscript may include the updated superscript content, font, color, etc. in the selected or unselected state.
[0039] The full page update information is information sent by the console to all relevant clients within a preset range, wherein the preset range can be determined according to actual needs, and it can be a spatial range or other ranges used to define different clients. For example, the preset range can be a city, a province or a country, and the relevant client refers to a client with a corresponding application installed. The full page update information includes the label title corresponding to the page to be updated and the preset type and identifier of the updated page. It can be understood that the identifier of the page enables the client to uniquely identify the application page. In actual applications, the type of page includes at least one of the following: a native page (i.e., a page created using the system's own development method), an H5 page (i.e., a page created using the H5 method, H5 is the fifth generation hypertext markup language), a React Native page (i.e., a page created using the React Native method, React Native is a cross-platform application development framework), the identifier of the native page is the class name of the view controller corresponding to the page, the identifier of the H5 page is the link address of the page, i.e., the URL (Uniform Resource Locator) address, and the identifier of the React Native page is the name of the page module. In actual applications, the navigation bar configuration information may also include the navigation bar style update information and the full page update information.
[0040] It can be understood that the navigation bar configuration information only includes information for updating the column controller navigation bar of the client application. If the navigation bar is not updated, the console does not send the navigation bar configuration information to the client. In addition, the navigation bar style update information and full page update information in the navigation bar configuration information sent by the console are information that the console determines does not need to be released in stages (i.e., first select some clients within a preset range for distribution, and expand the release range when the feedback results are good). For example, when it is necessary to update the image color of label a of a certain application to red, and at the same time, it is necessary to update a native page controlled by label b to an H5 page, if the console determines that the above update information does not need to be released in stages, it can generate navigation bar configuration information including the update information of label a and the update information of label b, the update information of label a is the style update information indicating that the image color of label a is updated to red, and the update information of label b is the full page update information including the type of the updated page (i.e., H5) and the link address of the updated page. In an embodiment of the present invention, the page controlled by the label can include the main page of the application corresponding to the label and the sub-pages of each level.
[0041] In specific applications, when an application goes online or a new page is added to the application, the console can display the page by sending full page update information to the client. However, when modifying or upgrading the page, the console often needs to perform phased release of the updated page, that is, first select a preset proportion of clients within a preset range for release, and monitor the operation indication data of these client applications (such as error rate, throughput, page views, etc.). When the operation indicator data meets the preset conditions (for example, the operation indicator data is greater than the threshold that represents a good effect), it is distributed to other parts or all of the clients within the preset range. In this scenario, the console can first send phased page update information to a preset proportion of clients, which includes the label title corresponding to the page to be updated and the preset type and identifier of the updated page. It can be understood that the console can pre-store the mapping relationship between the page to be updated and the updated page type, identifier, and the corresponding preset ratio, and the mapping relationship can be queried through the identifier of the page to be updated. In actual applications, the console can use various strategies to determine the clients to which phased page update information is sent. For example, the console can first select clients whose operating systems meet certain conditions, then divide these clients into multiple parts according to certain user characteristics and select a certain number of clients from them, and at the same time set a whitelist to select another part of clients that meet the requirements. When the selected clients reach a preset proportion, the console can send phased page update information.
[0042] In step S101, the client can obtain the navigation bar configuration information or phased page update information sent by the console when the application is started or switched from the background to the foreground, or can obtain the navigation bar configuration information or phased page update information at any time. The above acquisition can be in the form of the client actively pulling from the console, or in the form of the console actively sending to the client and the client receiving.
[0043] Step S102: updating the navigation bar according to the style update information of the navigation bar; and / or updating the application page controlled by the tag according to the phased page update information or the full page update information.
[0044] In this step, the client adjusts the style or page structure of the application according to the navigation bar configuration information or the phased page update information sent by the console. Specifically, when the navigation bar configuration information received by the client contains the style update information of the navigation bar, the style of the navigation bar is updated according to the information. For example, when the style update information of the navigation bar includes the update information of the background image of the navigation bar, the background of the navigation bar is updated using the update information of the background image of the navigation bar; when the style update information of the navigation bar includes the style update information of the label, the corresponding label is updated using the style update information of the label. When the navigation bar configuration information received by the client contains full page update information, the view controller corresponding to the label title included in the information can be called, and the view controller creates a page according to the type and identifier of the updated page included in the information and displays it when the user selects the label.
[0045] When the client receives the phased page update information, it can call the view controller corresponding to the label title included in the information, and the view controller creates a page according to the type and identifier of the updated page included in the information and displays it when the user selects the label. It can be understood that the client can receive the navigation bar configuration information and the phased page update information at the same time. The navigation bar configuration information can contain the update information of the navigation bar background image and the style update information of multiple labels at the same time. The client can perform the update operation of the application style and page structure according to the above information respectively.
[0046] Figure 3 Schematic diagram of the interaction between the console and the client in an embodiment of the present invention. Figure 3 As shown, the client can obtain the navigation bar configuration information or phased page update information issued by the console at any time and cache it locally. In actual applications, only the most recently issued navigation bar configuration information or phased page update information is cached locally. After receiving the most recently issued navigation bar configuration information or phased page update information, the previously cached corresponding information can be deleted. Figure 3The dotted line represents the client's information acquisition process, which means that the client can achieve the above-mentioned information acquisition but may not have acquired and cached the navigation bar configuration information or the staged page update information.
[0047] When the application starts or switches from the background to the foreground, the client determines whether there is navigation bar configuration information in the local cache: if so, the navigation bar style is set using the navigation bar configuration information; otherwise, the navigation bar style is set using the default navigation bar configuration information preset in the client order (this happens when the network request fails or is abnormal). Afterwards, the client determines whether there is phased page update information locally: if so, the phased page update information is used to create and display the page, otherwise the local cached navigation bar configuration information or the full page update information in the default navigation bar configuration information is used to create and display the page. In a specific scenario, when the console sends navigation bar configuration information including full update information to the client, it can also send phased page update information with empty content for the corresponding page to the client at the same time to clear the phased page update information of the corresponding page cached in the client, thereby ensuring that the full update information sent can take effect.
[0048] The following will explain the data sending method executed on the console corresponding to the application update method of the client. Specifically, the console can determine the style update information for the application navigation bar and send the navigation bar configuration information including the style update information to the client, thereby realizing the style update of the client navigation bar. The console can also determine the page update information for the application navigation bar, and according to actual needs, use full release or phased release to send the page update information to the client to realize the client page update. The following will be explained according to specific scenarios. It can be understood that these scenarios do not limit the data sending method of the embodiment of the present invention. The data sending method of the embodiment of the present invention can be applied in any applicable scenario and executed at any triggering time according to needs.
[0049] When the application is launched, the console can send the navigation bar style update information and full page update information to each relevant client within the preset range, so that each client can quickly display the style information and page structure. When a page of the application navigation bar has a problem and needs to be repaired, in order to maintain system stability, possible problems can be discovered in the early stage of using the updated page. Generally, a phased release is required. At this time, the console can generate phased page update information and send it to a preset proportion of clients. When the application operation indicator data monitored later meets the conditions, the release range will be expanded and the full delivery will be finally achieved. When a page of the application navigation bar needs to be upgraded, a phased release is generally required. At this time, the console can generate phased page update information and send it to a preset proportion of clients. When the application operation indicator data monitored later meets the conditions, the release range will be expanded and the full delivery will be finally achieved. When it is necessary to add a label to the navigation bar, the console sends the navigation bar configuration information including the style update information of the label to be added and the full page update information corresponding to the label to be added to the client. Generally, the updated page in the full page update information has been tested and passed in other entrances of the application in advance, so the full release method can be adopted. After receiving the navigation bar configuration information, the client can set the style of the tag to be added according to the style update information of the tag to be added, and create and display the page according to the full page update information corresponding to the tag to be added.
[0050] In the technical scheme of the embodiment of the present invention, by configuring the style update information of the navigation bar of the column controller in the console and sending the navigation bar configuration information including the style update information to the client, the style of the navigation bar background and each label can be flexibly changed as needed; when the application is online or the column controller adds a new page, the console can send the navigation bar configuration information including the full page update information to the corresponding client within a preset range, so that each client can display each page of the column controller or the newly added page; when a page controlled by the column controller has a problem or needs to be upgraded, the console can send phased page update information to the clients of a preset proportion within the preset range to modify or upgrade the corresponding page, and at the same time, the console collects the operation index data of these applications, and sends phased page update information to more clients when the operation index data reaches the preset conditions, so that the page display of the application can be flexibly changed without releasing a new version of the application. The present invention has a simple operation process, and the application style and page structure can be configured without changing the application code. The page modification or upgrade realized according to the phased page update information can ensure the stability of the overall system, and the problem can be discovered and adjusted in the early stage of using the updated page, and the impact range can be controlled.
[0051] It should be noted that, for the convenience of description, the aforementioned method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, and some steps can actually be performed in other sequences or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to implement the present invention.
[0052] In order to better implement the above-mentioned solution of the embodiment of the present invention, relevant devices for implementing the above-mentioned solution are also provided below.
[0053] See also Figure 4 As shown, the application program updating device 400 provided by the embodiment of the present invention may include: a configuration obtaining unit 401 and an updating unit 402 .
[0054] Among them, the configuration acquisition unit 401 can be used to obtain the navigation bar configuration information and / or phased page update information for the application issued by the console; wherein, the navigation bar is in the column controller of the application, and the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: style update information and / or full page update information of the navigation bar; the update unit 402 can be used to: update the navigation bar according to the style update information of the navigation bar; and / or, update the application page controlled by the tag according to the phased page update information or the full page update information.
[0055] In an embodiment of the present invention, the style update information of the navigation bar includes: update information of the navigation bar background image and / or style update information of the label, and the style update information of the label includes update information of the label title, image and / or superscript; the full page update information is information sent by the console to multiple clients within a preset range, and the information includes the label title corresponding to the page to be updated and the preset type and identification of the updated page; the staged page update information is information sent by the console to a preset proportion of clients among the multiple clients, and the information includes the label title corresponding to the page to be updated and the preset type and identification of the updated page.
[0056] In specific applications, the configuration acquisition unit 401 is also used to: obtain the navigation bar configuration information and / or phased page update information for the application issued by the console when the application is started or switched from the background to the foreground; the update unit 402 is also used to: when the phased page update information or the full page update information is obtained, call the view controller corresponding to the label title included in the information, and the view controller creates a page according to the type and identifier of the updated page included in the information.
[0057] As a preferred solution, the method can be applied to the iOS system; the page type includes at least one of the following: native page, H5 page, React Native page; the identifier of the native page is the class name of the view controller corresponding to the page, the identifier of the H5 page is the link address of the page, and the identifier of the React Native page is the name of the page module.
[0058] Figure 5 Schematic diagram of components of a data sending device according to an embodiment of the present invention. Figure 5 As shown, the data sending device 500 in the embodiment of the present invention may include a first sending unit 501 and / or a second sending unit 502 .
[0059] Among them, the first sending unit 501 can be used to: determine style update information for the application navigation bar, the navigation bar is in the column controller of the application; use the style update information to generate navigation bar configuration information, and send the navigation bar configuration information to the client where the application is installed to update the style of the navigation bar; the second sending unit 502 can be used to: determine page update information for the application navigation bar, the navigation bar is in the column controller of the application; when it is necessary to send page update information to multiple clients within a preset range: determine the page update information as full page update information, use the full page update information to generate navigation bar configuration information, and send the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; when it is necessary to send page update information to a preset proportion of clients among the multiple clients: determine the page update information as staged page update information, and send the staged page update information to the preset proportion of clients to update the page controlled by the navigation bar.
[0060] In an embodiment of the present invention, the navigation bar includes at least one tag for controlling the application page; the style update information of the navigation bar includes: update information of the navigation bar background image and / or style update information of the tag; the device 500 may further include a monitoring unit and a tag adding unit, and the monitoring unit can be used to: after sending the staged page update information to the preset proportion of clients, collect the operating indicator data of the application in the client; when the operating indicator data meets the preset conditions, send the staged page update information to other clients among the multiple clients; the tag adding unit can be used to: when it is necessary to add a tag in the navigation bar, combine the style update information of the tag to be added and the full page update information corresponding to the tag to be added into navigation bar configuration information and send them to the multiple clients.
[0061] Preferably, in an embodiment of the present invention, the style update information of the tag includes update information of the tag title, picture and / or superscript; both the full page update information and the staged page update information include the tag title corresponding to the page to be updated and the preset type and identifier of the updated page; the page type includes at least one of the following: native page, H5 page, React Native page; the identifier of the native page is the class name of the view controller corresponding to the page, the identifier of the H5 page is the link address of the page, and the identifier of the React Native page is the name of the page module; when it is necessary to send page update information to a preset proportion of clients among the multiple clients, including: when it is necessary to upgrade or repair the page controlled by the navigation bar.
[0062] In the technical scheme of the embodiment of the present invention, by configuring the style update information of the navigation bar of the column controller in the console and sending the navigation bar configuration information including the style update information to the client, the style of the navigation bar background and each label can be flexibly changed as needed; when the application is online or the column controller adds a new page, the console can send the navigation bar configuration information including the full page update information to the corresponding client within a preset range, so that each client can display each page of the column controller or the newly added page; when a page controlled by the column controller has a problem or needs to be upgraded, the console can send phased page update information to the clients of a preset proportion within the preset range to modify or upgrade the corresponding page, and at the same time, the console collects the operation index data of these applications, and sends phased page update information to more clients when the operation index data reaches the preset conditions, so that the page display of the application can be flexibly changed without releasing a new version of the application. The present invention has a simple operation process, and the application style and page structure can be configured without changing the application code. The page modification or upgrade realized according to the phased page update information can ensure the stability of the overall system, and the problem can be discovered and adjusted in the early stage of using the updated page, and the impact range can be controlled.
[0063] Figure 6 An exemplary system architecture 600 is shown to which the application updating method or apparatus and the data sending method or apparatus according to the embodiments of the present invention can be applied.
[0064] like Figure 6 As shown, the system architecture 600 may include terminal devices 601, 602, 603, a network 604 and a server 605 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 604 is used to provide a medium for a communication link between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0065] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various client applications can be installed on the terminal devices 601, 602, 603.
[0066] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0067] The server 605 may be a server that provides various services, such as a console (only an example) that provides services to applications operated by users using the terminal devices 601, 602, and 603. The console may process the received page update request and feed back the processing result (such as updated page information - only an example) to the terminal devices 601, 602, and 603.
[0068] It should be noted that the application updating method and apparatus provided in the embodiment of the present invention are generally associated with the terminal devices 601 , 602 , and 603 , and the data sending method and apparatus are generally associated with the server 605 .
[0069] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0070] The present invention also provides an electronic device. The electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the application program update method or data sending method provided by the present invention.
[0071] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0072] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0073] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0074] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, the embodiments of the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit 701, the above functions defined in the system of the present invention are executed.
[0075] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0076] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0077] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a configuration acquisition unit and an update unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the configuration acquisition unit may also be described as "a unit that sends navigation bar configuration information and / or staged page update information to the update unit".
[0078] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the steps executed by the device include: obtaining navigation bar configuration information and / or phased page update information for the application issued by the console; wherein the navigation bar is in the column controller of the application, and the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: navigation bar style update information and / or full page update information; updating the navigation bar according to the navigation bar style update information; and / or updating the application page controlled by the tag according to the phased page update information or the full page update information. When the above one or more programs are executed by the device, the steps executed by the device also include: determining style update information for the application navigation bar, the navigation bar is in the column controller of the application; using the style update information to generate navigation bar configuration information, and sending the navigation bar configuration information to the client where the application is installed to update the style of the navigation bar; and / or determining page update information for the application navigation bar, the navigation bar is in the column controller of the application; when it is necessary to send page update information to multiple clients within a preset range: determining the page update information as full page update information, generating navigation bar configuration information using the full page update information, and sending the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; when it is necessary to send page update information to a preset proportion of clients among the multiple clients: determining the page update information as staged page update information, and sending the staged page update information to the preset proportion of clients to update the page controlled by the navigation bar.
[0079] In the technical scheme of the embodiment of the present invention, by configuring the style update information of the navigation bar of the column controller in the console and sending the navigation bar configuration information including the style update information to the client, the style of the navigation bar background and each label can be flexibly changed as needed; when the application is online or the column controller adds a new page, the console can send the navigation bar configuration information including the full page update information to the corresponding client within a preset range, so that each client can display each page of the column controller or the newly added page; when a page controlled by the column controller has a problem or needs to be upgraded, the console can send phased page update information to the clients of a preset proportion within the preset range to modify or upgrade the corresponding page, and at the same time, the console collects the operation index data of these applications, and sends phased page update information to more clients when the operation index data reaches the preset conditions, so that the page display of the application can be flexibly changed without releasing a new version of the application. The present invention has a simple operation process, and the application style and page structure can be configured without changing the application code. The page modification or upgrade realized according to the phased page update information can ensure the stability of the overall system, and the problem can be discovered and adjusted in the early stage of using the updated page, and the impact range can be controlled.
[0080] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for updating an application, characterized in that: include: When the application is launched or a new page is added to the column controller, obtain the navigation bar configuration information for the application sent by the console; When an application page controlled by a column controller has a problem or needs to be upgraded, obtain the phased page update information for the application issued by the console; wherein, The navigation bar is in a column controller of the application, the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: navigation bar style update information and full page update information; The navigation bar is updated according to the style update information of the navigation bar; and the application page controlled by the tag is updated according to the phased page update information or the full page update information.
2. The method according to claim 1, characterized in that: The navigation bar style update information includes: the navigation bar background image update information and / or the label style update information, and the label style update information includes the label title, image and / or superscript update information; The full page update information is information sent by the console to multiple clients within a preset range, including the label title corresponding to the page to be updated and the preset type and identifier of the updated page; The phased page update information is information sent by the console to a preset proportion of clients among the multiple clients, and the information includes a label title corresponding to the page to be updated and a preset type and identifier of the updated page.
3. The method according to claim 2, characterized in that Get the navigation bar configuration information and / or phased page update information for the application sent by the console, including: When the application is started or switched from the background to the foreground, obtain the navigation bar configuration information and / or phased page update information for the application sent by the console; Updating the application page controlled by the tag according to the phased page update information or the full page update information includes: When the phased page update information or the full page update information is obtained, the view controller corresponding to the label title included in the information is called, and the view controller creates a page according to the type and identifier of the updated page included in the information.
4. The method according to claim 2 or 3, characterized in that: The method is applied in iOS system; The page type includes at least one of the following: native page, H5 page, React Native page; The identifier of a native page is the class name of the view controller corresponding to the page, the identifier of an H5 page is the link address of the page, and the identifier of a React Native page is the name of the page module.
5. A data transmission method, applied to a control console, characterized in that: include: When an application is launched or a new page is added to a column controller, determining style update information for a navigation bar of the application, the navigation bar being in the column controller of the application; Generating navigation bar configuration information using the style update information, and sending the navigation bar configuration information to a client that has the application installed, so as to update the style of the navigation bar; When an application is launched or a new page is added to a column controller, page update information for a navigation bar of the application is determined, the navigation bar being in the column controller of the application; When it is necessary to send page update information to multiple clients within a preset range: determine the page update information as full page update information, generate navigation bar configuration information using the full page update information, and send the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; When it is necessary to send page update information to a preset proportion of clients among the multiple clients: determine the page update information as phased page update information, and send the phased page update information to the preset proportion of clients to update the page controlled by the navigation bar; When the page update information needs to be sent to a preset proportion of the clients among the multiple clients, it includes: when the page controlled by the navigation bar needs to be upgraded or repaired.
6. The method according to claim 5, characterized in that The navigation bar includes at least one label for controlling the application page; The navigation bar style update information includes: navigation bar background image update information and / or label style update information; The method further comprises: After sending the phased page update information to the preset proportion of clients, collecting the running index data of the application in the client; When the operation indicator data meets a preset condition, sending the phased page update information to other clients among the multiple clients; When it is necessary to add a tag in the navigation bar, the style update information of the tag to be added and the full page update information corresponding to the tag to be added are combined into navigation bar configuration information and sent to the multiple clients.
7. The method according to claim 6, characterized in that The label style update information includes the update information of the label title, image and / or superscript; Both the full page update information and the phased page update information include the label title corresponding to the page to be updated and the preset type and identifier of the updated page; The page type includes at least one of the following: native page, H5 page, React Native page; The identifier of a native page is the class name of the view controller corresponding to the page, the identifier of an H5 page is the link address of the page, and the identifier of a React Native page is the name of the page module.
8. An application updating device, characterized in that: include: The configuration acquisition unit is used to obtain the navigation bar configuration information for the application sent by the console when the application is launched or a new page is added to the column controller; When an application page controlled by a column controller has a problem or needs to be upgraded, obtain the phased page update information for the application issued by the console; wherein, The navigation bar is in a column controller of the application, the navigation bar includes at least one tag for controlling the application page, and the navigation bar configuration information includes: navigation bar style update information and full page update information; The updating unit is used to: update the navigation bar according to the style update information of the navigation bar; and update the application page controlled by the tag according to the staged page update information or the full page update information.
9. A data sending device, applied to a control console, characterized in that: include: The first sending unit is used to: determine style update information for a navigation bar of an application when the application is launched or a new page is added to a column controller, the navigation bar being in the column controller of the application; generate navigation bar configuration information using the style update information, and send the navigation bar configuration information to a client that has installed the application to update the style of the navigation bar; The second sending unit is used to: determine page update information for a navigation bar of the application when the application goes online or a new page is added to the column controller, where the navigation bar is in the column controller of the application; When it is necessary to send page update information to multiple clients within a preset range: determine the page update information as full page update information, use the full page update information to generate navigation bar configuration information, and send the navigation bar configuration information to the multiple clients to update the page controlled by the navigation bar; when it is necessary to upgrade or repair the page controlled by the navigation bar: determine the page update information as staged page update information, and send the staged page update information to a preset proportion of clients to update the page controlled by the navigation bar.
10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method, equipment and system for updating and pushing navigation bar
CN103246529A
Target page navigation method and apparatus
CN107092652A
A method and terminal for updating a user interface
CN109343903A
Application release method and device, computer device and storage medium
CN109558162A
Method and system for efficient execution and rendering of client / server interactive applications
US20080104025A1
