Terence Eden on Nostr: Here's a knotty #HTML / #JavaScript problem. Is there any way of detecting whether ...
Here's a knotty #HTML / #JavaScript problem.
Is there any way of detecting whether the user-agent is capable of placing a telephone call?
There are some proxies - detecting the OS, or seeing if it a touchscreen, or detecting the NetworkInformation.type. But those are all fairly unreliable.
Is it possible to determine if a device is capable of using <a href="tel:...."> links?
Published at
2023-06-04 14:51:25Event JSON
{
"id": "8423271b84882fa914122a3ec72a5ead669924c361c3e056fecaf70373be86d8",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1685890285,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"t",
"javascript"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110486505737988990"
]
],
"content": "Here's a knotty #HTML / #JavaScript problem.\n\nIs there any way of detecting whether the user-agent is capable of placing a telephone call?\n\nThere are some proxies - detecting the OS, or seeing if it a touchscreen, or detecting the NetworkInformation.type. But those are all fairly unreliable.\n\nIs it possible to determine if a device is capable of using \u003ca href=\"tel:....\"\u003e links?",
"sig": "882222b457692adc446fe51162e2d06824c97c937e487e801868dd3be89e75eaab16872b65606eed3ad44c233900165a1b3539ad1f96ac147823776d0f8c3342"
}