SocialSharing plugin documentation says:
import { SocialSharing } from ‘ionic-native’;
// Check if sharing via email is supported
SocialSharing.canShareViaEmail().then(() => {
// Sharing via email is possible
}).catch(() => {
// Sharing via email is not possible
});
// Share via email
SocialSharing.shareViaEmail(‘Body’, ‘Subject’, ‘recipient@example.org’).then(() => {
// Success!
}).catch(() => {
// Error!
});
But the compiler says the method canShareViaEmail() is not availabel in SocialSharing.