Android WeChat browser evokes the system's internal browser

Android WeChat browser evokes the system's internal browser
 Recently, because of the company's project requirements, a function was needed. Use the WeChat browser to open the AutoNavi map navigation. After testing, AutoNavi's web terminal has no navigation function. The implementation principle is to activate the AutoNavi APP to realize the navigation operation. Then write the code into the WeChat browser. When you click on the navigation, because WeChat blocks the function of pulling up other applications, only a few whitelisted applications can implement it. Then it is quite troublesome to use navigation, various jumps. Finally found that all built-in browsers can evoke AutoNavi APP. Therefore, study how WeChat browser can switch the built-in browser. The solution is as follows.
After research, WeChat's default operation for .doc and other files is to browse and download other browsers. So use mvc to judge whether it is a WeChat browser in User-Agent, and if so, return the download address of a doc file. If not, provide default processing.

Guess you like

Origin blog.csdn.net/zhengjian1996/article/details/112941805