-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Share_plus] Ipad not working #870
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
Comments
I tested share_plus 4.0.4 on an iPad simulator (software version 15.5) and a physical iPad device (software version 15.3.1), after executing Share.share('some text'), there was no response. The same code worked well on an iPhone simulator. The following error was encountered when running on a physical iPad:
|
Please use the Bug template to fill a bug report and include all the information in it |
I'm getting this error too, is there a solution? |
Maybe the documentation helps?
|
I'm getting the same error. Any workaround or fix out there? This blocks all of my apps from a new release... |
Had the same problem on iPad. Without providing sharePositionOrigin it will not work. Code can be taken from plugin example. |
Of course not, you have to provide this parameter on iPads, it is explained in the documentation |
I'm also experiencing this error on iPad when sharing a file (it's a PDF if that's relevant?), even though I'm providing the sharePositionOrigin:
Result: nothing happens, and this appears in the console:
|
@jamesncl which Can you provide the full code sample? The context that you use matters, because the box size and position will be different depending on the context you use. The simplest solution is to wrap the button that opens the share dialog with a However, this is a different type of error:
You should probably create a new ticket and provide all the required info |
Hello, On my side, when provided sharePositionOrigin as So if you don't face any errors, you have to manipulate with Offset value to display your Share dialog. |
@miquelbeltran @daniellai @tarja77 @jamesncl Please check what's issue deep link: https://firebase.google.com/docs/dynamic-links/flutter/create It's working fine for WhatsApp when i shared but not for skype [LayoutConstraints] Unable to simultaneously satisfy constraints. Will attempt to recover by breaking constraint Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. |
If it is working fine on some apps but not on one specific app, to me, it looks like a specific problem of that app and not on the plugin side |
@miquelbeltran how this issue from app side ..it's looks like something in internal file..Please check below logs Logs: [LayoutConstraints] Unable to simultaneously satisfy constraints. Will attempt to recover by breaking constraint Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. |
This has been documented in the README.md, when using the share_plus on iPad the |
@miquelbeltran i tested with this as well sharePositionOrigin |
Hii @miquelbeltran Please look into this ..it's urgent
sample code:
Check this above code
|
Where are you getting this context from? |
@miquelbeltran from Widget build(BuildContext context) { |
So that's probably wrong, and you are not providing a valid Rect in the sharePositionOrigin. If you look at the example main.dart you will see that the share call is wrapped with a Builder, and it is not using the context from the top widget. You need to understand what your code does, rather than copying code and complaining that things don't work. |
I am closing this issue now, if you have a problem providing the sharePositionOrigin, run the example in the project and see if you can reproduce the issue. If the example works, but your code doesn't, then there's a bug in your code. |
Share plus plugin version 4.0.4 is not working on IPAD while working on android correctly.
The text was updated successfully, but these errors were encountered: