开发者

Can I open phone app using URL scheme in iPhone?

开发者 https://www.devze.com 2023-01-16 02:50 出处:网络
Can I open the phone app on iPhone using URL scheme? if yes then how? I know I can dia开发者_JS百科l a number using this:

Can I open the phone app on iPhone using URL scheme? if yes then how? I know I can dia开发者_JS百科l a number using this:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];

But I don't want to dial a number, I just want to open the phone as I click on the phone icon on home page.


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.


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

精彩评论

暂无评论...
验证码 换一张
取 消