This is the mobile redirect script I use. For some reason it does not redirect Safari for the iPhone. I added in |safari| just as you see |blackberry| but it redirects Google Chrome, even on a computer. Does anyone have any advice to get Safari to work on this code or a seperate code that works independantly on Safari that I could add in?
<script type="text/javascript">// <![CDATA[
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {document.location = "http://www.grossmag.com/mobi";}
// ]]></script>
The redirect worked. It was the site I was working on that was causing the issue. It was built in Joomla 2.5 and had a built in redirect for iPhones and was never getting to my redirect. I uninstalled the Joomla mobile plugin and it allowed users to be redirected to the mobile site I had built.
Related
It was working before as it should be: Clicking on my website url from facebook native app (shared post) redirects to the App store when my native app is not installed. If my native app is installed, it opens the url in my app.
I have all the required meta as well as this one:
<meta property="al:web:should_fallback" content="false" />
Suddenly, redirecting to the app store when my native app is not installed stopped working.
Does Facebook no longer support al:web:should_fallback meta tag?
Everything was working fine!
I want to let you know that the issue is now fixed. It was a bug on Facebook object platform. I submitted a bug report on the Facebook bug tracker and they reproduced the problem and fixed it.
I'm currently experiencing an issue with links in an iframe. This links have multiple redirects (ads links).
The iframe is usually placed in a domain that is different from mine. When a user with an iphone (using safari) lands on this page and clicks one of the link I provide, it's redirected to a blank page.
This does not happen with chrome or firefox, but only with safari and only with iphones. With chrome and firefox the user is redirected to the correct page.
Moreover, and this is really weird, if on safari I press the link and do one of the following options, "Open" or "Open in a new tab", the redirect works perfectly.
There is some policy in safari that blocks the redirects? both sites are under ssl?
This is how I render links:
Thank you very much!
I have a facebook app built using iframe. It works ok on most modern browsers except Safari on Windows platform. On Safari windows platform, the cookies seem to get lost as a user move from initial form page to 2nd page with questions.
Here is the live link
http://on.fb.me/1hCfgOX
Can someone help me on how to fix this?
Ok, i found a fix for it which works perfectly. Checkout the following links:
Safari 3rd party cookie iframe trick no longer working?
Facebook Iframe App with multiple pages in Safari Session Variables not persisting
And
http://lightyearsoftware.com/2009/11/on-the-pain-of-developing-for-facebook/
I hope this will fix your issue also, as it fixed mine. If you got any problem, let me know.
Thank you
besides header, you might also need to add w3c/p3p.xml and w3c/policy.p3p files to your website. See here for more details and sample files: Session null in IFrame in ASP.net MVC only in safari browser
I noticed that when I type Path.com in mobile safari on my iphone, it redirects me to the app store. And when I'm using my desktop browser (safari, as well), it just goes to the path.com website. I'd like to do this for my site. What do I need to do? Thanks!
you can try this:
<script language=”javascript” type=”text/javascript”>
window.location.href="myURL.com"</script>
I just found the IUI project on google code where you can build websites that look like iPhone apps.
I have an asp.net MVC website already built. When a user clicks on my website from an iPhone, i want to redirect them to another page that is targeted to the iPhone.
how can i do this detection and redirection?
Check for the User Agent. ie the javascript way.
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
if (document.cookie.indexOf("iphone_redirect=false") == -1) window.location = "http://m.url.com";
}
Or do it in .net with something like Mobile Device Browser File.