Skype URI在iOS 9中不起作用 [英] Skype URI's not Working in iOS 9

查看:100
本文介绍了Skype URI在iOS 9中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个用于打开Skype应用程序的模块,用于各种模块的聊天,通话,视频通话.它一直运行到iOS 8.

I had implemented a module for opening Skype app for various modules chat ,call, video call.It was working till iOS 8.

下面是用于集成的链接

https://msdn.microsoft.com/en-us/library/dn745885.aspx

但是它现在停止在iOS 9中工作.

But it stopped working in iOS 9 now.

即使安装了Skype,下面的代码也只是打开App Store搜索Skype

The below code is just opening the App-store searching Skype even when Skype is installed

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

有其他选择吗?请指导.谢谢

Any Alternative for this?Please guide.Thanks

推荐答案

下面,我分享了对我有用的图像.

Below i am sharing the image which worked for me.

我在Info.plist文件中为Skype添加了密钥LSApplicationQueriesSchemes

I added the key LSApplicationQueriesSchemes in Info.plist file for 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"]];
    }

这篇关于Skype URI在iOS 9中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