Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从facebook打开应用程序';ios 8.4中的s本机应用程序_Ios_Objective C_Facebook_Url Scheme - Fatal编程技术网

如何从facebook打开应用程序';ios 8.4中的s本机应用程序

如何从facebook打开应用程序';ios 8.4中的s本机应用程序,ios,objective-c,facebook,url-scheme,Ios,Objective C,Facebook,Url Scheme,我在facebook和twitter上发布了一些带有URL的内容。当我们点击facebook上的URL时,它会使用和打开我的应用程序 我在我的应用程序中使用并创建了iOS自定义URL方案,以便使用URL从不同的本机应用程序或浏览器打开它 当我在iOS 7.2中从safari和facebook的本机应用程序中试用时,它工作正常 请注意:不幸的是,只有当我试图从iOS 8.4的facebook本机应用程序中打开它时,它才起作用 我不确定这是facebook的应用程序版本还是iOS版本的问题 请给出你

我在facebook和twitter上发布了一些带有URL的内容。当我们点击facebook上的URL时,它会使用和打开我的应用程序

我在我的应用程序中使用并创建了iOS自定义URL方案,以便使用URL从不同的本机应用程序或浏览器打开它

当我在iOS 7.2中从safari和facebook的本机应用程序中试用时,它工作正常

请注意:不幸的是,只有当我试图从iOS 8.4的facebook本机应用程序中打开它时,它才起作用

我不确定这是facebook的应用程序版本还是iOS版本的问题

请给出你有价值的建议

var IS_IPAD = navigator.userAgent.match(/iPad/i) != null, 
IS_IPHONE = !IS_IPAD && ((navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)),
IS_IOS = IS_IPAD || IS_IPHONE,
IS_ANDROID = !IS_IOS && navigator.userAgent.match(/android/i) != null,
IS_MOBILE = IS_IOS || IS_ANDROID;

 if (IS_IOS) {
     window.location = "myapp://view?id=123";
     setTimeout(function() {
         // If the user is still here, open the App Store
         if (!document.webkitHidden) {
            // Replace the Apple ID following '/id'
            window.location = 'http://itunes.apple.com/app/id1234567';
         }
     }, 25);
 }