UIWebView email hyperlink is not working on device - html

I am displaying a HTML page in my iPhone app. The HTML page has few Email addresses. In Mac desktop browser, if the same HTML page is opened and if i click on email address, MAC machines mailbox is opened to compose a new email. Whereas in iPhone, on clicking the email address it is trying to load the webView thinking it as a link.
How come it is working on MAC browser and not in iPhone app.
Source in HTML is :
customerinfo#mycompany.com
If i try to handle using MFMailControlViewController, it works. But my real question is, how come MAC desktop launching mail box and iPhone doesn't.
Thanks
Jithen

Go to interface builder to Web View settings. You need to enable Addresses and Links detection.
or
in the code:
webView.dataDetectorTypes = UIDataDetectorTypeAll;

Related

exporting .vcf contact in mobile web app capable aka HomeScreen app

I suspect this must be intentional on Apples part but I will ask anyway because it works from both mobile and desktop safari.
I create a simple .vcf contact from inside my web app and try to download (aka export) it.
This creates a .vcf file in desktop Safari that is actually downloaded where the user actually has to click that to get it into contacts. And in the mobile safari version (without saving to home screen), the exact same code will pop up a warning screen mobile .vcf warning which at least gives the user the opportunity to import the .vcf into contacts.
Admittedly neither the desktop or mobile safari use case it a good user experience but at least they work.
Whereas, the exact same code saved as a homescreen mobile app simply fails without error on an iphone (i.e
)
I have tried multiple ways to export from the app (most of which work from safari mobile or desktop browsers if NOT web app capable)
as a blob from base64 text/vcard
as base64 text/vcard
using window.open(vcftxt); // where vcftext is base64 text/vcard
using location.href = vcftxt; // where vcftext is base64 text/vcard
using an a tag with download= and href= vcftxt url
All the above work..just not in a homescreen app that appears native
code example (run on iphone safari...not tested on android)
https://www.airbridgelabs.com/s/0/app3.html?sd=100 - Click on contacts logo at the bottom when this page opens in safari and you will see the warning which still allows the user to open the .vcf in contacts
https://www.airbridgelabs.com/s/0/app3.html?sd=100&tm2=100 - This will walk you thru saving to home screen or you can simply save to home screen manually without the tm2 parm. click on the contacts logo at the bottom when this page opens in safari and you will see nothing. Safari developer remote console shows no errors or warnings...simply does not work.
I figure I can probably pass the created .vcf to a page on my server which in turn opens the .vcf which will likely then export it to mobile contacts..but that is a lame solution which still requires the user to be online to save an embedded contact.
And please don't use the argument that this is about security. If it was about security then you wouldn't be allowed to do the exact same thing from a desktop page, or mobile safari page or hybrid native app...and you can. This looks like Apple simply reducing the value of mobile web apps that look native.
What I am looking for is an offline work around to simply save a mobile contact already coded into the mobile web app capable content the user intentionally created.

mailto: for gmail etc from mobile device for angularjs web based application

I am working on an responsive web application where it is required to send mail,on browser if I am trying to do so it opens outlook using mailto: option,but it mobile it's not performing any operation as outlook is not available,what are the options to send mail via gmail or something when I open webpage on mobile device.
Kindly suggest

The tel URI for Telephone Numbers in mobile mail services (Gmail,Yahoo Mail, Thunderbird etc.)

I have created a web page with a tel scheme link, this links works fine when the web page is opened in the mobile browser.
I want to send this webpage as a mail body like a e-mailer, using emailtheweb.com where it captures the webpage and sends it as the webpage in e-mail body.
When i open the mail in my gmail app on android or ios and click the link created with the tel scheme functionality it wont work. Rather it redirects me to the link in a web browser of mobile example: www.xyz.com/tel:+000000000
Is there a way to achieve this functionality? Where after clicking the link in the gmail app it can call the number?
Thanks in advance. :)

Windows phone 8 Webbrowser links are not clickable

I'm learning windows phone app development. I took yahoo mail site as sample and using it in the web browser control. I want to understand what settings I need to unable in web browser control to look the web page in web browser control as same as how that shows in Internet explorer on Windows phone. Here the screen shots what I see now
In the windows phone browser it looks like below -
Thing I'm missing here in my app is, I cannot see the 'Search mail' text in the search text box in my app.
The most IMPORTANT thing is that when I click the mail item in the app nothing happens. But in Internet explorer it actually opens the mail body.
Please guide me.
That probably caused by some functionality of the web page implemented using javascript. Therefore, try to set IsScriptEnabled property to true :
<WebBrowser IsScriptEnabled="True" .../>
That will enable javascript in the webbrowser control which is disabled by default.

Open link in mobile browser(safari) instead of Facebook native browser (html base)

Im developing a web with facebook share link function. I notice facebook mobile apps will open shared link in its own browser, instead of mobile broswer (IE. safari, chrome and so on). Is there any control on this able us to force facebook open the link in mobile browser?
No. The only reliable workaround is if you use the web app with an iOS app, and all users install that iOS app, you can send users to your iOS app to accomplish that task which isn't a great workaround.
An easier but still not optimal solution would be to detect the Facebook browser in the user-agent string, and display a message to prompt users to visit the URL in the mobile browser.