Skip to content

Pocket Casts

Pocket Casts is a podcast app for listening to and following shows. Protocol Launcher allows you to generate Pocket Casts iOS URL scheme links.

Usage

There are two ways to use this library:

  • On-Demand import from subpaths enables tree-shaking and keeps bundles small.
  • Full Import from the root package is convenient but includes all app modules.

Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.

Select Installation Method

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Open App

On-Demand
ts
import { open } from 'protocol-launcher/pocket-casts'

const url = open()

Play Paused Episode

On-Demand
ts
import { play } from 'protocol-launcher/pocket-casts'

const url = play()

Pause Playing Episode

On-Demand
ts
import { pause } from 'protocol-launcher/pocket-casts'

const url = pause()

Follow Podcast by Feed URL

Pocket Casts expects the feed URL without a leading http://.

On-Demand
ts
import { subscribe } from 'protocol-launcher/pocket-casts'

const url = subscribe({
  feedUrlWithoutHttp: 'example.com/podcast/rss',
})