我已经实现了一个模块,用于打开各种模块聊天,通话,视频通话的Skype应用程序.它一直工作到iOS 8.
下面是链接以进行集成
https://msdn.microsoft.com/en-us/library/dn745885.aspx
但它现在停止在iOS 9中工作了.
即使安装了Skype,以下代码也只是打开App-store搜索Skype
BOOL installed = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]]; if(installed) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"skype:%@?chat",dataSource[indexPath.section]]]]; } else { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/in/app/skype-for-iphone/id304878510?mt=8"]]; }
任何替代方案?请指导.谢谢
下面我将分享对我有用的图像.
原文链接:https://www.f2er.com/windows/363464.html我在Info.plist文件中为Skype添加了关键的LSApplicationQueriesSchemes
BOOL installed = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]]; if(installed) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"skype:%@?chat",dataSource[indexPath.section]]]]; } else { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/in/app/skype-for-iphone/id304878510?mt=8"]]; }