Skip to content

Instantly share code, notes, and snippets.

@smebberson
Created January 12, 2012 00:00
Show Gist options
  • Save smebberson/1597579 to your computer and use it in GitHub Desktop.
Save smebberson/1597579 to your computer and use it in GitHub Desktop.
iPhone telephone link examples

iPhone telephone link examples

The following looks at how the iPhone automatically detects Australian based phone numbers, and how you can explicitly define them. You can read more about this in Apple's iOS Developer Library.

Explicitly create a clickable telephone link

By using the tel: protocol, you can instruct the iPhone to respond to a click by making a phone call.

  • +61 8 8222 2222

Mobile Safari auto-detection

The following should automatically be auto-detected by mobile Safari and turned into clickable links (on an iOS device only).

  • +61 8 8222 2222
  • +61 8 82222222
  • +61 882222222
  • +61 421 000 000
  • 08 8222 2222
  • 08 82222222
  • 8222 2222
  • 82222222
  • 1800 000 000
  • 1800000000

The following either aren't detected, or aren't detected appropriately.

  • +61 (0)421 111 111 (standard Australian mobile)
  • 13 22 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment