plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: share_plus - iOS 13 physical devices shows white overlay over screen when sharing through Messages

Open samleecampspot opened this issue 3 years ago • 0 comments

Platform

iOS 13.3.1

Plugin

share_plus

Version

4.0.10

Flutter SDK

3.0.5

Steps to reproduce

  1. Open the example app from share_plus and run it on a physical iOS 13 device (my device is an iPhone SE - iOS 13.3.1). https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus/example
  2. Enter some text to the Share text: text field and tap Share button to open the ShareSheet. For some reason, the ShareSheet doesn't show the Messages app until I add one more character to the Share text: text field. Tap the Share button again to show the ShareSheet again.
  3. Share with the Messages app and send it to someone.
  4. When the ShareSheet closes, there's a white overlay covering the bottom half of the page. I now have to scroll on the top half of the page to show all the widgets. I'm not sure where this white overlay is coming from. I have to restart the app or open the ShareSheet, choose the Message app again, then just close it to fix this UI bug.

Before:

After:

Code Sample

https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus/example

Logs

[+13451 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[   +9 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[   +4 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +57 ms] CFURLSetTemporaryResourcePropertyForKey failed because it was passed an URL which
has no scheme
[        ] CFURLSetTemporaryResourcePropertyForKey failed because it was passed an URL which
has no scheme
[  +33 ms] CFURLSetTemporaryResourcePropertyForKey failed because it was passed an URL which
has no scheme
[  +24 ms] CFURLSetTemporaryResourcePropertyForKey failed because it was passed an URL which
has no scheme
[        ] CFURLSetTemporaryResourcePropertyForKey failed because it was passed an URL which
has no scheme
[        ] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no
scheme
[  +57 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[ +622 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +13 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +94 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[   +1 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +23 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +11 ms] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[        ] [Process] kill() returned unexpected error 1
[  +74 ms] [ProcessSuspension] 0x11bce0fc0 -
ProcessAssertion::processAssertionWasInvalidated()
[  +16 ms] [ProcessSuspension] 0x11bce1020 -
ProcessAssertion::processAssertionWasInvalidated()
[ +489 ms] [LayoutConstraints] Unable to simultaneously satisfy constraints.
[        ]      Probably at least one of the constraints in the following list is one you don't
want. 
[        ]      Try this: 
[        ]              (1) look at each constraint and try to figure out which you don't expect; 
[        ]              (2) find the code that added the unwanted constraint or constraints and fix it. 
[        ] (
[        ]     "<NSLayoutConstraint:0x28370abc0 'assistantHeight'
TUISystemInputAssistantView:0x104b5fe30.height == 38   (active)>",
[        ]     "<NSLayoutConstraint:0x283712210 'assistantView.bottom'
TUISystemInputAssistantView:0x104b5fe30.bottom == _UIKBCompatInputView:0x10247e640.top
(active)>",
[        ]     "<NSLayoutConstraint:0x283712710 'assistantView.top'
V:|-(0)-[TUISystemInputAssistantView:0x104b5fe30]   (active, names:
'|':UIInputSetHostView:0x1024bc170 )>",
[        ]     "<NSLayoutConstraint:0x2837107d0 'inputView.top'
V:|-(0)-[_UIKBCompatInputView:0x10247e640]   (active, names:
'|':UIInputSetHostView:0x1024bc170 )>"
[        ] )
[        ] Will attempt to recover by breaking constraint 
[        ] <NSLayoutConstraint:0x283712210 'assistantView.bottom'
TUISystemInputAssistantView:0x104b5fe30.bottom == _UIKBCompatInputView:0x10247e640.top
(active)>
[        ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this
in the debugger.
[        ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in
<UIKitCore/UIView.h> may also be helpful.
[ +548 ms] [ShareSheet] connection invalidated
[+10016 ms] [LayoutConstraints] Unable to simultaneously satisfy constraints.
[        ]      Probably at least one of the constraints in the following list is one you don't
want. 
[        ]      Try this: 
[        ]              (1) look at each constraint and try to figure out which you don't expect; 
[        ]              (2) find the code that added the unwanted constraint or constraints and fix it. 
[        ] (
[        ]     "<NSLayoutConstraint:0x283712080 'assistantHeight'
TUISystemInputAssistantView:0x104b5fe30.height == 38   (active)>",
[        ]     "<NSLayoutConstraint:0x28372b570 'assistantView.bottom'
TUISystemInputAssistantView:0x104b5fe30.bottom == _UIKBCompatInputView:0x10247e640.top
(active)>",
[        ]     "<NSLayoutConstraint:0x28372b520 'assistantView.top'
V:|-(0)-[TUISystemInputAssistantView:0x104b5fe30]   (active, names:
'|':UIInputSetHostView:0x104bacbf0 )>",
[        ]     "<NSLayoutConstraint:0x28372c050 'inputView.top'
V:|-(0)-[_UIKBCompatInputView:0x10247e640]   (active, names:
'|':UIInputSetHostView:0x104bacbf0 )>"
[        ] )
[        ] Will attempt to recover by breaking constraint 
[        ] <NSLayoutConstraint:0x28372b570 'assistantView.bottom'
TUISystemInputAssistantView:0x104b5fe30.bottom == _UIKBCompatInputView:0x10247e640.top
(active)>
[        ] Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this
in the debugger.
[        ] The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in
<UIKitCore/UIView.h> may also be helpful.
[ +504 ms] [ShareSheet] connection invalidated
[+14125 ms] [ShareSheet] connection invalidated
[+4180 ms] Could not signal service com.apple.WebKit.WebContent: 113: Could not find
specified service
[  +16 ms] Could not signal service com.apple.WebKit.WebContent: 113: Could not find
specified service
[+5924 ms] [ShareSheet] connection invalidated
[+3119 ms] [ShareSheet] connection invalidated
[+22095 ms] [ShareSheet] connection invalidated

Flutter Doctor

[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.0.5 at /Users/somename/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
    • Android SDK at /Users/somename/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • 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.11+0-b60-7772763)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Users/somename/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • 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

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    • IntelliJ at /Users/somename/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/221.5921.22/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.65.2)
    • VS Code at /Users/somename/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] VS Code (version 1.69.1)
    • VS Code at /Users/somename/.Trash/Visual Studio Code for Platform.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (6 available)
    • Pixel 4 XL (mobile)                 • 98291FFBA004SG                           • android-arm64  • Android 12 (API 32)
    • Someone’s iPhone (mobile)               • 140a4eabc89adfee0e9498ef150582a061daaa46 • ios            • iOS 13.3.1 17D50
    • iPhone 13 (mobile)                  • 80138D4D-CE14-4357-9A72-09433CCA7105     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • iPad mini (6th generation) (mobile) • 3FC884C7-F7A8-45EE-BE8A-07006244B21B     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)                     • macos                                    • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)                        • chrome                                   • web-javascript • Google Chrome 103.0.5060.134

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

• No issues found!

samleecampspot avatar Aug 05 '22 17:08 samleecampspot