Why can't I download an H5 page embedded in the APP ?, Apph5

Source: Internet
Author: User

Why can't I download an H5 page embedded in the APP ?, Apph5

The H5 page is embedded in the APP. If there is a download link on the page, there is no response. Why?

The reason is that the H5 page embedded in the app is parsed by WebView. What is WebView?

A high-performance webkit kernel browser is built in the Android mobile phone. It is encapsulated as a WebView component in the SDK. WebView Control calls the corresponding WEB page for display. When there is a download link on the page, clicking it does not respond at all. It turns out that WebView does not enable the file download function by default. If you want to implement the file download function, you need to set the WebView DownloadListener to download the file by implementing your own DownloadListener.

Reference: https://www.cnblogs.com/dubo-/p/5582595.html

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.