我已经实现了一个模块,用于打开Skype应用程序,用于各种模块的聊天,通话,视频通话。它一直工作到iOS 8。
以下是集成
的链接https://msdn.microsoft.com/en-us/library/dn745885.aspx
但它现在停止在iOS 9中工作了。
以下代码即使在安装Skype时也只是打开搜索Skype的App-store
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"]];
}
任何替代方案?请指导。谢谢
答案 0 :(得分:6)
下面我将分享对我有用的图像。
我在Infoypeplist文件中为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"]];
}