Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 16.1+ double prompt issue for clipboard permission #521

Closed
erdemyerebasmaz opened this issue Mar 6, 2023 · 7 comments
Closed

iOS 16.1+ double prompt issue for clipboard permission #521

erdemyerebasmaz opened this issue Mar 6, 2023 · 7 comments
Assignees
Milestone

Comments

@erdemyerebasmaz
Copy link
Collaborator

erdemyerebasmaz commented Mar 6, 2023

Clicking Paste prompts the permission dialog but it gets closed abruptly and requires a second click to give permission & use the clipboard value.

IMG_0862.MOV
flutter doctor -v
[✓] Flutter (Channel stable, 3.7.6, on macOS 13.2.1 22D68 darwin-x64, locale en-TR)
    • Flutter version 3.7.6 on channel stable at /Users/erdem/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12cb4eb7a0 (6 days ago), 2023-03-01 10:29:26 -0800
    • Engine revision ada363ee93
    • Dart version 2.19.3
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/erdem/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Erdem iPhone’u (mobile) • 00008030-000425810139802E • ios        • iOS 16.3.1 20D67
    • macOS (desktop)         • macos                     • darwin-x64 • macOS 13.2.1 22D68 darwin-x64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

@ademar111190 Could this be related to skip logic on clipboard stream?

@ademar111190
Copy link
Collaborator

🤔 I don't think it is related to the skip because it is skipping the data coming from the preferences. Can you attach the logs? I believe you are running on a simulator, right? which iOS version are you using on it? Apple has changed the clipboard access logic a few times, so maybe it is version specific.

@erdemyerebasmaz
Copy link
Collaborator Author

🤔 I don't think it is related to the skip because it is skipping the data coming from the preferences. Can you attach the logs? I believe you are running on a simulator, right? which iOS version are you using on it? Apple has changed the clipboard access logic a few times, so maybe it is version specific.

I'm on a physical device, iPhone 11 with 16.3.1 version.

Will attach logs.

@erdemyerebasmaz
Copy link
Collaborator Author

erdemyerebasmaz commented Mar 7, 2023

@ademar111190

[Pasteboard] ...requesting item failed with error: Error Domain=PBErrorDomain Code=13 "Operation not authorized." UserInfo={NSLocalizedDescription=Operation not authorized.}

Depends on

@erdemyerebasmaz erdemyerebasmaz changed the title iOS 14+ double prompt issue for clipboard permission iOS 16.1+ double prompt issue for clipboard permission Mar 7, 2023
@roeierez roeierez added this to the v0.1.0-alpha milestone Mar 13, 2023
@roeierez
Copy link
Member

@erdemyerebasmaz can we close this?

@erdemyerebasmaz
Copy link
Collaborator Author

@erdemyerebasmaz can we close this?

@roeierez not yet, it depends on the issue referenced here:
#521 (comment)

@ademar111190
Copy link
Collaborator

@roeierez I think we should remove it from Milestone 0.1.0-alpha because it is an issue out of our control. We depend on flutter/flutter#121446

@roeierez roeierez modified the milestones: v0.1.0-alpha, v0.1.1-alpha Jun 21, 2023
@erdemyerebasmaz
Copy link
Collaborator Author

erdemyerebasmaz commented Jul 13, 2023

@roeierez I've changed my mind, this can be closed as it's only reproducible between copying pasting between another Apple device(using Handoff).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants