加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Skype URI无法在iOS 9中运行

发布时间:2020-12-14 01:42:04 所属栏目:Windows 来源:网络整理
导读:我已经实现了一个模块,用于打开各种模块聊天,通话,视频通话的Skype应用程序.它一直工作到iOS 8. 下面是链接以进行集成 https://msdn.microsoft.com/en-us/library/dn745885.aspx 但它现在停止在iOS 9中工作了. 即使安装了Skype,以下代码也只是打开App-store
我已经实现了一个模块,用于打开各种模块聊天,通话,视频通话的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"]];
    }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读