Amitpatil215 / whatsapp_share

Share text, link, image, files to specific whatsapp contact in flutter
https://pub.dev/packages/whatsapp_share
MIT License
10 stars 16 forks source link

Doesn't work with unsaved contacts ! #13

Open DarkLordZeus opened 1 year ago

DarkLordZeus commented 1 year ago

It doesn't work as expected with unsaved contacts ..instead of sending the files to the specified contact it shows list of saved contacts and ask to choose out of them!

rahul-yr commented 1 year ago

Any work around for this ?

Amitpatil215 commented 1 year ago

You can try using click to chat feature from WhatsApp

Create your own link

Use https://wa.me/ where the is a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.

Use: https://wa.me/1XXXXXXXXXX
Don't use: https://wa.me/+001-(XXX)XXXXXXX

Create your own link with a pre-filled message

The pre-filled message will automatically appear in the text field of a chat. Use https://wa.me/whatsappphonenumber?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and urlencodedtext is the URL-encoded pre-filled message.

To create a link with just a pre-filled message, use https://wa.me/?text=urlencodedtext
Example: https://wa.me/?text=I'm%20inquiring%20about%20the%20apartment%20listing

After clicking on the link, you’ll be shown a list of contacts you can send your message to.

Source : https://faq.whatsapp.com/5913398998672934/?helpref=uf_share

rahul-yr commented 1 year ago

You can try using click to chat feature from WhatsApp

Create your own link

Use https://wa.me/ where the is a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.

Use: https://wa.me/1XXXXXXXXXX
Don't use: https://wa.me/+001-(XXX)XXXXXXX

Create your own link with a pre-filled message

The pre-filled message will automatically appear in the text field of a chat. Use https://wa.me/whatsappphonenumber?text=urlencodedtext where whatsappphonenumber is a full phone number in international format and urlencodedtext is the URL-encoded pre-filled message.

To create a link with just a pre-filled message, use https://wa.me/?text=urlencodedtext
Example: https://wa.me/?text=I'm%20inquiring%20about%20the%20apartment%20listing

After clicking on the link, you’ll be shown a list of contacts you can send your message to.

Source : https://faq.whatsapp.com/5913398998672934/?helpref=uf_share

Yes, that works irrespective of the saved contacts. But I can't attach files.

Amitpatil215 commented 1 year ago

That's right @rahul-yr . For now I can't think of any workaround regarding Sharing files to unsaved WhatsApp contacts. Will keep you posted if I find anything.

rahul-yr commented 1 year ago

ok

letsintegreat commented 8 months ago

Have you guys figured out something yet, any other package maybe? I can't send files to unsaved numbers.