안드로이드에서 WhatsApp를 통해 특정 연락처에게 메시지, 링크 또는 파일을 직접 공유할 수 있는 가벼운 플러터 패키지입니다. 사전에 채워진 내용과 대상 연락처 번호와 함께 WhatsApp를 열어주는 과정을 단순화하여 원활한 통신을 통해 사용자 참여도를 높입니다. 이 패키지는 안드로이드 인텐트를 활용해 네이티브 통합을 구현하여 신뢰성 있는 전달과 최소한의 설정을 보장합니다. 직접 메시지를 통해 사용자 접근성을 향상시키고자 하는 앱에 이상적입니다.
Add if not exists one row to the ios/podfile after target runner:
...
target 'Runner'do
use_frameworks!
...
Android
If you pretends to use the file share, you need to configure the file provider, this will give access to the files turning possible to share with other applications.
Here is an snippets app displaying the two whatsapp share methods .
Whatsapp installed in this device ?
Future<void> isInstalled() async {
final val = awaitWhatsappShare.isInstalled(
package: Package.businessWhatsapp
);
print('Whatsapp Business is installed: $val');
}
If whatsapp is not installed, please do not call WhatsappShare.share() and WhatsappShare.shareFile()