PadCodedocs

Permissions

The camera, location, notifications and Face ID: which steps need permission, the reason people read, and trying the request on your iPad.

Some things your app does need the person's permission first, like taking a photo or finding where they are. PadCode finds these from what your app uses and lists them in the Library's Data & Logic tab, under Permissions. For each one, you write the reason people read before iPadOS asks them.

Permissions in Data & Logic: Location, not asked yet, used by Get Location, with a reason box and Ask on this iPad.

#What needs permission

A permission shows up in the list as soon as your app uses something that needs it:

PermissionNeeded by
CameraThe Take Photo and Scan Code steps
LocationThe Get Location step, and a Map whose Place is empty (listed for showing where the person is, which the map doesn't do yet)
NotificationsThe Schedule Notification step
Face IDThe Face ID / Touch ID step

While your app uses none of these, the section says: "Your app doesn't ask for anything yet. Taking photos, finding where someone is, notifications and Face ID need permission; they show up here when your app uses them."

#Each permission

PartWhat it shows
Name and statusThe permission, and where it stands on this iPad: Not asked yet, Allowed or Turned off.
Used byWhat in your app needs it, like "Used by Get Location".
ReasonThe box for your reason. Until you type one, it shows a suggestion in gray.
Ask on this iPadShown while the status is Not asked yet: shows iPadOS's request now, so you can allow it and try your app. Face ID doesn't have it: Face ID asks the first time it's used.
Turn On in SettingsShown when the status is Turned off: opens Settings, where you can turn it back on.

The status updates when you come back to PadCode from Settings.

#Write the reason

Tap the reason box and say, in a sentence, why your app needs it, like "To scan the code on your table." Up to 200 characters. If you leave the box empty, your app uses the suggestion shown in gray:

PermissionSuggestion
CameraTo take photos and scan codes.
LocationTo show things near you.
NotificationsTo remind you at the times you choose.
Face IDTo keep your data private.

#What people see

The first time a step needs a permission that hasn't been asked yet, your app shows an alert before iPadOS does. Its title is like "“Coffee Counter” would like to use your camera", its message is your reason, and its one button is Continue, which always goes on to iPadOS's own request. The person decides there; App Review asks that nothing comes between the reason and the request.

Once iPadOS allows it, each app still asks the person itself, the first time it uses it: "Allow “Coffee Counter” to use your camera?", with Don't Allow and Allow, and your reason under it. The answer is kept for that app, and Settings › Privacy › App Permissions shows and changes it. Allowing iPadOS's request while an app asks counts as that app's answer too.

If the answer is no, the step fails with a message like "Camera wasn't allowed, so “Take Photo” didn't run.", or, when the app was told no, "“Coffee Counter” isn't allowed to use your camera." If the permission was turned off in iPadOS earlier, the step fails with "Camera is turned off for PadCode. Turn it on in Settings → PadCode, then try again." Put the step in a Try to decide what happens then.

The Face ID / Touch ID step skips the alert: it shows the step's own reason when it asks.

#See also