esysberlin / esys-flutter-share

A Flutter plugin for sharing files & text with other applications.
Apache License 2.0
130 stars 147 forks source link

Share Button Not Working In IPad iOS 13+ #61

Open ayushkumar0630 opened 4 years ago

ayushkumar0630 commented 4 years ago

When trying to use the share button on an iPad I get the following output and cannot share my image:

`2020-04-15 11:06:04.410131-0500 Vitrix Health[16637:5319295] [ShareSheet] connection invalidated 2020-04-15 11:06:06.985271-0500 Vitrix Health[16637:5310642] flutter: Sharing image 2020-04-15 11:06:06.985390-0500 Vitrix Health[16637:5310642] flutter: /private/var/mobile/Containers/Data/Application/DCD63FC0-340C-4B0F-85C8-83720C9075D2/tmp/image_picker_330EC546-4007-4EDD-B411-316D165206A7-16637-0000225809C3E338.jpg 2020-04-15 11:06:06.986302-0500 Vitrix Health[16637:5310642] flutter: /private/var/mobile/Containers/Data/Application/DCD63FC0-340C-4B0F-85C8-83720C9075D2/tmp/image_picker_D6E97B42-ED47-42A5-948E-013D8BD5DA24-16637-000022583D577A2B.jpg 2020-04-15 11:06:07.087875-0500 Vitrix Health[16637:5310356] [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:0x283df7ca0 LPLinkView:0x117e76690.leading == UILayoutGuide:0x2827e8ee0'UIViewLayoutMarginsGuide'.leading (active)>", "<NSLayoutConstraint:0x283df7570 H:[LPLinkView:0x117e76690]-(59)-| (active, names: '|':_UIActivityContentTitleView:0x117ee8860 )>", "<NSLayoutConstraint:0x283de2710 H:|-(0)-[_UIActivityContentTitleView:0x117ee8860] (active, names: '|':_UINavigationBarContentView:0x117ed4b10 )>", "<NSLayoutConstraint:0x283de1810 _UIActivityContentTitleView:0x117ee8860.trailing == _UINavigationBarContentView:0x117ed4b10.trailing (active)>", "<NSLayoutConstraint:0x283d8fac0 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x117ed4b10.width == 0 (active)>", "<NSLayoutConstraint:0x283df5220 'UIView-leftMargin-guide-constraint' H:|-(16)-UILayoutGuide:0x2827e8ee0'UIViewLayoutMarginsGuide' (active, names: '|':_UIActivityContentTitleView:0x117ee8860 )>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x283df7ca0 LPLinkView:0x117e76690.leading == UILayoutGuide:0x2827e8ee0'UIViewLayoutMarginsGuide'.leading (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.`

Is there a fix on the way for this?

diegoveloper commented 4 years ago

same issue here

diegoveloper commented 4 years ago

It's look like a dev fixed the issue but it wasn't merged, try using in this way :

  esys_flutter_share:
    git:
      url: https://github.com/neckaros/esys-flutter-share
diegoveloper commented 4 years ago

Well, it has some bugs for iPhone now so I ended up forking the project and apply my own changes:

  esys_flutter_share:
    git:
      url: https://github.com/aeyrium/esys-flutter-share
ayushkumar0630 commented 4 years ago

Are you aiming to push your changes so they can be merged to master?

diegoveloper commented 4 years ago

I've already sent a PR

ryanbliss commented 4 years ago

Same issue here; will link to your fork for now @diegoveloper, thanks for doing that.