简体   繁体   中英

Skype URI doesn't work on new version Skype in iOS

I have developed one application which use Skype URI for dial the tel number.

NSString* stringURL = [NSString stringWithFormat:@"skype:%@", strTel];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:stringURL]];

But the Skype URI doesn't work.

I remembered it worked before.

Now, it only opened Skype, and nothing happens (It used to dial the tel number before).

I checked the skype document , but seems nothing change.

Did I miss anything?

Please help me to solve this issue.

PS: I already added the key LSApplicationQueriesSchemes in Info.plist file for skype

Firsly check skype is in your device or not. You can use below code for Skype and check real device.

 BOOL skypeInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]];
if(skypeInstalled){

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"skype:echo123?call"]];

} else {

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/in/app/skype/id304878510?mt=8"]];
}

Or Use as this

 NSString* urlString = [NSString stringWithFormat:@"skype:USER_NAME?call"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM