Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skype URI's not Working in iOS 9

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

like image 820
Mukesh Avatar asked Oct 21 '15 08:10

Mukesh


1 Answers

Below i am sharing the image which worked for me.

I added the key LSApplicationQueriesSchemes in Info.plist file for skype

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"]];
    }
like image 61
Mukesh Avatar answered Oct 14 '22 07:10

Mukesh