Skip to catalogue

82

OS permission

Camera, photos, location, notifications. Ask when the need is obvious. Survive “don’t allow.”

What is OS permission?

An OS permission is a system prompt the user can deny forever. The app must have a denied state: explain, link to Settings, and still function without that sensor. Asking at launch trains people to refuse.

Why does OS permission matter when vibe coding?

Models call the camera API on startup and crash or spin when denied. Name the denied state as a screen, not an afterthought.

How do you do OS permission?

Ask at the gesture that needs it. If denied, show a recovery path. Do not block the rest of the app. Declare the usage string in the OS config or the request never appears.

How do you ask a model for OS permission?

Request (permission) only when the user taps (action). If they deny, show an explanation and a way to Settings. The rest of the app still works. Add the OS usage description.

What goes wrong with OS permission?

Re-prompting in a loop. After a deny, the OS will not show the dialog again. Stop asking. Send them to Settings.

adjacent