N
N
nuclear_kote2016-07-08 18:36:24
Apache Cordova
nuclear_kote, 2016-07-08 18:36:24

Why doesn't the call to the phone work from the cordova application?

I wrote this in config.xml:

<access origin="*"/>
  <access origin="tel:*" launch-external="yes"/>
  <access origin="mailto:*" launch-external="yes"/>
  <allow-intent href="*"/>
  <allow-navigation href="*"/>
  <allow-navigation href="tel:*"/>
  <allow-navigation href="mailto:*"/>
  <allow-navigation href="data:*"/>
  <plugin name="cordova-plugin-whitelist" version="1" />

I wrote this in index.html:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

when you click on the link <a href="tel:+1234567">Call!</a> nothing happens on ios (everything works on android)
if <access origin="*"/> change to
<access origin="http://*/*"/> 
  <access origin="http://*/*"/>

ajax requests stop working, but starts calling (although it does not ask a standard call confirmation question)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-07-08
@nuclear_kote

<access origin="//*"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question