Closed ghost closed 2 years ago
ios or android? and version?
Android version 10 & I didn't test on ios
Get Outlook for iOShttps://aka.ms/o0ukef
From: LiZhuoyuan @.> Sent: Tuesday, August 10, 2021 3:51:17 PM To: OpenFlutter/flutter_share_me @.> Cc: Almuhannad Ghaleb @.>; Author @.> Subject: Re: [OpenFlutter/flutter_share_me] Share image to whatsapp (#44)
ios or android? and version?
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenFlutter/flutter_share_me/issues/44#issuecomment-896000788, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATI3EV6MDJYPJZ4GBALZ4ULT4EOELANCNFSM5B3YO6KQ.
If the parameter of the picture is base64
yes it is in base64
Get Outlook for iOShttps://aka.ms/o0ukef
From: LiZhuoyuan @.> Sent: Thursday, August 12, 2021 11:33:36 AM To: OpenFlutter/flutter_share_me @.> Cc: Almuhannad Ghaleb @.>; Author @.> Subject: Re: [OpenFlutter/flutter_share_me] Share image to whatsapp (#44)
If the parameter of the picture is base64
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenFlutter/flutter_share_me/issues/44#issuecomment-897451384, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATI3EVYSO7HSFSBXCHMI7ODT4OBOBANCNFSM5B3YO6KQ.
try new version plz
ok I will and let you know thanks
Get Outlook for iOShttps://aka.ms/o0ukef
From: LiZhuoyuan @.> Sent: Thursday, August 12, 2021 12:01:37 PM To: OpenFlutter/flutter_share_me @.> Cc: Almuhannad Ghaleb @.>; Author @.> Subject: Re: [OpenFlutter/flutter_share_me] Share image to whatsapp (#44)
try new version plz
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenFlutter/flutter_share_me/issues/44#issuecomment-897469094, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATI3EV5UAOR7HN34LJ66S3TT4OEXDANCNFSM5B3YO6KQ.
sorry for late response the same problem my friend this is my code
final directory = await getApplicationDocumentsDirectory(); final imagePath = await File('${directory.path}/${gift.id}.png').create(); final Uint8List pngBytes = capturedImage.buffer.asUint8List(); await imagePath.writeAsBytes(pngBytes); String base64Image = base64Encode(pngBytes); print("base64Image $base64Image"); var response = await FlutterShareMe() .shareToWhatsApp(msg: "*", imagePath: base64Image); print("response $response");
print("base64Image $base64Image"); please show this result. And I am modifying the project, please use new version, and share the pictures using the local path.
Hi it is work now thanks without converting to base64 just with file path
thanks for your support
I got these errors when I tried to run on an ios device:
I am not using Facebook sharing
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/Toast/Toast/UIView+Toast.m:398:118: warning: 'UIActivityIndicatorViewStyleWhiteLarge' is deprecated: first deprecated in iOS 13.0 [-Wdeprecated-declarations]
UIActivityIndicatorView activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
^~~~~~~~~~
UIActivityIndicatorViewStyleLarge
In module 'UIKit' imported from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:18:5: note: 'UIActivityIndicatorViewStyleWhiteLarge' has been explicitly marked deprecated here
UIActivityIndicatorViewStyleWhiteLarge API_DEPRECATED_WITH_REPLACEMENT("UIActivityIndicatorViewStyleLarge", ios(2.0, 13.0), tvos(9.0, 13.0)) = 0,
^
1 warning generated.
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/libPhoneNumber-iOS/libPhoneNumber/NBPhoneNumberUtil.m:3482:51: warning: 'subscriberCellularProvider' is deprecated: first deprecated in iOS 12.0 [-Wdeprecated-declarations]
NSString isoCode = [[self.telephonyNetworkInfo subscriberCellularProvider] isoCountryCode];
^~~~~~
serviceSubscriberCellularProviders
In module 'CoreTelephony' imported from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/libPhoneNumber-iOS/libPhoneNumber/NBPhoneNumberUtil.m:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h:112:50: note: property 'subscriberCellularProvider' is declared deprecated here
@property(readonly, retain, nullable) CTCarrier subscriberCellularProvider API_DEPRECATED_WITH_REPLACEMENT("serviceSubscriberCellularProviders", ios(4.0, 12.0)) API_UNAVAILABLE(macos);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h:112:50: note: 'subscriberCellularProvider' has been explicitly marked deprecated here
1 warning generated.
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:69:84: warning: 'UIActivityIndicatorViewStyleWhiteLarge' is deprecated: first deprecated in iOS 13.0 [-Wdeprecated-declarations]
_loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
^~~~~~~~~~
UIActivityIndicatorViewStyleLarge
In module 'UIKit' imported from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:18:5: note: 'UIActivityIndicatorViewStyleWhiteLarge' has been explicitly marked deprecated here
UIActivityIndicatorViewStyleWhiteLarge API_DEPRECATED_WITH_REPLACEMENT("UIActivityIndicatorViewStyleLarge", ios(2.0, 13.0), tvos(9.0, 13.0)) = 0,
^
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:114:7: warning: 'UI_USER_INTERFACE_IDIOM' is deprecated: first deprecated in iOS 13.0 - Use -[UIDevice userInterfaceIdiom] directly. [-Wdeprecated-declarations]
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
^
In module 'UIKit' imported from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:97:36: note: 'UI_USER_INTERFACE_IDIOM' has been explicitly marked deprecated here
static inline UIUserInterfaceIdiom UI_USER_INTERFACE_IDIOM() API_DEPRECATED("Use -[UIDevice userInterfaceIdiom] directly.", ios(2.0, 13.0), tvos(9.0, 11.0)) {
^
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:170:57: error: unknown receiver 'FBSDKBasicUtility'; did you mean 'FBSDKTypeUtility'?
NSMutableDictionary<NSString , id> parameters = [[FBSDKBasicUtility dictionaryWithQueryString:URL.query] mutableCopy];
^~~~~
FBSDKTypeUtility
In file included from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:30:
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h:22:12: note: 'FBSDKTypeUtility' declared here
@interface FBSDKTypeUtility : NSObject
^
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:170:75: error: no known class method for selector 'dictionaryWithQueryString:'
NSMutableDictionary<NSString , id> *parameters = [[FBSDKBasicUtility dictionaryWithQueryString:URL.query] mutableCopy];
^~~~~~~~~
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:171:43: error: unknown receiver 'FBSDKBasicUtility'; did you mean 'FBSDKTypeUtility'?
[parameters addEntriesFromDictionary:[FBSDKBasicUtility dictionaryWithQueryString:URL.fragment]];
^~~~~
FBSDKTypeUtility
In file included from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:30:
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h:22:12: note: 'FBSDKTypeUtility' declared here
@interface FBSDKTypeUtility : NSObject
^
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:171:61: error: no known class method for selector 'dictionaryWithQueryString:'
[parameters addEntriesFromDictionary:[FBSDKBasicUtility dictionaryWithQueryString:URL.fragment]];
^~~~~~~~~
/Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m:186:40: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
[[UIApplication sharedApplication] openURL:URL];
^~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/henno/Desktop/SARAHAH/sarahah/ios/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here
Can you please try below Flutter clean pod update
Thank you so much broπ it works
perfect Closing this issue.
it is happening again, I did the flutter clean & pod update but still not working
Undefined symbols for architecture arm64: "_OBJCCLASS$_FBSDKShareLinkContent", referenced from: objc-class-ref in SwiftFlutterShareMePlugin.o "_OBJCCLASS$_FBSDKShareDialog", referenced from: objc-class-ref in SwiftFlutterShareMePlugin.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Using new build system note: Building targets in parallel note: Planning build note: Analyzing workspace note: Constructing build description note: Build preparation complete
*Note: RELEASE MODE
Hi Share the image to whats app not working, it just. take the message and ignore the image