Closed jigarfumakiya closed 3 years ago
Hey @lizhuoyuan Did you release this version on pub or not?
Also, I have some plans for this plugin for adding multiple new features. I like to be a co-contributor of the packages.
Let me know what you think. Thanks
@jigarfumakiya Thank you for your contribution, I would love to have someone willing to work hard for this, which will help many people. I am going to release it after the test is correct, and tomorrow at the latest.
Perfect @lizhuoyuan
Hey, bro. I have a question about sharing pictures on whatsapp.
/// @parm imageUrl is local image
Future<String?> shareToWhatsApp({String msg = '', String imageUrl = ''})
The parameter here refers to the local path, or the image URL, or byte, base64?
This refers to the local image URL. As of now, we don't have support base64. Will add it soon.
So it is a path to a local image,right?
Yes, It's a path to a local image.
When I want to share pictures to whatsapp, it always fails and returns false. I saved a picture from elsewhere to the phone, the following is the path: /var/mobile/Containers/Data/Application/3C79084F-F2C6-410C-9D1A-FD894122DE45/Documents/deer_test_share_2021-08-12 16:18:31.930366.png
@lizhuoyuan Will debug it later today. Can you please send me which device and model? Thanks
iphone X os version: 14.4.2
Thanks Let me know if you find any other issues
Hey @lizhuoyuan I have done some debugging. I am able to go to WhatsApp share but there is some issue going on maybe on WhatsApp that says This item can not be shared
Here is the image
But Plugin successfully sending users to WhatsApp App.I am not able to reproduce the issue as suggested
Let me know what is error you get.
This did not work for me, it does not share directly to whatsapp, it creates a temp file and open the native bottom sheet
Yes, it's correct because WhatsApp doesn't allow direct picture sharing in IOS due to security reasons. You can read more if you want here-:https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en
@jigarfumakiya I have added permissions to you, can you see if you can modify the code directly
@lizhuoyuan we can do nothing here. As @armandojimenez said it crate the temp file and opens the bottom sheet so the plugin working as expected. As I said before Whats doesn't allow direct sharing you read more on their official doc.
Hello @lizhuoyuan
This is PR suggest below changes.
Can you please take look at all the changes and let me know if require any changes or you want to discuss anything.
Note-:Some might be breaking changes.
Let me know Jigar