Hello to all.
I have an issue with cordovaEmailComposer plug-in on iOS.
On ionic it’s working OK (see app id: 521b3b63 > menu Contact > send us e-mail), but it’s not working neither on iOS emulator nor iOS devices:
code:
//EMAIL SENDER
.controller(‘EmailSenderCtrl’, function($scope, $cordovaEmailComposer) {
$scope.sendContactMail = function(){
//Plugin documentation here: http://ngcordova.com/docs/plugins/emailComposer/
$cordovaEmailComposer.isAvailable().then(function() {
// is available
$cordovaEmailComposer.open({
to: xx@xx.com',
cc: 'xx@xx.com',
subject: 'Contact from xx app',
body: 'xxx xxx'
})
.then(null, function () {
// user cancelled email
});
}, function () {
// not available
});
};
})