Questions tagged «info-plist»

4
远程推送通知是否需要在Info.plist中添加UIBackgroundModes?
我已经集成了远程推送通知,但是却收到此警告: didReceiveRemoteNotification:fetchCompletionHandler:],但你仍然需要添加“ remote-notification”到列表的支持 UIBackgroundMode在你的S Info.plist。 我的Xcode版本是8.3.1。我真的很想将此添加到中Info.plist。我也遵循了一些教程,但是他们也都没有提到。我该怎么办

3
canOpenUrl-不允许该应用查询方案图
我正在尝试将Instagram网址添加到iOS9中的应用中,但是我收到以下警告: -canOpenURL: failed for URL: "instragram://media?id=MEDIA_ID" - error: "This app is not allowed to query for scheme instragram" 但是,我LSApplicationQueriesSchemes在我的中添加了以下内容info.plist: <key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string> <string>instagram://media?id=MEDIA_ID</string>//this one seems to be the issue </array> 任何帮助是极大的赞赏? 编辑1 这是我用来打开instagram的代码: NSURL * instagramURL = [NSURL URLWithString:@"instragram://media?id=MEDIA_ID"];//edit: note, to anyone copy pasting this code, please notice the typo …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.