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