繁体   English   中英

Skype URI无法在iOS 9中运行

[英]Skype URI's not Working in iOS 9

我已经实现了一个模块,用于打开各种模块聊天,通话,视频通话的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"]];
    }

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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