gpt4 book ai didi

ios - 使用 URL 方案启动 Podcast 应用程序

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:59:31 27 4
gpt4 key购买 nike

我正在尝试使用这样的 url 打开播客应用

- (void)setupPodcast
{
NSLog(@"setup podcast");
NSString *str = [NSString stringWithFormat:@"pcast://podcasts.sdxme.org/RSS/default.aspx?ID=%ld", (long)[[NSUserDefaults standardUserDefaults] integerForKey:@"CustomerID"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

2015-10-18 23:45:11.367 [29302:1691034] LaunchServices:错误:没有为 URL 方案 pcast 注册的处理程序

但是看起来不再支持 pcast 方案?如何在播客应用程序中打开我自己的 XML 提要?

最佳答案

根据 Swift 4,

我们应该使用下面的 url schemes 从我们的应用程序打开播客应用程序。

  1. Podcasts(通过 URL 添加提要)podcast://(您也可以在之后添加提要 URL 以自动填充它)

  2. 播客(浏览)pcast://itms-pcast://itms-pcasts ://podcasts://itms-podcast://itms-podcasts://(显示“无法连接”错误)

关于ios - 使用 URL 方案启动 Podcast 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33208299/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com