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
ts
import { open } from 'protocol-launcher/pocket-casts'
const url = open()Play Paused Episode
ts
import { play } from 'protocol-launcher/pocket-casts'
const url = play()Pause Playing Episode
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://.
ts
import { subscribe } from 'protocol-launcher/pocket-casts'
const url = subscribe({
feedUrlWithoutHttp: 'example.com/podcast/rss',
})