Skip to content

Commit

Permalink
feat(social-sharing): Add missing method shareViaWhatsAppToPhone(#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
SidiBecker authored Oct 16, 2020
1 parent 5a77eab commit f3ce3c4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/@ionic-native/plugins/social-sharing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,21 @@ export class SocialSharing extends IonicNativePlugin {
saveToPhotoAlbum(fileOrFileArray: string | string[]): Promise<any> {
return;
}

/**
* Shares directly to a WhatsApp Contact with phone number.
* @param phone {string} Pass phone number
* @param message {string} Message to send
* @param fileOrFileArray fileOrFileArray Single or multiple files
* @param url {string} Link to send
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 5,
errorIndex: 6,
platforms: ['iOS', 'Android'],
})
shareViaWhatsAppToPhone(phone: string, message: string, fileOrFileArray: string | string[], url?: string): Promise<any> {
return;
}
}

0 comments on commit f3ce3c4

Please sign in to comment.