Ich habe dieseWarum tel: * Links funktionieren nicht auf iOS?
<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" />
Und dies index.html config.xml:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Wenn ich auf einen Link wie das bin klicken: <a href="tel:+1234567">Call!</a>
nichts auf den ios geschieht (auf der Android funktioniert gut).
Wenn ich meine config.xml ändern:
<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" />
Er fordert, aber Ajax-Anfragen an den Server aufhören zu arbeiten.
Funktioniert es, wenn Sie 'tel verwenden: //' statt 'tel:'? – Hodson
Ja, sollte nur 'tel: + 15555555555' sein. Keine Schrägstriche. – johnborges
Konnten Sie dieses Problem lösen? – Eyad