whatsapp_direct_send 0.2.1
whatsapp_direct_send: ^0.2.1 copied to clipboard
A Flutter plugin to send text messages and/or images directly to a WhatsApp contact on Android via ACTION_SEND intents.
Changelog #
All notable changes to this project will be documented in this file.
The format loosely follows Keep a Changelog and the project adheres to Semantic Versioning.
0.2.1 - 2026-02-26 #
Fixed #
- Renamed internal method-channel identifiers from
send/registrytoshareToChat/openChatto match the public Dart API. - Updated README to use current API names (
shareToChat(),openChat()) replacing obsolete references tosend()andregistry().
0.2.0 - 2026-02-25 #
Breaking Changes #
- Renamed
send()→shareToChat()to better reflect that the method prepares content for sharing (the user still presses send in WhatsApp).
Added #
- New
openChat()method that usesACTION_VIEWwith WhatsApp's Click-to-Chat URL (https://wa.me/{phone}?text={text}). Works for any phone number regardless of chat history (text only, no image support).
Documented #
shareToChat()limitation: thejidextra inACTION_SENDis silently ignored by WhatsApp when the target phone number has no existing chat thread. See #1.
0.1.1 - 2026-02-19 #
Fixed #
- Use a dedicated
WhatsappDirectSendFileProvidersubclass instead ofandroidx.core.content.FileProviderdirectly, preventing manifest-merger conflicts with other plugins that also declare aFileProvider(e.g.flutter_image_clipboard,image_picker).
0.1.0 - 2026-02-18 #
Added #
- Initial release.
WhatsappDirectSend.send()method to share text and/or images via WhatsApp.- Auto-detection of WhatsApp and WhatsApp Business.
- Fallback to system share sheet when WhatsApp is not installed.
- Built-in
FileProviderfor secure image sharing. - Android
<queries>declarations for API 30+ package visibility.