With that in place, you could wrap the link in context-aware code: Currently, the only reliable method is device detection, via a system like WURFL or PHP mobile detect. You can’t use connection type or screen size to determine if your site is communicating to a mobile phone with any kind of predictability. (iOS, for instance, will take a phone number after the sms: protocol, but will ignore everything – including the number – if body text is included). There are two major problems with creating such links on web pages: they’re only appropriate for mobile systems, and different platforms will accept some sms: formats and ignore others. It’s worth pointing out that a sent SMS message will share the user’s phone number the site’s use of this information should be addressed in a separate privacy statement. The number is in a fictional Hollywood movie area code, so it won’t actually send a message to anyone. If you’re on a supported mobile platform, you can try clicking this link: Send a SMS. Some systems (Android, Symbian, webOS) don’t allow a number, to avoid potentially expensive overages on international messages.įinally, a precomposed (and percent encoded) message can be included in the link, at least for some systems: On many systems, you can take this further: On most mobile phones, clicking this link will prompt an open message, without any destination number. The basic format of the link is very simple: Few developers are aware that it’s also possible to initiate a phone call from a web page using tel:, and almost no-one is aware that you can do the same thing with SMS messages. While tags are most often used to link pages, most developers are aware that they can prompt an eMail by using the mailto: protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |