share-to-whatsapp
v0.0.6
Published
The share-to-whatsapp plugin allows you to easily share images and PDF files directly to a specified WhatsApp number from your Ionic/Capacitor application.
Downloads
9
Readme
share-to-whatsapp
The share-to-whatsapp plugin allows you to easily share images and PDF files directly to a specified WhatsApp number from your Ionic/Capacitor application.
Install
npm install share-to-whatsapp
npx cap sync
API
shareImage(...)
shareImage(options: { base64?: string; fileName?: string; phoneNumber?: string; message?: string; bundleId: string; }) => Promise<void>
| Param | Type |
| ------------- | -------------------------------------------------------------------------------------------------------------- |
| options
| { base64?: string; fileName?: string; phoneNumber?: string; message?: string; bundleId: string; } |
sharePdf(...)
sharePdf(options: { base64?: string; fileName?: string; phoneNumber?: string; message?: string; bundleId: string; }) => Promise<void>
| Param | Type |
| ------------- | -------------------------------------------------------------------------------------------------------------- |
| options
| { base64?: string; fileName?: string; phoneNumber?: string; message?: string; bundleId: string; } |