Skype URI's not Working in iOS 9
Asked Answered
T

1

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

Temperance answered 21/10, 2015 at 8:49 Comment(7)
Did you add LSApplicationQueriesSchemes key in your Info.plist? You have to add skype url scheme to LSApplicationQueriesSchemes in plist fileOsmo
Thanks @Osmo i did that already it worked.Temperance
Can you show how looks properly working LSApplicationQueriesSchemes key for Skype?Harty
i have answered it,check belowTemperance
It looks the same in my app but still this line: [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"skype:"]] return false.Harty
Did you do any additional changes other than the addition of LSApplicationQueriesSchemes?Harty
i have added the codeTemperance
T
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"]];
    }
Temperance answered 29/10, 2015 at 12:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.