Application for processing the html protocol. How to detect that an application is installed. How to open your TG file
Many modern mobile devices recognizes phone numbers in HTML code well enough, making it interactive so that you can call the number directly - but this doesn't always work!
What happens if mobile browser or the device does not recognize the phone number and will not make a call when you click on it? The number may have been listed in incorrect format or the number is not recognized by this platform, but in any case it is a missed opportunity. TEL: the protocol will allow you to fix this!
Make your phone number interactive
It's very simple: put your phone number in the anchor tag, but instead of the HTTP protocol * (or whatever you usually use in the anchor) use the tel protocol. This way, even if you used an unrecognized template, the device will still know what it needs to do:
To order at home, call:
0953174562564
Now iPhones, Androids and other mobile devices will easily recognize the number and when you click on the link, they will offer to dial this number. But you need to remember the following things:
- It must be remembered that in order to support international numbers you need to add an international code (prefix), so people can call from anywhere in the world.
- If you click on a phone “link” in a browser on a desktop computer, it will bring up the application associated with the phone - Google Voice or Microsoft Communicator, for example.
- You can specify a fax number using fax: protocol
- It is possible to dial with a pause, for example when dialing an extension
Support service:
323-579-8328 ext. 22
Skype
On this moment Skype uses the callto protocol, not tel. In fact, you can simply ignore this and use the tel protocol everywhere, but if you want to specify in the code to use Skype from the browser desktop computer And standard application from mobile device, then in this case PHP and the definition script will help us mobile platform- Mobile Detect:
Call the number
isMobile()) ? "tel" : "callto"; ?> : +1-579-827-0034">579-827-0034
A little mobile SEO
To make search engines understand and index your phone number even better, you can add a little microdata.
Shop
Phone: 850-648-4200Styling phone links
As a side note, let's make our phone look more attractive using CSS. To do this, we'll use a selector targeting only the :before pseudo link element that contains the string tel: within their href attribute:
This little “^” sign means that it is looking for any elements whose href attributes begin with the string tel: . We have also placed here a small Unicode phone icon \260E; , so we don't even need to use WebFont icons or additional images.
On your computer or phone. This service is now gaining momentum online and internet business tycoons are predicting enormous popularity for it. In addition, instant payment for goods will soon be available via Telegram, which will support Bitcoin and Apple Pay. In general, let's keep up with the times and be in trend.
What is the use of Telegram?
There are a number of factors that make it worth using this service. If we go to the reference, Telegram is a cloud based mobile and desktop messaging application with a focus on security and speed. The main thing is Speed and Security, and these are two important factors when working on the network.
You can share any files, including links, photos, archives, and so on. That is, you can send anything you want to both your loved ones and your subscribers. You can even click on the microphone icon and instantly record a message and transmit it immediately. The advantages here are obvious, aren't they?
Also, Telegram will always be free and without intrusive advertising!
And if we talk about telegram as our channel of communication with our subscribers, then this is generally a super service! The open rate of your messages is about 70%; email newsletters will never reach such figures, but Telegram can do this very easily! And if we talk about SPAM, then your messages will arrive directly to your client’s mobile phone or browser application, that is, directly to the computer!
What else can you do with Telegram?
So if you want to be in trend, be sure to install Telegram on your computer and phone. Subscribe to interesting channels and receive quality information instantly. And I will tell you how to do this later in this article.
How to install telegram on a computer or phone?
First of all, you need to go to Telegram official website and choose the platform that suits you. I recommend installing telegram on all your devices in order to always be aware of all events and to synchronize your main devices and have access to channels from any of the devices. Usually this is a smartphone, computer and tablet. Fortunately, you can install this service for absolutely any platform.
How to subscribe to a telegram channel?
To subscribe to a telegram channel, you need to log into your account, find the desired channel and click on the “JOIN CHANNEL” button at the bottom. After this, you will be subscribed to the channel you need.
For example, my channel can be found through a search in telegram under the name @Evgeny_Vergus.
Best regards, Evgeniy Vergus.
The easiest way to understand what a tel tag is is to imagine that when you click a certain link, the required number will be dialed. This means that when you click on a link, the tel protocol will try to dial the number provided. The link looks like this: tel: +35722444032
The first part of the URI link specifies the protocol, and the second part of the link specifies the called number (which can be in either local or international format). The 3CXPhone client is now integrated with the tel tag, providing the greatest functionality for a softphone.
Using 3CXPhone in conjunction with the tel tag
First you need to install 3CXPhone for Windows on your computer, then do some configuration:
1) Find a web site that contains the tel tag. For this example, we will use the site http://www.3cx.com/office/usa-office/. Click on the link containing the phone number.
2) You will see a pop-up window “External Protocol Request”, select the application (3CXPhone for Windows) that will process this link.
3) Select “ Launch Application” to use 3CXPhone for Windows.
4) 3CXPhone for Windows will start dialing the specified number.
Linking the tel tag to 3CXPhone
3CXPhone for Windows will be registered as a handler for the tel protocol automatically during installation. If you find that another application has registered to handle the tel protocol, you can change the registration back to 3CXPhone:
1) Open the Windows Control Panel and go to the “menu” Default programs“.
2) Select from the list “ Mapping file types or protocols to specific programs”.
3) Scroll to select protocols, find TEL, select it and press “ Change program“.
4) Select “ 3CXPhone for Windows” from the list of proposed programs.
You have now set 3CXPhone for Windows to be the default tel tag handler.
Senior Technology Writer
Someone emailed you a TG file and you don't know how to open it? Maybe you found a TG file on your computer and were wondering what it was? Windows may tell you that you cannot open it, or in the worst case, you may encounter a corresponding error message associated with the TG file.
Before you can open a TG file, you need to find out what kind of file the TG file extension is.
Tip: Incorrect TG file association errors can be a symptom of other underlying issues within your Windows operating system. These invalid entries can also produce associated symptoms such as slow Windows startups, computer freezes, and other PC performance issues. Therefore, it is highly recommended that you scan your Windows registry for invalid file associations and other issues related to a fragmented registry.
Answer:
TG files are Compressed Files, which are primarily associated with the TuxGuitar Tablature File (TuxGuitar Team).
TG files are also associated with Test & Go Script (QualiControl), NRC Inspection Manual Technical Guidance and FileViewPro.
Additional types of files may also be using the TG file extension. If you are aware of any other file formats that use the TG file extension, please contact us so we can update our information accordingly.
How to open your TG file:
The fastest and easiest way to open your TG file is to double-click on it. In this case, the Windows system itself will select the necessary program to open your TG file.
In case your TG file does not open, it is very likely that you do not have the required application program installed on your PC to view or edit files with TG extensions.
If your PC opens the TG file, but it's the wrong application, you'll need to change your Windows registry file association settings. In other words, Windows associates TG file extensions with the wrong program.
Install optional products - FileViewPro (Solvusoft) | | | |
TG File Analysis Tool™
Not sure what type the TG file is? Do you want to get precise information about a file, its creator and how it can be opened?
Now you can instantly get all the necessary information about the TG file!
The revolutionary TG File Analysis Tool™ scans, analyzes and reports detailed information about the TG file. Our patent-pending algorithm quickly analyzes the file and provides detailed information within seconds in a clear, easy-to-read format.†
In just a few seconds, you'll know exactly what type of your TG file you have, the application associated with the file, the name of the user who created the file, the file's protection status, and other useful information.
To begin your free file analysis, simply drag and drop your TG file inside the dotted line below, or click "Browse My Computer" and select your file. The TG file analysis report will be shown below, right in the browser window.
Drag the TG file here to start analysis
View my computer »
Please also check my file for viruses
Your file is being analyzed... please wait.
Every link on a mobile website should have a well-known resource attribute, and the most important links on a page (there can be up to 10 of them) can be given an attribute for easy access using a keyboard shortcut on devices that support hotkeys (see .). You should avoid using the attribute except in cases where the site is being developed for smartphones with support for tabs and multi-pages.
Some devices support using focus elements (links, form elements) to change the tab crawl order of elements. But, it is not recommended to change the natural order of this traversal, unless this is a project with a complex design and you need to improve the usability of the site.
On devices with focus navigation (typically low-end and some touch devices with a touchpad or scroll wheel, like the Nexus One or some BlackBerrys), it is important to define all interactive areas. For example, if you want both the title and description to be active at the same time, then you need to use one link tag for both elements, rather than making two separate links on the same page.
New windows
Some browsers understand the target="_blank" attribute (XHTML MP standard), but the behavior varies (Table 6.7). In some browsers, the link simply opens in the same window, others open in a new window or tab (and this option allows the user to switch between windows/tabs) or the URL may open as a pop-up window in which case the user cannot return to the previous page, until it closes a new one.
Browser/Platform | Link in new window |
---|---|
Safari | Opens in a new window (maximum number 8) |
Android browser | Opens in a new window |
Symbian/S60 | Opens in a new window (it is not easy for the user to navigate between windows) |
Nokia Series 40 | Will open in the same window before the 5th edition Opens in a new window in Issue 6 |
webOS | Opens in a new map (OS window) |
BlackBerry | Opens in the same window before OS 6.0 |
NetFront | Opens in the same window |
Openwave (Myriad) | Opens in the same window |
Internet Explorer | Opens in the same window |
Motorola Internet Browser | Opens in the same window |
Opera Mobile | Opens in the same window |
Opera Mini | Opens in a new window from version 5.0 |
Navigation lists
A navigation list is a list of links that are connected in some way and are listed one after the other. It is recommended to use tags when creating such a list
- or
- (for devices where accesskey is not supported). With ordered lists, we get the shortcut key number automatically, but we have to add the accesskey attribute manually:
Links to phone numbers
There are several URL schemes used by many mobile browsers to communicate with certain mobile phone features.
One of them, the Wireless Telephony Application Interface (WTAI) standard, is part of the WAP 1.X standard (developed in the previous century). WTAI libraries are pre-installed on the phone and other applications (such as the browser) can access them. To use these libraries (if they exist, of course), use the syntax wtai://
Call
Remember that most mobile devices are also phones! So why not call a number by clicking on a link? If you are making some kind of business guide or your own unique phone book, then keep in mind that most people prefer to call a specific person rather than fill out a form in the device.
Figure 6.5 demonstrates how link-to-call works on different mobile devices.
Fortunately, there are certain URLs that can help us significantly. The first and almost standard option (copied from Japanese i-Mode standards) involves using the tel scheme:<номер телефона>. This option is called i-Mode mode:
Call us free!
Some devices have the ability to send DTMF tones after the caller has answered. This feature is very useful when calling help desks or voicemails. You can set the link to “call this phone number and after answering, press 2, wait 2 seconds and dial #913.” You can do all this using the postd parameter. The syntax in this case is: ;postd=
Call us free!
Not all mobile devices have this feature, but even if there is no support, it is still possible to call the main phone number. The list of compatible devices for this feature is quite complex and I generally do not recommend relying on it.
When the user activates the call link, a notification is received in response, in which the user is asked to confirm the action (calling the number) and the number is shown in full on the screen (Figure 6.6). This alert is shown to the user to avoid fraud and erroneous calls to premium numbers.
I recommend using the number in the international format: + sign, country code, region (operator) code and the number itself. After all, we don’t know where our user may be, but even if he is in the same country or region as the called subscriber, the international number format will still work.
Rice. 6.6. Nokia and BlackBerry offer call confirmation, and Sony Ericsson's NetFront browser presents the user with a menu offering different ways to interact with this link.
Table 6.8 shows that call link features are not as well supported across platforms as, for example, tel:. There is another way to make a call: using the WTAI standard using the free "wp" library and the "mc" (make call) function:
Call us free!
Also in WTAI, the link can be activated even while making a call, although this feature can only be useful if you are using hands-free mode or a headset. The link includes tones that are sent to the recipient as if the user himself had pressed the required characters on the keyboard, and they are determined using the “sd” (send DTMF tones) function from the “wp” library.
The BlackBerry browser automatically detects phone numbers and email addresses and turns them into links. If you don’t need such a function, you can disable it with a meta tag< http-equiv="x-rim-auto-match" content="none">. Safari has its own meta tag for this case:
iDEN networks (like Nextel) use radio packets to make a call within the network. If your users include subscribers to such networks - for example, they use it for an intranet - then you can provide the user with the ability to make internal calls to other team members (or external calls outside the network) using the Direct Connect URL scheme (dc:
Ping John
In some devices, when you click on the tel: link, the user is given the opportunity to select a call option from a menu - voice or video call (this option is only available on 3G networks). In some Japanese phones, a video call via a link must be made using the tel-av protocol:<номер телефона>.
Table 6.8 shows how voice URI schemes work on different platforms.
Browser/Platform | Support tel: | WTAI support |
---|---|---|
Safari | Yes | No |
Android browser | Yes | Yes |
Symbian/S60 | Yes | Yes |
Nokia Series 40 | Yes | Yes |
webOS | Yes | No |
BlackBerry | Yes | Yes |
NetFront | Yes, for calls and adding to contact manager | |
Openwave (Myriad) | Yes | Yes |
Internet Explorer | ||
Motorola Internet Browser | Yes, for calls, SMS, and adding to contact manager | |
Opera Mobile | Yes | Yes |
Opera Mini | Yes (except Java MIDP 1.0 devices) |
The iPod Touch is a mobile device, but it's not a phone and doesn't have voice calling capabilities. Instead, the user is prompted to add the number to the phone book using the tel: link.
Sending an email
Some modern devices with browsers also have email applications that are capable of responding to the standard web protocol mailto:. Syntax: mailto:
Here are some examples:
Mail us Mail us Mail us
Keep in mind that the mailto: mechanism does not guarantee that the message will be sent. Typically, it simply opens the email application and the user must confirm sending after making further changes. If you really need to send mail, I recommend using a server-based mechanism.
Typically, if we want to insert a new line into the body of an email message, we use a carriage return plus a line return - characters (%0D%0A). This option does not work correctly with the Mail app on iOS, but we can insert HTML tags into the body, so we can use it in the mobile Safari browser:
Mail us This%20is%20a%20new%20line">Mail us from iPhone
Sending SMS
We all love SMS and that's why mobile browsers usually prompt the user to open a link in a new window directly from the message. To implement this feature, we have two possible URI schemes: sms:// and smsto://. Unfortunately, there is no standard way to know which of these schemes will definitely be compatible with the user's browser.
Later (in Chapter 10) we will look at how to discover the sms: and smsto: compatibility protocol from the server and select the appropriate option.
Syntax: sms://[
The destination number must either be in international format or, if it is a short number, we must ensure that the user is in the correct country (not roaming) and connected to a service provider compatible with the short number.
BlackBerry enables direct messaging between two BlackBerry devices on the same network. To create a direct message you can use the PIN URL scheme:
Here are some examples:
Send an SMS Invite a friend by SMS Contact us by SMS More info for producto AA2
Working with MMS
Multimedia Messaging Service (MMS) is a standard way to send a message with multimedia content (images, videos or any other attached content). Symbian devices allow us to use mms URI schemes:
Table 6.9 lists support for messaging features across platforms.
Browser/Platform | Scheme sms:/smsto: | Scheme mms:/mmsto: | mailto scheme: |
---|---|---|---|
Safari | Only sms: and in iPhone (not in iPad/iPod). No body support. | No | Yes |
Android browser | Yes, but there is no support for number or body | Yes | |
Symbian/S60 | SMS only: | mmsto only: | Yes |
Nokia Series 40 | No (you can use mailto: instead) | No | Yes (it can also be used for SMS and MMS) |
webOS | SMS only: | No | Yes |
BlackBerry | No | No | Yes |
NetFront | Yes | Yes | Yes |
Openwave (Myriad) | No | No | Yes |
Internet Explorer | SMS only: | No | Yes |
Motorola Internet Browser | No | No | Yes |
Opera Mobile | Yes | Yes | Yes |
Opera Mini | Depending on device |
To help you develop mobile widgets or offline JavaScript applications, almost every platform has a low-level API for sending and even receiving messages from the application itself. We'll look at these technologies in more detail later (Chapter 12).
Adding a contact to your phone book
It would be nice to offer users to add information about your company (phone number or some other details) to the phone book (contact list). Older WML devices have a WTAI function for this purpose, but newer devices have another, smarter way.
In the WTAI library, "wp" is the function to call, and "ap" (Add to Phonebook) is the function to add to the phone book. The parameters—number and name (optional)—are separated by semicolons. For example:
Add White House to contacts
In the case of modern browsers (those that do not support WTAI, Figure 6.7), the main trick is to create a vCard file (vCard is a standard file format for electronic business cards). If you link to this file, most browsers will send it to the device's Phonebook application and the user will be prompted to add the contact to the phonebook.
Rice. 6.7. We must be careful when using URI schemes on non-compliant devices. The user will not appreciate error messages.
A simple vCard 2.1 file (this version has the best support on mobile devices) will look like this:
BEGIN:VCARD VERSION:2.1 N:Maximiliano;Firtman ORG:O"Reilly Media TITLE:Author TEL;CELL;VOICE:+133MFIRTMAN TEL;WORK;VOICE:+541150320077 END:VCARD
In order for the mobile device to recognize this text file as a valid vCard file, we must send it with the MIME type text/x-vcard. Typically, if the file is static, its extension is .vcf.
For example, we can open the native Facebook iPhone app (if installed) with a list of friends using the URL fb://friends, and if the user has Twitterrific (Twitter client) installed, we can send a message using twitterrific://post? message=
Tweet this on Twitterrific
When passing URL parameters, be aware of proper encoding of spaces and other characters (for example, use %20 for spaces).
How to detect that an application is installed
What happens if a user clicks on a link in mobile Safari that opens an app, but the app is not installed on their phone? In this case, the browser shows the user a warning and remains on the same page. We can use this technique to improve usability. Make a timer in JavaScript that will start when the user clicks on a link; if the timer countdown ends quickly, it means the user does not have the required application installed and, accordingly, cannot be opened. We can't completely remove the Safari message, but we can send the user an error message indicating that the app is not installed and a link to the App Store where it can be purchased or downloaded.
Local Symbian applications
On Symbian devices we can open applications using the non-standard localapp scheme. For example, to open Calendar, Contacts, or Messages we need to use localapp:calendar, localapp:contacts or localapp:messaging.
Android Intents
Android also has the ability to communicate with other applications using intents. A native Android app can respond to an intent as an explicit call (which is not available for web apps) from a URL or from a MIME type.
For example, to automatically open the installed (and default) PDF viewer on a user's device, the PDF file must be sent with the application/pdf MIME type. To open an application without sending a file, you must use the URI scheme defined by the intent. For example, links to YouTube videos will automatically launch the installed YouTube application (if, of course, the user has set it as the default player).
When the intent is implicit (that is, a URL is used rather than a unique package name), more than one installed application can respond to the URL. In this case, the user receives a window asking him to select the desired application and here he can choose which application will open by default for future use.
On Android, intents can be registered as part of an HTTP URL or can be triggered with a MIME type. For example, if we go to the link http://www.google.com/m/products/scan in the Android browser, it will try to open the Barcode Scanner application.
Internal URLs supported by Android use Google Maps geotags:
Similarly, when opening the Android Market (application and game store) with a search query, market://search?q= is used
When a URI scheme is not registered as an intent in Android, it means that the application is not installed on the user's device. If, for example, you give the user a link to a non-existent site or page, then the user will see a new page with an error message.
Unfortunately, at the time of writing this article, there is no resource that lists all URI schemes for Android. True, some applications offer the developer websites that contain such information. For example, the Twidroid application (Twitter client) has a site http://twidroid.com/plugins where you can study the documentation about using a URL to make your page a Twitter sender. The URL syntax in this case would be: twitter://send?
Tweet this on Twidroid
As you'll see later (Chapter 12), we'll use non-standard APIs when developing widgets to communicate with native applications.
Uploading a document
Linking to a non-(X)HTML file can give completely different results depending on the device. You might immediately think that it depends on the applications installed on the device. Partially so. Some mobile browsers (for example, on iPhone) do not allow downloading a document even if the user has installed a reader appropriate for this type of document (Figure 6.8). In other browsers, for example Symbian, the user can save the document (Figure 6.9).
Rice. 6.8. Safari on iOS opens PDFs directly, but doesn't download the documents.
Rice. 6.9. Symbian browser has a Download Manager that can download any file to internal or external memory.
Table 6.11 shows the default responses in different browsers when we provide a file in a non-standard format (for example, invented one), as well as files in the most common Adobe PDF and Microsoft Office formats (.doc, .xls, etc.). ).
Browser/Platform | Unknown format | Adobe PDF | Microsoft Office |
---|---|---|---|
Safari | No | Yes. The user can view the PDF but cannot download it. | Yes. 2007 and partly 2010. Word, Excel, PowerPoint Viewer. |
Android browser | Yes | ||
Symbian/S60 | Yes | Yes, but the user must have a compatible viewer or editor installed | |
Nokia Series 40 | Yes | Yes, but can't view it. Download only. | |
webOS | Yes | Yes, but the user must have a compatible viewer or editor installed | |
BlackBerry | Yes | Yes | Yes. Word, Excel, PowerPoint 2007. |
NetFront | Yes | Download only. | |
Openwave (Myriad) | No | No | No |
Internet Explorer | Yes | Yes, but you need a viewer | Yes |
Motorola Internet Browser | No | No | No |
Opera Mobile |