I recently added a facebook like button to one of our pages. Everything works fine except ios sees the number of facebook likes, thinks it's a phone number, and turns it into a link.
I've read around and
<meta name = "format-detection" content = "telephone=no">
should disable automatic phone links. The problem is, the like button is added as an iframe so I have no way to insert the above meta tag into the document. Adding it to the containing document does nothing.
Has anyone found a way around this issue?
Related
I am trying to share an URL via iMessage.The problem is when I sent it the URL breaks up into domains & remaining URL and some URL works properly
Link 1
https://www.americanexpress.com/india/mumbai/dmVyc2lvbj0xO3RpdGxlPUludmFsaWRlbnN0cmElQzMlOUZlKzExNDtsYXQ9NTIuNTMwNzQ7bG9uPTEzLjM4NDI2O3N0cmVldD1JbnZhbGlkZW5zdHJhJUMzJTlGZTtob3VzZT0xMTQ7Y2l0eT1CZXJsaW47cG9zdGFsQ29kZT0xMDExNTtjb3VudHJ5PURFVTtkaXN0cmljdD1NaXR0ZTtzdGF0ZUNvZGU9QmVybGluO2NvdW50eT1CZXJsaW47Y2F0ZWdvcnlJZD1idWlsZGluZztzb3VyY2VTeXN0ZW09aW50ZXJuYWw
Link 2
https://www.google.com/india/mumbai/search?q=stackoverflow
Screenshot
As you can see Link 1 breaks into 2, while link 2 is sent properly
Is the link preview broken or am I doing something wrong?
I was not able to find the reason or fix the issue but found a workaround to send links. Send the links in the following manner
<SOME_PREFIX>
In this way, the Link Preview doesn't work and the link can be shared without breaking the text
Eg:
Check this Amex Card:\n
https://www.americanexpress.com/india/mumbai/dmVyc2lvbj0xO3RpdGxlPUludmFsaWRlbnN0cmElQzMlOUZlKzExNDtsYXQ9NTIuNTMwNzQ7bG9uPTEzLjM4NDI2O3N0cmVldD1JbnZhbGlkZW5zdHJhJUMzJTlGZTtob3VzZT0xMTQ7Y2l0eT1CZXJsaW47cG9zdGFsQ29kZT0xMDExNTtjb3VudHJ5PURFVTtkaXN0cmljdD1NaXR0ZTtzdGF0ZUNvZGU9QmVybGluO2NvdW50eT1CZXJsaW47Y2F0ZWdvcnlJZD1idWlsZGluZztzb3VyY2VTeXN0ZW09aW50ZXJuYWw
I'm using the following URL to share the page on Twitter:
https://twitter.com/intent/tweet?text=POST_TITLE&POST_URL&via=akhbar
It works fine with all browsers and mobile devices, except Safari, it opens:
One tab with the previous URL, but adds the following parameter to the end of the URL: &original_referer=POST_URL
A new window (that shows the Tweet composer) with the original share button's URL.
Why does this happen on Safari? And how to avoid this?
I've solved this by changing the Twitter share URL to this:
https://twitter.com/share?url=POST_URL&via=akhbar&text=POST_TITLE
But I've no idea what are the differences between intent and share, and why that was happening with the old URL.
I'm doing a responsive app using meteor and angular, and i have a share link functionality. On desktop it is an input field on read only and the user can copy the link. On mobile I want to do display an link with tag. But on iOS safari doesn't react correctly when I long touch the link. Usually there is a menu of option that are displayed, but here just nothing happen.
my simple code : {{url}}
Thanks in advance to anybody that has an idea about this issue.
Update: I just tried wiht <a ng-href="{{url}}">{{url}}</a> on Firefox android and it work perfectly. The issue is really an iOs case
You should use ng-href={{url}} instead.
My guess is that iOS reads first the {{url}} as it is, and when angular updates it to whatever value is stored in the url variable, it does not pick up the new value.
And because the string {{url}} is not valid url, it does not know how to work with that, so it does nothing.
(I am not iOS developer, but still, you should use ng-href for this)
For long touch/press especially for mobile: Check this angular directive link
I have a strange problem with a website I've developed for one of our clients. What I'll do is bookmark the home page using the "add to homescreen" Safari menu item. I will then browse around for a while and then go back to the phone's home screen, e.g. if someone calls me or I'm checking mail or whatever it is iPhone users do. When I tap the bookmark on the homescreen, I will be taken to the login page. When I log in, I'm taken to the home page as normal, but if I try to navigate anywhere else, the link opens in a new browser instance. I know this because my bookmarked link opens a Safari session in full screen mode, but the new browsed link opens a Safari session with the address bar and other goodies visible. I then have to log in again, but this time everything works fine.
It's only when I use the bookmarked link that it does this weird login thing. THe site works perfectly well on desktops (Mac and PC) as well as Android and Windows Phone 7.x and 8.x devices.
Right, so anyway, the problem was that another developer added the meta-tag <meta name="apple-mobile-web-app-capable" content="yes">. What that does is tell IOS that the webpage supports offline mode. Unfortunately, ours doesn't. I changed the tag to <meta name="apple-mobile-web-app-capable" content="no"> and all was well.
It's not a problem in our case because the meta tag was put there by mistake. We simply needed the meta tag for the nice homescreen icon and the above tag was also in the code snippet.
I am developing my first blackberry app, I have strings.xml where I keep all HTML content I may need to display in some screens. I can successfully display the html content but nothing happen when you click the web links.
For example, I have the following in strings.xml
<![CDATA[Hazcheck systems]]>
When I load the above string into a screen, I see the link as expected, but, nothing happen when I click it.
I tried to remove CDATA tags, but, it didn't help. Any ideas?