mNo edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
| feeds || - || {{applink|MobileSafari}} || {{yes}} || Web Feed? | | feeds || - || {{applink|MobileSafari}} || {{yes}} || Web Feed? | ||
|- | |- | ||
| calshow || ? || {{applink|MobileCal}} || {{ | | calshow || <tt>calshow:</tt>''x''<tt>?eventid=</tt>''id'' || {{applink|MobileCal}} || {{no}} || Used in <tt>-[</tt><tt>[[SBCalendarAlertItem]] revealEvent]</tt>. | ||
|- | |- | ||
| calinvite || | | calinvite || <tt>calinvite:eventid=</tt>''id'' || {{applink|MobileCal}} || {{no}} || Used in <tt>-[</tt><tt>[[SBInvitationAlertItem]] revealEvent]</tt>. | ||
|- | |- | ||
| calinvitelist || ? || {{applink|MobileCal}} || {{unk}} || ? | | calinvitelist || ? || {{applink|MobileCal}} || {{unk}} || ? | ||
Line 33: | Line 33: | ||
| tel || <tt>tel:</tt>''phoneNumber'' || {{applink|MobilePhone}} || {{yes}} || Telephone. | | tel || <tt>tel:</tt>''phoneNumber'' || {{applink|MobilePhone}} || {{yes}} || Telephone. | ||
|- | |- | ||
| telprompt || | | telprompt || <tt>telprompt:</tt>''phoneNumber'' || {{applink|MobilePhone}} || {{yes}} || Telephone with prompt. Available only in 3.0 –. | ||
|- | |- | ||
| callto || ? || {{applink|MobilePhone}} || {{unk}} || ? | | callto || ? || {{applink|MobilePhone}} || {{unk}} || ? | ||
|- | |- | ||
| telshow || | | telshow || <tt>telshow://</tt> || {{applink|MobilePhone}} || {{unk}} || ? | ||
|- | |- | ||
| tellock || | | tellock || <tt>tellock://</tt> || {{applink|MobilePhone}} || {{unk}} || ? | ||
|- | |- | ||
| telanswer || | | telanswer || <tt>telanswer:</tt>''something''<tt>/</tt> || {{applink|MobilePhone}} || {{no}} || Used in <tt>-[</tt><tt>[[SBCallAlertDisplay]] answer:]</tt>. | ||
|- | |- | ||
| telemergency || | | telemergency || <tt>telemergency://</tt> || {{applink|MobilePhone}} || {{unk}} || ? | ||
|- | |- | ||
| vmshow || | | vmshow || <tt>vmshow:</tt>''integer'' || {{applink|MobilePhone}} || {{unk}} || Voicemail. Used in <tt>-[</tt><tt>[[SBVoiceMailAlertItem]] performUnlockAction]</tt>. | ||
|- | |- | ||
| maps || <tt>maps:</tt>''params'' || {{applink|Maps}} || {{yes}} | | maps || <tt>maps:</tt>''params'' || {{applink|Maps}} || {{yes}} | ||
Line 68: | Line 68: | ||
| ? | | ? | ||
|- | |- | ||
| webcal || [http://en.wikipedia.org/wiki/Webcal] || {{applink|SpringBoard}} || {{yes}} || WebCal | | webcal || [http://en.wikipedia.org/wiki/Webcal] || {{applink|SpringBoard}} || {{yes}} || WebCal subscription. | ||
|- | |- | ||
| doubletap || <tt>doubletap://</tt>''displayID'' || {{applink|SpringBoard}} || {{no}} | | doubletap || <tt>doubletap://</tt>''displayID'' || {{applink|SpringBoard}} || {{no}} | ||
Line 84: | Line 84: | ||
| Execute Javascript. Can only be used in MobileSafari. | | Execute Javascript. Can only be used in MobileSafari. | ||
|- | |- | ||
| ff || <tt>ff:</tt>''param'' || {{applink|FriendFinderApp}} || {{unk}} | | ff || <tt>ff:</tt>''param'' '''or''' <tt>maps:</tt>''param'' || {{applink|FriendFinderApp}} || {{unk}} | ||
| Friend finder URL. Not usable yet. | | Friend finder URL. Not usable yet. | ||
|- | |- | ||
| springboard || <tt>springboard:/</tt>''command'' || {{applink|SpringBoard}} || {{no}} | | springboard || <tt>springboard:/</tt>''command'' || {{applink|SpringBoard}} || {{no}} | ||
| SpringBoard command. Only referred in <tt>-[</tt><tt>[[UIApplication]] _runSpringboardCommand:]</tt>. | | SpringBoard command. Seems abandoned. Only referred in <tt>-[</tt><tt>[[UIApplication]] _runSpringboardCommand:]</tt>. | ||
|} | |} | ||
In addition, common Jailbroken devices also have <tt>cydia</tt> and <tt>apptapp</tt> scheme reserved for {{applink|Cydia}}. | |||
=== Friend Finder URLs === | |||
Friend finder URLs are handled by the unknown application "com.apple.FriendFinderApp". It may be similar in function to [http://www.google.com/intl/en_us/latitude/intro.html Google Latitude]<ref>iPhone URL Schemes – Including Google Latitude: http://www.dc-studios.net/blog/?p=148</ref>. | |||
There are 4 kinds of friend finder URLs: | |||
* '''"ff/acc" URLs:''' These are of the form <tt>ff:t=</tt>''token''. These URLs will be transformed to <tt><nowiki>https://iphone-services.apple.com/ff/acc?t=</nowiki></tt>''token''<tt>&bid=0</tt>. There are also <tt>maps:t=</tt>''token'' which the only difference is <tt>bid=1</tt>. | |||
* '''"ff/su" URLs:''' These are of the form <tt>ff:em=</tt>''email''. These URLs will be transformed to <tt><nowiki>https://iphone-services.apple.com/ff/su?em=</nowiki></tt>''email''. | |||
* '''Friend-to-friend URLs:''' These are of the form <tt>maps:ffsourceuserid=</tt>''sourceFriend''<tt>&ffdestuserid=</tt>''destFriend''. | |||
* '''Friend URLs:''' These are of the form <tt>maps:ffuserid=</tt>''friend''. | |||
== References == | == References == | ||
<references/> | |||
* Official reference: {{sdklink|Foundation|NSURL}} | * Official reference: {{sdklink|Foundation|NSURL}} | ||
* Apple URL Scheme Reference: http://developer.apple.com/safari/library/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html | * Apple URL Scheme Reference: http://developer.apple.com/safari/library/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html | ||
* UIKit additions: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/NSURL.h | * UIKit additions: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/NSURL.h | ||
{{occlass|library=Foundation.framework|navbox=1}} | {{occlass|library=Foundation.framework|navbox=1}} |
Revision as of 16:42, 5 November 2009
NSURL is a class that holds an URL.
Pre-registered URL scheme
There are a bunch of URL schemes reserved within iPhoneOS. You cannot register these schemes in your app.
Scheme | Form | Handler | Public | Usage |
---|---|---|---|---|
ftp | - | MobileSafari | Yes | File transfer protocol. |
http | - | MobileSafari | Yes | Hypertext transfer protocol. |
https | - | MobileSafari | Yes | HTTP Secure. |
feed | [1] | MobileSafari | Yes | Web Feed. |
feeds | - | MobileSafari | Yes | Web Feed? |
calshow | calshow:x?eventid=id | MobileCal | No | Used in -[SBCalendarAlertItem revealEvent]. |
calinvite | calinvite:eventid=id | MobileCal | No | Used in -[SBInvitationAlertItem revealEvent]. |
calinvitelist | ? | MobileCal | Unknown | ? |
mailto | [2] | MobileMail | Yes | Sending emails. |
sms | sms:phoneNumber | MobileSMS | Yes | Sending SMS. |
tel | tel:phoneNumber | MobilePhone | Yes | Telephone. |
telprompt | telprompt:phoneNumber | MobilePhone | Yes | Telephone with prompt. Available only in 3.0 –. |
callto | ? | MobilePhone | Unknown | ? |
telshow | telshow:// | MobilePhone | Unknown | ? |
tellock | tellock:// | MobilePhone | Unknown | ? |
telanswer | telanswer:something/ | MobilePhone | No | Used in -[SBCallAlertDisplay answer:]. |
telemergency | telemergency:// | MobilePhone | Unknown | ? |
vmshow | vmshow:integer | MobilePhone | Unknown | Voicemail. Used in -[SBVoiceMailAlertItem performUnlockAction]. |
maps | maps:params | Maps | Yes | Maps. URLs of this type can be interpreted as http://maps.google.com/maps?params. |
prefs | prefs:params | Preferences | No | Preferences. params can be like root=General&path=About. |
youtube | youtube:videoID | YouTube | Yes | YouTube video. URLs of this type can be interpreted as http://www.youtube.com/v/videoID. |
itms | - | MobileStore | Yes | iTunes Music Store. |
itmss | - | MobileStore | Yes | ? |
itms-apps | - | AppStore | Yes | ? |
itms-appss | - | AppStore | Yes | ? |
webcal | [3] | SpringBoard | Yes | WebCal subscription. |
doubletap | doubletap://displayID | SpringBoard | No | The application will be launched when user double tapped the home button. |
search | search://displayID/domain/identifier | SpringBoard | No | ? |
rdar | rdar:url | MobileSafari | Yes | Radars (bug reporter). URLs of this type can be interpreted as https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/wa/openURL?url=url. |
radar | radar:url | MobileSafari | Yes | Radars (bug reporter). Equivalent to rdar:. |
javascript | - | MobileSafari | No | Execute Javascript. Can only be used in MobileSafari. |
ff | ff:param or maps:param | FriendFinderApp | Unknown | Friend finder URL. Not usable yet. |
springboard | springboard:/command | SpringBoard | No | SpringBoard command. Seems abandoned. Only referred in -[UIApplication _runSpringboardCommand:]. |
In addition, common Jailbroken devices also have cydia and apptapp scheme reserved for Cydia.
Friend Finder URLs
Friend finder URLs are handled by the unknown application "com.apple.FriendFinderApp". It may be similar in function to Google Latitude[1].
There are 4 kinds of friend finder URLs:
- "ff/acc" URLs: These are of the form ff:t=token. These URLs will be transformed to https://iphone-services.apple.com/ff/acc?t=token&bid=0. There are also maps:t=token which the only difference is bid=1.
- "ff/su" URLs: These are of the form ff:em=email. These URLs will be transformed to https://iphone-services.apple.com/ff/su?em=email.
- Friend-to-friend URLs: These are of the form maps:ffsourceuserid=sourceFriend&ffdestuserid=destFriend.
- Friend URLs: These are of the form maps:ffuserid=friend.
References
- ↑ iPhone URL Schemes – Including Google Latitude: http://www.dc-studios.net/blog/?p=148
- Official reference: NSURL
- Apple URL Scheme Reference: http://developer.apple.com/safari/library/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
- UIKit additions: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/NSURL.h
|