-
Notifications
You must be signed in to change notification settings - Fork 574
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
Share Plugin - Local Image Sharing Problem with WhatsApp #196
Comments
plugins are now in this repository |
May I know do I need to use from plugin itself or install @capacitor/share & use? |
This plugins are going to be for Capacitor 3, which is in beta state at the moment, so I wouldn't recommend using them until Capacitor 3 is final. |
Is there any suggestion to use Share feature in App? Any package? |
@dhwalin We aren't adding any new features to Capacitor 2 at this time. This issue tracks the request for Capacitor 3+. |
But is there any possibility to solve the issue mentioned above? "Can't send empty message" |
I have the same issue, is there any solution for that yet? :) |
I have the same problem. To share images or files on Android by Whatsapp the error occurs. Sharing with other apps such as email or Hangouts works normally. On IOS/Iphone sharing works well with Whatsapp and other apps. My current solution was to use the Share plugin "https://capacitorjs.com/docs/apis/share#shareresult" for IOS/Iphone and another plugin for Android "https://ionicframework.com/docs/native/social- sharing" as the latter does not work on IOS either. |
Does anyone know if there is an update for this issue? |
I too am interested in knowing whether there is a solution for this, I'm trying to share images (have tried either a local file uri or a base64 encoded string and while the native share interface (on android) shows the image preview when I try to share with Whatsapp I get "File format not supported" and when I attempt to share via any of the Instagram methods it just opens Instagram and no share function is started. I am attempting to run a Svelte app through Capacitor and am not using Ionic, I'd be surprised if this was an issue, but just putting it out there. As a comparison I am having no problems sharing an image via similar means in an Expo app (using the expo-sharing plugin) however in an ideal world I'd use Capacitor with Svelte! |
Sorry just to follow on the fix presented by @MitchMakesThings here works for me with both Whatsapp and Instagram (so thank you Mitch!) |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out. |
Once again I am writing this problem. The thing is Sharing on Email is working. But when you try to share on WhatsApp, it says "can't send empty message", if you pass some text, only text is getting pasted in WhatsApp Chat window.
As per above code, first I am saving image in cache folder, get the path, pass the image file path with no text.
Sharesheet is getting open, on selection on WhatsApp, its get back into App by saying "Can't send empty message"
Now when you try with email, Image is getting attached.
So I guess there is no problem in my code. If anything is there, please let me know.
Testing Device:
One UI Core : 2.5
Android Version: 10
The text was updated successfully, but these errors were encountered: