- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When working with Cordova directly, i.e. not through XDK, you can modify the Whitelist to include protocols such as:
<a href="tel:+1555444444>Call</a>
This makes it possible to dial a number from within a Cordova app, and is necessary due to this:
For a Stackoverflow post on the same issue, see this:
I tried adding the white listing option directly to the: intelxdk.config.additions.xml like so:
<access origin="tel:*" launch-external="yes"/> <access origin="mailto:*" launch-external="yes"/>
It has no effect though. How do I do this using XDK?
Thanks!
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is domain whitelisting feature in the build settings section of the Projects page. You can specify tel and mailto in Domain list.
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Swati,
Thank you for responding, I've entered this in the Domain List, each on its own:
<access origin="tel:*" launch-external="yes"/> <access origin="mailto:*" launch-external="yes"/>
I also checked the "Allow external applications to launch from this domain" box, and refreshed the instance, but I'm still not getting it to dial.
What am I doing wrong? This is such a common setting, there must be an easy way to do this.
Regards,
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Setting the whitelist options for tel: and mailto: does not work for me.
Anyone else with the same issue? I'll have to abandon XDK if this doesn't work.
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Simsam,
I tried including your line of code along with an email example. With the whitelist entries listed in your image, it worked fine for me in the emulator. Can you create a new application with just these two lines of code and the whitelist entries and see if it works?
<body> <a href="tel:+1555444444">Call</a> <a href="mailto:html5tools@intel.com">Email</a> </body>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anusha,
Thank you for your reply.
I had actually created a fresh project previously, but still experienced the same problem. Just to be thorough, I created yet another test project, using the HTML5+Cordova template.
Using the "Run on USB Connected Devices" did not work, however, building the test app and downloading it, worked! The real app still does not work with either option.
I'll work off a new fresh template, bring over all the code of the real app, and see if that works.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page