An external browser opens the app's pinned page

Source: Internet
Author: User

Apicloud in main.html

//listening to external browser invoke app
Api.addeventlistener ({name:' Appintent '},function(ret,err) {if(ret) {//alert (json.stringify (ret))    varType =Ret.appParam.type; if(Type = = ' Art ') {//Open Article details    varAID =Ret.appParam.aid; varCID =Ret.appParam.cid; varKid =Ret.appParam.kid; Openarticle (Aid,cid,kid)}Else if(Type = = ' list ') {//open a list of knowledge points articles    varName =Ret.appParam.name; varCID =Ret.appParam.cid; varKid =Ret.appParam.kid; Openlist (Name,cid,kid)}});

Pages in an external browser

function Openapp () {//  window.location.href = ' xinzhiapp://?type=art&aid=906&cid=12&  Kid=17 '; window.location.href = ' xinzhiapp://?type=list&name= new financial &cid=12&kid=17 ';    SetTimeout (function() {      /// if no installation or browser is not supported, jump to the download page       alert (' Jump to download page ')    },   

An external browser opens the app's pinned page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.