# iOS

Connect the Pushbag iPhone app and choose how channel notifications appear.

## Install and connect

Pushbag has an iPhone app that is on its way to the App Store. Until it is listed, build it from source and install it on your iPhone. Follow the iOS setup in the repository's `apps/mobile/README.md`, including the signing and push configuration for a physical device.

Open Pushbag and allow notifications when prompted. Sign in with Google to register your iPhone and browse the artifacts in your account.

To use the phone as a receiver without signing in, open **Settings → Devices** in the [dashboard](https://app.pushbag.dev/settings/devices) and select **Pair a device**. On your iPhone, tap **Have a pairing code?** and enter the code, or open the dashboard's `pushbag://pair?code=…` link on the phone. Codes expire after ten minutes. If yours expires, generate a new one.

## Test delivery

Run this command with a CLI key that can publish to Personal.

```sh
pushbag notify "Phone check"
```

Look for **Phone check** in Personal in the dashboard, then in the app's **Inbox**. Notifications reach the phone through Apple Push Notification service (APNs). A notification service extension saves incoming messages to the Inbox even when the app is closed.

| Tab | What you can do |
| --- | --- |
| Inbox | Read received messages and open their links. A paired device can also retrieve history for its granted channels. |
| Artifacts | Sign in to browse your files and their versions. Pairing alone gives the phone no access to private artifacts. |
| Channels | Sign in to browse Personal and your other channels and see who can read or publish to them. |
| Settings | Check device registration and notification permission, change banner previews, or disconnect the phone. |

## Open a notification

Tap a notification to open its Inbox entry. If the sender supplied a `click` URL, tapping opens that link instead. The **Inbox** action still opens the message. If no installed app handles the URL, Pushbag opens the Inbox entry.

```sh
pushbag notify "Resume review" --click opencode://session/ses_example
```

Expand the notification to see its action buttons. A link button opens its destination. A copy button puts the sender's text on the clipboard and requires you to unlock the phone if it's locked. A private artifact opened in a browser requires the owner's browser session or a valid view grant. [Artifact visibility](/docs/privacy-and-versions)

## Choose how alerts appear

Pushbag maps message priority to iOS interruption levels.

| Priority | Delivery on iPhone |
| --- | --- |
| 1–2 | Passive. The notification arrives quietly without a sound. |
| 3–4 | Active. iOS uses your normal notification settings. |
| 5 | Time Sensitive. Your iPhone's notification and Focus settings determine whether it can interrupt you. |

To hide message text on the lock screen, use **Show Previews** in the iPhone's notification settings. Pushbag shows message content by default when iOS allows previews. For a generic preview even when the phone is unlocked, turn off **Settings → Privacy → Show message text in banners** in Pushbag. This hides the message title and text in all Pushbag notification banners. You can still read the message in the Inbox.

## Diagnose a missing alert

If **Phone check** is missing from Personal in the dashboard, check the CLI's account and channel. If it appears there, check device registration, notification permission, channel mute and minimum priority. A publish receipt confirms that Pushbag accepted the message.

Open the app to catch up on missed messages. Pushbag also requests background refresh, but iOS decides when it runs, so catch-up can take longer than on Android. If the message is already in the Inbox, check the [iPhone alert troubleshooting steps](/docs/troubleshooting#iphone-alerts).
