[英]Skype URI's not Working in iOS 9
我已經實現了一個模塊,用於打開各種模塊聊天,通話,視頻通話的Skype應用程序。它一直工作到iOS 8。
下面是鏈接以進行集成
https://msdn.microsoft.com/en-us/library/dn745885.aspx
但它現在停止在iOS 9中工作了。
即使安裝了Skype,以下代碼也只是打開App-store搜索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"]];
}
任何替代方案?請指導。謝謝
下面我將分享對我有用的圖像。
我在Info.plist文件中為Skype添加了關鍵的LSApplicationQueriesSchemes
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"]];
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.