- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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!
- Теги:
- HTML5
- Intel® XDK
Ссылка скопирована
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
There is domain whitelisting feature in the build settings section of the Projects page. You can specify tel and mailto in Domain list.
Swati
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Thank you Swati, I've tried it like that as well, see attached file. It is still not launching the dialer and not prompting an email client to use.
The same code works when I put it in Cordova directly, using the same plugins, what else could I be missing here?
Regards,
Sam
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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>
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
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.

- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати