Daily iOS
App lifecycle and system

Permission screen and authorization status

For a manager round assignment you built "a screen that explains our notification permission before the system prompt", and now you're taking questions on it. What should the app do for each authorization status (notDetermined, denied, authorized, provisional)?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Read the status with getNotificationSettings and show the explanation screen only for notDetermined before calling requestAuthorization (the system prompt appears once), send denied users to Settings, register right away for authorized, and for provisional register but consider asking properly later.

Share a question