CN113946387A - APP sharing extension external calling method - Google Patents

APP sharing extension external calling method Download PDF

Info

Publication number
CN113946387A
CN113946387A CN202111014943.6A CN202111014943A CN113946387A CN 113946387 A CN113946387 A CN 113946387A CN 202111014943 A CN202111014943 A CN 202111014943A CN 113946387 A CN113946387 A CN 113946387A
Authority
CN
China
Prior art keywords
app
sharing
activity
calling method
extension external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111014943.6A
Other languages
Chinese (zh)
Inventor
石雄伟
汪利
潘绍士
姚西平
胡小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Rongxiang Digital Technology Holding Co ltd
Original Assignee
Zhejiang Rongxiang Digital Technology Holding Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Rongxiang Digital Technology Holding Co ltd filed Critical Zhejiang Rongxiang Digital Technology Holding Co ltd
Priority to CN202111014943.6A priority Critical patent/CN113946387A/en
Publication of CN113946387A publication Critical patent/CN113946387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of internet, and provides an APP sharing extension external calling method, which comprises the steps of appointing to integrate the same JS-SDK through H5 activity pages corresponding to different companies, and sharing the H5 activity pages by utilizing the sharing function extension function of the SDK; the invention designs a set of sharing method for external calling APP uniformly, which is convenient for web page calling processing; the method avoids the development of the native APP plug-in extension, reduces the development difficulty and shortens the development period; the invention designs an APP and an interface encryption communication scheme based on a platform security check interface, thereby preventing malicious call attack and improving security; the method and the device can facilitate the internal use of the APP and the calling of other activities, and improve the reliability of activity sharing through APP sharing.

Description

