1

i am trying to dial a phone call on link, for that i used "tel" tag, its giving error that protocol not supported, i used following in HTML.

<a href='tel:9761111769'>+91 9761111769</a> not working.

i have used required meta tag

<meta name="format-detection" content="telephone=no" />

also have added following permissions in manifest.xml file.

<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 

and following code in config.xml

<access origin="*"/>
<access origin="tel:*" launch-external="true"/>

i trying to changes in syntax and implementing some solutions from web but its not working.... please tell me what thing i have to check in my code or any changes in existing code..Thanks

anand kulkarni
  • 156
  • 1
  • 12
  • 1
    i not using java here only html and jquery and javascript. – anand kulkarni Jun 08 '15 at 11:59
  • we are using the same thing in our app but we have and Android Feature . Inside the Android Project we have a PhoneDialer.java which contains a function to call the "tel" protocol with number specified. However I can't answer your question which seems this feature is disabled – Sami Jun 08 '15 at 16:56
  • we also have another App in android and same thing are working fine there... but now we want it in worklight environment... – anand kulkarni Jun 09 '15 at 05:03
  • Yes we are using Worklight too to develop our application. As I mentioned, we have added A feature in config.xml as in my pervious comment and Inside Android nativeResources folder > src > ca > company > AppName, we created a Java file called "PhoneDialer.java" which has a definition of how the "tel" protocol will use the Phone number provided and access the Phone dialer. – Sami Jun 09 '15 at 11:16
  • The code above is showing single quotes rather than double quotes. – BillyNair Jul 28 '15 at 22:35
  • @BillyNair yes because i am using html string "+919761111769" like this – anand kulkarni Aug 01 '15 at 05:30
  • HTML uses double quotes for strings. If you are using PHP you will want to do something like this ```$link = '+919761111769';``` where the HTML double quotes will be printed to the browser – BillyNair Aug 01 '15 at 20:50

0 Answers0