JavaScript-how Web pages notify IOS and Android apps to jump to the corresponding interface

Source: Internet
Author: User
That's about it. Open a third-party draw page in the app and then win the award the place can only fill in a link to my own page should also be open in the app and how to close the page and then notify the app to go to the interface? To the keyword or implementation method is OK. Help

Reply content:

That's about it. Open a third-party draw page in the app and then win the award the place can only fill in a link to my own page should also be open in the app and how to close the page and then notify the app to go to the interface? To the keyword or implementation method is OK. Help

The practice is to set up a response protocol in the app, preferably a different http one, such as arbitrarily define a abc protocol listener, when the Web page link abc://xxx , the system will automatically open the app and the address to the app processing, the app can identify the parameters in the address to do the corresponding operation.

Generally speaking, this page also need to make a protection page, that is, when the user does not install the app or the browser does not support (the third-party browser may not support the situation) to give the user a reasonable hint, rather than close this page.

Keywords: Web Open app has a lot of relevant technical tutorials

If I were, I would intercept in the shouldoverrideurlloading of Webviewclient.

  • 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.