OpenFlutter / flutter_share_me

Flutter Plugin for sharing contents to social media. You can use it share to Facebook , WhatsApp , Twitter And System Share UI. Support Url and Text.
https://github.com/lizhuoyuan
Apache License 2.0
150 stars 145 forks source link

Phone number feature business WhatsApp #83

Open vaartatechnologies opened 2 years ago

vaartatechnologies commented 2 years ago

Hi, is sending message to business WhatsApp by passing phone number argument already available in plugin? Or is it just me who couldn't find it.

As we can do with personal WhatsApp:

final FlutterShareMe flutterShareMe = FlutterShareMe(); await flutterShareMe.shareWhatsAppPersonalMessage(message: 'Test Message', phoneNumber: '+919999999999');

Can we also do same with business whats app. If not would you be kind enough to implement that please?

jigarfumakiya commented 2 years ago

Hey @vaartatechnologies Thanks for opening an issue.

You already have the WhatsAppBusiness feature but that only supports Android. Take look at the readme IOS SDK doesn't provide API for WhatsApp business.

vaartatechnologies commented 2 years ago

Thanks for quick reply. Yes I only need it for Android, not for IOS.

But when I try:

await flutterShareMe.shareToWhatsApp4Biz(msg: 'Testing', phoneNumber: '+919999999999');

It shows error: The named parameter 'phoneNumber' isn't defined. P.S. I want message to specific contact pragmatically in business whats app.

Please help.

vishalpatel1327 commented 1 year ago

Respected, lets ignore ios for now but can you guys plz add that feature for android? because actually thats very important feature for invoice sharing kind of where customer are using whatsapp buisness

vishalpatel1327 commented 1 year ago

@jigarfumakiya is that any possibility to make it for android only ?

HeyRonak commented 1 year ago

@vaartatechnologies have you found any solution? or any alternative