Javascript Android firefox版本25及更高版本不能重定向到任何地方?
自定义URL重定向在android firefox最新版本25及更高版本中不起作用 如果设备已安装Facebook应用程序,则转到应用程序Url。如果没有,则转到网站Url 现在它不能在Android最新的firefox浏览器中重定向到任何地方 它适用于firefox的旧版本,但不适用于最新版本25及更高版本 感谢您对如何解决此问题的意见 演示:Javascript Android firefox版本25及更高版本不能重定向到任何地方?,javascript,android,jquery,firefox,deep-linking,Javascript,Android,Jquery,Firefox,Deep Linking,自定义URL重定向在android firefox最新版本25及更高版本中不起作用 如果设备已安装Facebook应用程序,则转到应用程序Url。如果没有,则转到网站Url 现在它不能在Android最新的firefox浏览器中重定向到任何地方 它适用于firefox的旧版本,但不适用于最新版本25及更高版本 感谢您对如何解决此问题的意见 演示: 您的代码在我的android手机的Firefox28中运行良好。它打开了我的fb应用程序。 请重新安装firefox并再次检查 if (Android
您的代码在我的android手机的Firefox28中运行良好。它打开了我的fb应用程序。 请重新安装firefox并再次检查
if (Android)
{
// this is a mobile app url
window.location.href = "fb://";
var startTime = new Date();
setTimeout(function ()
{
// Wait for 500msec
if (new Date() - startTime < 700)
{
// If we are unable to re-direct to mobile application go to website instead
if (window.location.href != "http://facebook.com")
{
window.location.href = "http://facebook.com";
}
}
else
{
goBack();
}
}, 500);