You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
.controller('TestCtrl',function($cordovaEmailComposer){varvm=this;vm.open=function(){document.addEventListener('deviceready',function(){$cordovaEmailComposer.isAvailable().then(function(){varemail={to: '',cc: '',bcc: [],attachments: [],subject: 'Spray Record Data',body: 'Data collected from the Spray Record app'};$cordovaEmailComposer.open(email).then(null,function(){alert('Email cancelled');});},function(){alert('You do not have an email client set up.');});},false);}});
And a button in the html that triggers that function. All that gets called is 'You do not have an email set up'.
If I take out the $cordovaEmailComposer.isAvailable() it still doesn't work.
Seems to be an issue wit the new plugin version (0.8.3).
I fixed it by reverting to 0.8.2. (Edit: At least on Android) cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git#0.8.2
Not going to close as it's obviously still an issue with the current release, unless this should be posted to the repo of the plugin instead of ng-cordova.
I've just removed version 0.8.3, how do I get the previous 0.8.2?
I tried: $ cordova plugin add cordova-plugin-email-composer@0.8.2
and got:
Fetching plugin "cordova-plugin-email-composer@0.8.2" via npm
Error: Failed to fetch plugin cordova-plugin-email-composer@0.8.2 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: version not found: cordova-plugin-email-composer@0.8.2
@bennettstuart Have you properly included ng-cordova? Try making sure the plugin is fully deleted, then reinstall. Also try deleting your whole android build and rebuilding.
Activity
viktorlorentz commentedon Mar 3, 2016
Seems to be an issue wit the new plugin version (0.8.3).
I fixed it by reverting to 0.8.2. (Edit: At least on Android)
cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git#0.8.2
ozziexsh commentedon Mar 3, 2016
Yup that did the trick. Thanks @viktorlorentz.
Not going to close as it's obviously still an issue with the current release, unless this should be posted to the repo of the plugin instead of ng-cordova.
CheetahDev commentedon Mar 4, 2016
+1
yadavgn commentedon May 29, 2016
+1,
I have tried this on Sony experia z ; Android 5.1
plugin version 0.8.3 didn't worked but version 0.8.2 works fine.
micschk commentedon Jun 10, 2016
+1
ghost commentedon Jun 23, 2016
+1 Thank you. meet the exactly same problem. In android, 0.8.3 didn't worked but 0.8.2 works fine.
bennettstuart commentedon Jun 28, 2016
Probably a silly question but...
I've just removed version 0.8.3, how do I get the previous 0.8.2?
I tried:
$ cordova plugin add cordova-plugin-email-composer@0.8.2
and got:
ghost commentedon Jun 28, 2016
Try the full URL to see how's go.
cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git#0.8.2
bennettstuart commentedon Jun 28, 2016
@linkchiu Thanks, worked perfectly.
However, this has not solved the issue for me.
I've copied @Nehero 's code, with a simple ng-click on a button firing his code.
The function fires but nothing happens on my device.
I have 0.8.2 version of the plugin. I'm on Android 6.0 on MotoG V3 phone
I don't know where the issue could lie, any ideas?
ozziexsh commentedon Jun 29, 2016
@bennettstuart Have you properly included ng-cordova? Try making sure the plugin is fully deleted, then reinstall. Also try deleting your whole android build and rebuilding.
bennettstuart commentedon Jun 29, 2016
I started a fresh project, and reinstalled the things you suggested @Nehero.
Everything is working fine now. Thanks for your help!
CheetahDev commentedon Oct 14, 2016
Any update on the topic?
Still not working with 0.8.3
Thanks!
CheetahDev commentedon Jul 7, 2017
Latest plugin version has been published on NPM (0.8.7). Works as expected. 👍