首页> 外国专利> METHOD AND APPARATUS FOR REALIZING COMMUNICATION BETWEEN WEB PAGE AND NATIVE APPLICATION, AND ELECTRONIC DEVICE

METHOD AND APPARATUS FOR REALIZING COMMUNICATION BETWEEN WEB PAGE AND NATIVE APPLICATION, AND ELECTRONIC DEVICE

机译:用于实现网页与本地应用之间的通信以及电子设备的方法和装置

摘要

A method and an apparatus for realizing communication between a web page and a native application, and an electronic device are provided. The method includes: receiving a first response that is returned by a web server in response to a web page access request initiated by a user (S101); when the first response includes an identifier, a download link, and version information of an application, selecting a port number from a registered port set and initiating, to a local server located on a local terminal, an access request carrying the port number (S102); when receiving a second response, which carries a name and version information of a native application, returned by the local server, determining, according to names, whether the native application in the second response is the same as the application in the first response (S103); and if the native application in the second response and the application in the first response are the same, adjusting an operation prompt of the download link of the application according to the version information of the native application and the version information of the application in a process of rendering a web page based on the first response (S104). Embodiments of this application realize communication between a web page and a native application, and improve user experience.
机译:提供一种用于实现网页与本地应用之间的通信的方法和装置以及电子设备。该方法包括:接收由网络服务器响应于用户发起的网页访问请求而返回的第一响应(S101);以及当第一响应中包含应用程序的标识,下载链接和版本信息时,从注册的端口集中选择端口号,并向本地终端上的本地服务器发起携带该端口号的访问请求(S102) );当接收到本地服务器返回的第二响应中携带本地应用的名称和版本信息的第二响应时,根据名称确定第二响应中的本地应用是否与第一响应中的应用相同(S103) );如果第二响应中的本地应用程序与第一响应中的应用程序相同,则根据本地应用程序的版本信息和应用程序的版本信息调整应用程序的下载链接的操作提示。基于第一响应呈现网页的过程(S104)。本申请的实施例实现了网页和本机应用之间的通信,并改善了用户体验。

著录项

  • 公开/公告号EP3518109A1

    专利类型

  • 公开/公告日2019-07-31

    原文格式PDF

  • 申请/专利权人 ALIBABA GROUP HOLDING LIMITED;

    申请/专利号EP20170850242

  • 发明设计人 WANG WEI;

    申请日2017-09-11

  • 分类号G06F9/54;

  • 国家 EP

  • 入库时间 2022-08-21 12:27:24

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号