2015-10-21 20 views
6

我已經建立了一個模塊打開的Skype應用程序的不同模塊聊天,打電話,視頻call.It是工作到iOS的8Skype的URI不是在iOS的工作9

下面的鏈接之後整合

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

但它現在停止在iOS 9中工作。

下面的代碼是剛剛開放的應用商店搜索的Skype,即使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"]]; 
    } 

任何替代這個?請guide.Thanks

+5

你在你的Info.plist添加LSApplicationQueriesSchemes關鍵?你必須在plist文件 – gaRik

+0

中添加skype url scheme到LSApplicationQueriesSchemes謝謝@gaRik我已經做到了這一點。 – Mukesh

+0

您能否展示如何正確使用Skype的SkypeApplicationQueriesSchemes鍵? – murzynpl

回答

6

下面我正在分享其供職的圖像我。

我在Info.plist文件中添加的關鍵LSApplicationQueriesSchemes爲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"]]; 
    }