2016-08-24 21 views
2

電話號碼,我在HTML有這樣的代碼在config.xml中獲得淨:: ERR_UNKNOWN_URL_SCHEME同時呼籲與離子

<content src="index.html"/> 
<access origin="*"/> 
<allow-navigation href="tel:*" /> 
<allow-intent href="tel:*"/> 
<allow-intent href="mailto:*"/> 
<allow-intent href="http://*/*"/> 
<allow-navigation href="tel:*"/> 
<allow-navigation href="http://*/*"/> 
<allow-navigation href="https://*/*"/> 
<access origin="mailto:*" launch-external="true" /> 
<access origin="tel:*" launch-external="true" /> 

此:

<a ng-href="tel:{{item.phone}}"><h3>Anrufen</h3></a> 

item.phone返回0331234567

index.html:

<meta name="format-detection" content="telephone=yes"> 

我的錯誤是什麼?

回答

5
<content src="index.html"/> 
<access origin="*"/> 
<access origin="mailto:*" launch-external="true" /> 
<access origin="tel:*" launch-external="true" /> 

保留這些。移除他人。

這兩個原因網:: ERR_UNKNOWN_URL_SCHEME問題:

<allow-navigation href="tel:*" /> 
<allow-intent href="tel:*"/> 
+0

您好我這樣做,它刪除了錯誤,但iphone電話不工作了。 –

+0

http://stackoverflow.com/questions/40145087/ionic-1-making-calls-on-android-ios –

+0

要詩讚:你需要把他們的iOS課裏面。 <平臺名稱= 「IOS」> <允許導航HREF = 「電話:*」/> <允許意圖HREF = 「電話:*」/> .... –