Dynamo

3 replies to this thread. Most Recent

Todd

2 Feb 2016, 6:16 pm

"tel" and "callto"

I’m looking for a way to serve the appropriate protocol depending on the device: “tel” for mobile and “callto” for desktop (i.e., telephony services like Skype etc.).

I tried

<a href="<? echo ($detect->isMobile()) ? 'tel' : 'callto'; ?> :+1-555-555-1212”>555-555-1212</a>

but I’m having trouble with it. Not sure why.

Todd

DeltaDave

2 Feb 2016, 8:24 pm

Do you need to go to those lengths?

My understanding is that if you use tel: then desktops will

“Desktop browsers that don’t support voice calls will open the default telephony app on the computer”

According to Google Developers.

D

Glasgow, Scotland

iMac 27 5K El Cap and Pro Final

DeltaDave

2 Feb 2016, 8:25 pm

Sorry - should ave provide a link.

https://developers.google.com/web/fundamentals/native-hardware/click-to-call/?hl=en

Glasgow, Scotland

iMac 27 5K El Cap and Pro Final

Back to Top

Todd

2 Feb 2016, 8:32 pm

Oh, I wasn’t aware of that. Makes things easier.

Thanks.