码迷,mamicode.com
首页 > 移动开发 > 详细

ios8唤不起APP的问题

时间:2017-07-06 11:18:34      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:geturl   pen   location   去掉   doc   cti   add   remove   tee   

 

https://stackoverflow.com/questions/27526966/ios-8-window-location-href-doesnt-work-with-url-scheme

ios8下去掉href:

        var appUrl = tid ? "cehomeapp://threadDetailPage?tid=" + tid : "cehomeapp://";

        var sendObjectMessage = function(url) {
            var iframe = document.createElement(‘iframe‘);
            iframe.setAttribute(‘src‘, url);
            document.documentElement.appendChild(iframe);
            iframe.parentNode.removeChild(iframe);
            iframe = null;
        }

        sendObjectMessage(appUrl);

        setTimeout(function(){
            $(".openAppLoading").addClass("hide");
            var targetUrl = "https://itunes.apple.com/cn/app/tie-jia-lun-tan-tie-jia-gong/id989144923?mt=8";

            window.location = targetUrl;

        }, 2000);

 

ios8唤不起APP的问题

标签:geturl   pen   location   去掉   doc   cti   add   remove   tee   

原文地址:http://www.cnblogs.com/dongruiha/p/7125114.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!