APP sharing extension external calling method
Technical Field
The invention relates to the technical field of internet, in particular to an external calling method.
Background
With the development of the internet, more and more interactive communication modes are provided between users, and the users can not only communicate with each other through various application programs in a text and audio mode, but also share resources such as various files and links.
Currently, a user uses an H5 application, and when the H5 application is used, the H5 application can be shared and propagated through a social sharing channel. The social sharing channel is a channel for sharing the page link of the H5 application to other users on a social platform, and the social platform can be an instant messaging platform, a microblog platform, a blog platform, a wechat platform, a QQ platform and the like; for example, chinese patent CN110704131B discloses a method and an apparatus for invoking native applications by HTML5 application, and the method for invoking native applications by HTML5 application includes: detecting a native application in which an HTML5 application is located in response to a start instruction of the HTML5 application; creating an adapter that matches the native application; the adapter is an instance of the JS SDK object provided by the native application; intercepting a call instruction of calling a preset unified entry function by an HTML5 application, calling a first function of an adapter according to the call instruction, calling a JS SDK object through the first function of the adapter, and calling a function of a native application through the JS SDK object; the first function is a function with the same name as the function in the call instruction, and the problems that when the HTML5 application calls the native application, code logic is difficult to reuse, invasion to services is large, and development efficiency is affected are solved; however, the sharing function of the original APP is a native function, the sharing function in the APP cannot be designated by calling the H5 activity page released by a third party, if the sharing function needs to be called, developers of opposite companies need to extend to the API called by web js through the native function, the process is troublesome, and if the sharing function of the APP of multiple cooperative companies needs to be connected, the sharing extension calling function of the H5 activity page is more complicated to process; how to make the sharing function of the APP called by the APP supported by the APP of the company through the activity page of other company H5 reasonable and convenient is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention provides an APP sharing extension external calling method which is characterized in that H5 activity pages corresponding to different companies are agreed to be integrated into the same JS-SDK, and the H5 activity pages are shared out by utilizing the sharing function extension function of the SDK.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention provides an APP sharing extension external calling method, which comprises the following steps:
(1) clicking on the H5 active page to share;
(2) the H5 active page calls the shared HTML5+ API;
(3) the APP checks the matching of the current APP and the parameters shared by the APP active window position and the H5 active page, and if the APP and the active window position are matched with the parameters, the step (4) is carried out; if not, the sharing process is stopped;
(4) the APP requests the platform to check the validity of the calling parameter through the safety check interface, and if the safety check interface returns that the check is successful, the sharing is continued; if the safety check interface returns that the proofreading is inconsistent, the sharing process is stopped;
(5) social software is shared.
Step (3) is judged through corresponding logic in the APP, step (4) comes the check based on the interface of platform safety check interface, and this application carries out dual encryption communication scheme through the interface of APP and HTML5+ platform, prevents to be attacked by malicious call, improves the security.
Preferably, the APP sharing supports sharing to related social APP software such as WeChat and QQ.
Further, the url corresponding to the H5 activity page is configured to the activity display board of the APP, such as the banner location.
And the activity data of the APP advertisement position is configured, input and managed in the APP management background. The recorded data content comprises an activity title, a picture, activity starting time, activity ending time, an APP id of activity display, a position id of corresponding APP display and an activity external link; after the activity url is configured, the activity url is displayed at a corresponding position of the corresponding APP.
Further, the H5 activity page is packaged by adopting JS-SDK technology.
Further, the H5 activity page carries relevant parameters, where the relevant parameters include an activity id, an APP location id of a sharing configuration, an APP id of the sharing configuration, and an activity sharing effective deadline.
Further, the APP is packaged by adopting a JS-SDK technology.
Further, the JS-SDK supports sharing function extension.
Further, the external call is developed based on the capabilities of the HTML5+ specification.
Further, the platform is a proofreading mechanism platform developed based on HTML5 +.
The invention has the following beneficial effects:
(1) the invention designs a set of sharing method for external calling APP uniformly, which is convenient for web page calling processing;
(2) the method avoids the development of the native APP plug-in extension, reduces the development difficulty and shortens the development period;
(3) the invention designs an APP and an interface encryption communication scheme based on a platform security check interface, thereby preventing malicious call attack and improving security;
(4) the method and the device can facilitate the internal use of the APP and the calling of other activities, and improve the reliability of activity sharing through APP sharing.
Drawings
FIG. 1 is a flow chart of a calling method of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention is provided in conjunction with the accompanying drawings, and it should be noted that the embodiments are merely illustrative of the present invention and should not be considered as limiting the invention, and the purpose of the embodiments is to make those skilled in the art better understand and reproduce the technical solutions of the present invention, and the protection scope of the present invention should be subject to the scope defined by the claims.
HyperText markup Language (HTML) is the most widely used extended markup Language for the internet at present, and is also the main Language constituting a web document. HTML5 is the latest version of HTML, compared to the previous version of HTML, HTML5 provides a more reasonable Tag, multimedia objects will no longer be fully bound in object or embedTag, but video Tag and audio Tag; local database support is also provided, which will embed a local SQL database to speed up interactive search, caching and indexing functions. HTML5 also provides a Canvas tag object through which rich animation can be implemented without the need for plug-ins, which would give the browser the ability to draw vector graphics directly on top, meaning that the web page designer can display graphics or animation directly in the browser, away from Flash and Silverlight. HTML5 will also provide Application Program Interfaces (APIs) to enable editing, drag-and-drop, and various graphical user interface capabilities within the browser.
The HTML5Plus specification is an open specification that allows third party browser vendors or other mobile phone runtime manufacturers to implement. The JavaScript object plus is extended, so that js can call various browsers which cannot realize or realize poor system capabilities, equipment capabilities such as a camera, a gyroscope, a file system and the like, and business capabilities such as uploading and downloading, two-dimensional codes, maps, payment, voice input, message pushing and the like.
As shown in fig. 1, the present invention provides an APP sharing extension external calling method, which includes the following steps:
s1, clicking an H5 activity page to share;
the H5 activity page adopts JS-SDK technique to encapsulate, H5 activity page carries relevant parameters, relevant parameters include activity id, share the APP position id of configuration, share the APP id of configuration and the effective deadline of activity sharing.
S2, calling the shared HTML5+ API by the H5 active page;
s3, the APP checks the matching of the current APP and the parameters shared by the APP activity window position and the H5 activity page, and if the current APP and the APP activity window position are matched with the parameters, the step S4 is carried out; if not, the sharing process is stopped;
s4, the APP requests the platform to check the validity of the calling parameter, and if the safety check interface returns that the check is successful, the sharing is continued; if the safety check interface returns that the proofreading is inconsistent, the sharing process is stopped;
and S5, sharing the social software.
Step S3 is judged through corresponding logic in the APP, step S4 checks through the interface of the HTML5+ platform, and the double encryption communication scheme is carried out through the APP and the interface based on the platform safety check interface, so that malicious calling attack is prevented, and safety is improved.
Preferably, the APP sharing supports sharing to related social APP software such as WeChat and QQ.
In some preferred schemes, the url corresponding to the H5 activity page is configured to an activity display board of the APP, such as a banner location.
And the activity data of the APP advertisement position is configured, input and managed in the APP management background. The recorded data content comprises an activity title, a picture, activity starting time, activity ending time, an APP id of activity display, a position id of corresponding APP display and an activity external link; after the activity url is configured, the activity url is displayed at a corresponding position of the corresponding APP.
In some preferred schemes, the APP is packaged by adopting JS-SDK technology.
In some preferred schemes, the JS-SDK supports sharing function extension.
In some preferred embodiments, the external calls are developed based on the capabilities of the HTML5+ specification.
In some preferred embodiments, the platform is a collation mechanism platform developed based on HTML5 +.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.

