Can I open phone app using URL scheme in iPhone?

后端 未结 2 1144
孤独总比滥情好
孤独总比滥情好 2020-12-18 10:26

Can I open the phone app on iPhone using URL scheme? if yes then how? I know I can dial a number using this:

[[UIApplication sharedApplication] openURL:[NSUR         


        
相关标签:
2条回答
  • 2020-12-18 10:57

    The only recognized URL scheme to open the phone app is tel://

    There is a nice summary of recognized URL schemes @ http ://applookup.com/ <- (edit) link is currently spam.

    0 讨论(0)
  • 2020-12-18 10:59

    The tel: URL will open Phone.app and dial a number.

    The documentation is here:

    https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html#//apple_ref/doc/uid/TP40007899-CH6-SW1

    However, there doesn't appear to be a tel: URL that simply opens the app. If you provide no number, the tel: URL appears to be ignored by iOS.

    0 讨论(0)
提交回复
热议问题