Skip to content

iCab Mobile

iCab Mobile is a web browser for the iPhone, iPad and Apple Watch. Protocol Launcher allows you to generate deep links to open URLs, add bookmarks, and search in iCab Mobile.

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 Browser

On-Demand
ts
import { open } from 'protocol-launcher/icab-mobile'

const url = open()

Open URL

On-Demand
ts
import { openUrl } from 'protocol-launcher/icab-mobile'

const url = openUrl({
  url: 'https://www.example.com/',
})

Add Bookmark

On-Demand
ts
import { addBookmark } from 'protocol-launcher/icab-mobile'

const url = addBookmark({
  url: 'https://www.example.com/',
  title: 'Example',
})

Add Bookmark with Folder

On-Demand
ts
import { addBookmark } from 'protocol-launcher/icab-mobile'

const url = addBookmark({
  url: 'https://www.example.com/',
  title: 'Example',
  folder: 'Favorites',
})
On-Demand
ts
import { search } from 'protocol-launcher/icab-mobile'

const url = search({
  query: 'hello world',
})