Claims (8)

  1. The APP sharing extension external calling method is characterized by comprising the following steps:
    (1) clicking on the H5 active page to share;
    (2) the H5 active page calls the shared HTML5+ API;
    (3) the APP checks the matching of the current APP and the parameters shared by the APP active window position and the H5 active page, and if the APP and the active window position are matched with the parameters, the step (4) is carried out; if not, the sharing process is stopped;
    (4) the APP requests the platform to check the validity of the calling parameter through the safety check interface, and if the safety check interface returns that the check is successful, the sharing is continued; if the safety check interface returns that the proofreading is inconsistent, the sharing process is stopped;
    (5) social software is shared.
  2. 2. The APP sharing extension external calling method of claim 1, wherein the url corresponding to the H5 active page is configured to an active display board of the APP.
  3. 3. The APP sharing extension external invocation method according to claim 1, wherein the H5 active page is encapsulated using JS-SDK technology.
  4. 4. The APP sharing extension external calling method of claim 3, wherein the H5 active page carries parameters, the parameters including an activity id, an APP location id of a sharing configuration, an APPid of the sharing configuration, and an activity sharing validity deadline.
  5. 5. The APP sharing extension external calling method of claim 1, wherein the APP is encapsulated using JS-SDK technology.
  6. 6. The APP sharing extension external calling method of claim 3 or 5, wherein the JS-SDK supports sharing function extension.
  7. 7. The APP sharing extension external call method of claim 1, wherein the external call is developed based on capabilities of HTML5+ specification.
  8. 8. The APP sharing extension external calling method of claim 1, wherein the platform is a collation mechanism platform developed based on HTML5 +.
CN202111014943.6A 2021-08-31 2021-08-31 APP sharing extension external calling method Pending CN113946387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111014943.6A CN113946387A (en) 2021-08-31 2021-08-31 APP sharing extension external calling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111014943.6A CN113946387A (en) 2021-08-31 2021-08-31 APP sharing extension external calling method

Publications (1)

Publication Number Publication Date
CN113946387A true CN113946387A (en) 2022-01-18

Family

ID=79327720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111014943.6A Pending CN113946387A (en) 2021-08-31 2021-08-31 APP sharing extension external calling method

Country Status (1)

Country Link
CN (1) CN113946387A (en)

Similar Documents

Publication Publication Date Title
US8458612B2 (en) Application management framework for web applications
US8407584B1 (en) Stable and secure use of content scripts in browser extensions
US8396939B2 (en) Content distribution management device, terminal, program, and content distribution system
CN104765617B (en) Based on the HTML5 stream application functional interface distribution method realized and system
US20090043657A1 (en) System and methods for selecting advertisements based on caller identifier information
CN103873918B (en) Image processing method, device and terminal
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN109240697B (en) Call processing method and device and storage medium
CN111580879A (en) Applet running method and device, electronic equipment and computer storage medium
CN112331235B (en) Multimedia content editing control method and device, electronic equipment and storage medium
KR20070001131A (en) Techniques for modifying the behavior of documents delivered over a computer network
WO2009018277A1 (en) Application management framework for web applications
CN112559928B (en) Page processing method and device based on hybrid development, electronic equipment and storage medium
US20050080880A1 (en) Presenting remote and local information in a web browser
CN103607454B (en) The method that android system browser arranges privately owned proxy server
CN113076294A (en) Information sharing method and device
WO2020073374A1 (en) Advertisement anti-shielding method and device
US10108735B2 (en) System and method of embedded application tags
CN110069247A (en) A kind of development approach and device, application method and device of application program
CN117390326A (en) Page management method, device, equipment and storage medium
EP2188991A1 (en) System and methods for selecting advertisements based on caller identifier information
CN113946387A (en) APP sharing extension external calling method
CN112346774A (en) Method and device for generating application installation package
CN113315829A (en) Client offline H5 page loading method and device, computer equipment and medium
KR102173840B1 (en) Method and device for excuting native features of a mobile device by using a broker

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination