Skype URI无法在iOS 9中运行

时间:2015-10-21 08:49:31

标签: ios uri ios9 skype skype-uri.js

我已经实现了一个模块,用于打开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"]];
    }

任何替代方案?请指导。谢谢

1 个答案:

答案 0 :(得分:6)

下面我将分享对我有用的图像。

我在Infoypeplist文件中为Skype添加了密钥LSApplicationQueriesSchemes

enter image description here

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"]];
    }