6

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

Mukesh
  • 3,680
  • 1
  • 15
  • 32

1 Answers1

7

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"]];
    }
Mukesh
  • 3,680
  • 1
  • 15
  • 32