Skip to content

iOS simulator: refuse notifications permission with a hint to alert accept|dismiss #5074

Done

Description

@thymikee

Problem

On an iOS simulator, settings permission grant|deny|reset notifications sends simctl privacy <udid> <action> notifications <bundle>. simctl privacy does not list a notifications service, so the call fails and isIosPrivacyServiceRefusal classifies the failure as a refusal.

  • Service map: packages/platform-apple/src/core/simctl-settings.ts:75 maps notifications to 'notifications'.
  • Refusal hint: packages/platform-apple/src/core/simctl-settings.ts:255-258 tells the user to use the all target. For notifications, all cannot help either.

The working path is to answer the notification prompt with alert accept or alert dismiss. That path works on local simulators, physical iOS devices and Limrun. The refusal does not name it.

Context: #5046 and #4668 (closed as not planned for core).

Required behavior

  • An iOS simulator request for the notifications permission refuses before it calls simctl.
  • The refusal has its own typed reason, for example ios-notification-permission-unsupported.
  • The hint tells the user to answer the prompt with alert accept or alert dismiss.
  • The settings catalog help and the user docs for permissions say the same.
  • Other permission targets and other platforms do not change.

Verification

  • A unit test for the iOS simulator settings plan shows that notifications refuses with the new reason and hint, and that no simctl call is made.
  • The docs and help text name alert accept|dismiss for notifications on iOS simulators.

Activity

  1. added
    bug
    on Nov 24, 2026
  2. apex-sentinel-staging commented on Nov 24, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    The issue reports that settings permission ... notifications calls simctl privacy ... notifications on iOS, but simctl privacy does not support a notifications service, causing the failure to be classified as a refusal instead of an unsupported/need-alert flow. It also specifies concrete file locations, a typed refusal reason, hint text, docs, and verification, so a maintainer can act on it.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions