Open the app store connection in WeChat, appstore

Source: Internet
Author: User

Open the app store connection, appstore
The browser does not support opening the App Store page. For example, if you write <a href = "http://itunes.apple.com/us/app/id867985717"> download the number </a> on your page, clicking the link in the browser does not respond, but if it is another link address, for example, Baidu has no problem.

Function viewSource () {var redirectUrl = sourceurl. indexOf (': //') <0? 'Http: // '+ sourceurl: sourceurl; // redirectUrl = http://itunes.apple.com/us/app/id399608199redirectUrl = 'HTTP: //' + location. host + '/mp/redirect? Url = '+ encodeURIComponent (sourceurl); // here is the key, redirectUrl = http://mp.weixin.qq.com/mp/redirect? Url = http % 3A % 2F % 2Fitunes.apple.com % 2Fus % 2 Fapp % 2Fid399608199% 23 rdvar opt = {url: '/mp/advertisement_report' + location. search + '& report_type = 3 & action_type = 0 & url =' + encodeURIComponent (sourceurl) + '& uin =' + uin + '& key =' + key + '& __ biz =' + biz + '& r =' + Math. random (), type: 'get', async :! 1}; return tid? Opt. success = function (res) {try {res = eval ('+ res +');} catch (e) {res = {};} res & res. ret = 0? Location. href = redirectUrl: viewSource ();}: (opt. timeout = 2000, opt. complete = function () {location. href = redirectUrl;}), ajax (opt ),! 1 ;}
After editing in the background, the real url of the above Code is: http://mp.weixin.qq.com/mp/redirect? Url = http % 3A % 2F % 2Fitunes.apple.com % 2Fus % 2 Fapp % 2Fid399608199% 23rd. In this way, you can open the webpage under the host mp.weixin.qq.com, and then open the real page with js. With this principle, write the Page code as: <a href = "http://mp.weixin.qq.com/mp/redirect? Url = http % 3A % 2F % 2Fitunes.apple.com % 2Fus % 2 Fapp % 2Fid867985717% 23rd "> download the Code </a> and open the app store address in the browser. 

How to connect to appstore after ios sharing

The latest version limits this.

The official intention is to crack down on third parties to promote their own products.

From the perspective of programs. It does not block the App Store, nor is it incompatible with IOS7. The reason is that Versions later than 5.0 have changed the connection address processing of WebView (that is, the page that opens the webpage, including the webpage shared by the circle of friends and the webpage with the email content. Previously, engineers can jump to their own applications through custom scheme. Currently, only http (or other unknown scheme available to their own applications or partners) can jump directly. So. Currently, most applications are redirected to their own website through http, and then to the application through website JS (or other actions.

The iPhone 4 cannot access the App Store, prompting that it can be accessed until it cannot connect to the iTunes Store. It can also be normally accessed from the App Store.

I tried to shut down and restart my cousin.

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.