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

When I press icon for to share, don't works. (sharedOptions) #117

Open
ivictoruan opened this issue Nov 29, 2022 · 2 comments · May be fixed by #128
Open

When I press icon for to share, don't works. (sharedOptions) #117

ivictoruan opened this issue Nov 29, 2022 · 2 comments · May be fixed by #128

Comments

@ivictoruan
Copy link

D/libGLESv2(18597): STS_GLApi : DTS, ODTC are not allowed for Package : com.example.racha_racha
[...]
D/ViewRootImpl@e920403MainActivity: ViewPostIme pointer 1
E/flutter (18597): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'String' is not a subtype of type 'bool?' in type cast
E/flutter (18597): #0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:167
E/flutter (18597):
E/flutter (18597): #1 SocialShare.shareOptions
package:social_share/social_share.dart:176
E/flutter (18597):

MissingPluginException('No implementation found for method $method on channel $name');
}

@ivictoruan ivictoruan changed the title When I press icon for to share, don't works. When I press icon for to share, don't works. (sharedOptions) Nov 29, 2022
@guigzp
Copy link

guigzp commented Dec 1, 2022

Same, I kinda fixed in a local fork.
I dont understood the purpose of this return so I dont feel confident to submit a PR, if somebody could check would be nice :)

goneall added a commit to goneall/social_share that referenced this issue Mar 20, 2023
Fixes ShekarMudaliyar#117

The Dart code is expecting a return type of bool and the Android
code is returning a type String.  I'm assuming "success" should
be translated to True.

I looked at the iOS code and it is returning a boolean type for
the same function.

Signed-off-by: Gary O'Neall <[email protected]>
@goneall goneall linked a pull request Mar 20, 2023 that will close this issue
@goneall
Copy link

goneall commented Mar 20, 2023

I ran into the same issue.

I just created a PR #128 which works for me.

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

Successfully merging a pull request may close this issue.

3 participants