Skype URI's not Working in iOS 9

十年热恋 提交于 2019-12-08 21:24:13

问题


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

Below is link is followed for integration

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

But it stopped working in iOS 9 now.

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


回答1:


Below i am sharing the image which worked for me.

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


来源:https://stackoverflow.com/questions/33254817/skype-uris-not-working-in-ios-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!