Hello, I have a contact page in my app with phone numbers and email addresses that I want the user to be able to tap and either open the phone dialer or their email application. Under PhoneGap build I used the whitelist plugin to allow this. I am basically using the same setup here, but updated for the latest cordova-plugin-whitelist plugin. This works fine under android, but not at all under iOS. Tapping the URLs doesn’t respond at all.
Here’s sample URL code from the .html page: <a>href="tel:8004269794">(800) 426-9794</a> <a>href="mailto:mailbox@mycompany.com?subject=SubjectText&body=BodyText" data-rel='external'>mailbox@mycompany.com</a>
Here are a couple different CSP’s I’ve tried with the same results: <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
So after a bunch of googling I was able to figure out how to remote debug iOS from chrome. The console shows an error “GET tel:8001234567 unsupported URL”
Simulate has saved me untold hours in the iterative development process. It doesn’t do everything testing your app on a real device or Safari remote console can, but it gets you 95% there. Your app runs in the Chrome browser, so you have access to the Inspector and JS console and everything you might need.