8

I have a standard html tag:

<a href="tel:08435034853"...

While IOS and some android devices are triggering call, others like nexus7/android4.4 are displaying popup with action buttons: Close / Add to contacts

Couldn't actually find anything about it, is it how new android works?

Does anyone know is it possible to force a call on all android devices?

bios
  • 243
  • 1
  • 4
  • 17
  • If multiple apps register to handle the "tel" content URI, then Android will prompt the user which app/action they want to use to handle the "tel" link. There is no way around this. – Jeffrey Mixon May 13 '15 at 22:25
  • try to achieve it via a plugin https://github.com/Rohfosho/CordovaCallNumberPlugin using not the `href` but the `on-click` – Clawish May 13 '15 at 23:25

2 Answers2

4

First of all, you might want to check out this thread too on this topic. It has some potential tips which might work on some exceptional devices.

Furthermore: not all Android devices are capable of voice calling. E.g. I'm pretty sure that the Nexus 7 that you're mentioning is not. In such cases it's a sensible alternative to offer the user to add the number to the contacts instead. Isn't it possible that your problematic devices simply lack the voice calling feature?

Community
  • 1
  • 1
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
  • I don't see a difference. Are you suggesting not having the phone number as the text of the anchor? – Kolby May 13 '15 at 22:10
  • Yes, that's the idea, it's worth a try. And as a sidenote: you mentioned that one of the problematic devices was a Nexus 7. Are you sure that that device supports voice calling at all? I might have missed something but I'm pretty sure it does not, so a sensible action would be to add that number to the contacts instead. – Zsombor Erdődy-Nagy May 13 '15 at 22:42
  • I'm not the OP. I'm testing on a Samsung Galaxy running Android 4.4. You make a good point though, this tablet doesn't support voice calls, so it makes sense that it doesn't have an option to call. Maybe make a new answer and I'll give you the bounty. I can't give it for this answer. – Kolby May 13 '15 at 23:13
  • Edited this answer instead to reduce clutter. – Zsombor Erdődy-Nagy May 13 '15 at 23:22
-1

Create one javascript function and add the following code:

function makeCall(contactNo) {
    document.location.href = 'tel:' + contactNo;
}

And this is working fine in android 4.4

Hardy
  • 542
  • 4
  • 10