I've been experimenting with the latest phonegap. I took the Default PhoneGap Project, and ran it on iOS and Android using the Phonegap Developer App. All worked.
Then, within the onDeviceReady event, I added some geo-location stuff. All worked fine.
I then added cordova-plugin-email-composer to my config.xml file
<plugin name="cordova-plugin-email-composer" source="npm" spec="0.8.3"/>
and, within the onDeviceReady
event I added
cordova.plugins.email.open({
to: '[email protected]',
cc: '[email protected]',
bcc: ['[email protected]', '[email protected]'],
subject: 'Greetings',
body: 'How are you? Nice greetings from Leipzig'
});
(Lifted directly from https://github.com/katzer/cordova-plugin-email-composer)
In the browser ( phonegap serve
) this works - opens my email client. However, when run on Android and iOS (using the Phonegap Developer App) it doesn't work. The app renders, but I can't interact with it.
I've googled, and lots of people are reporting problems with the cordova-plugin-email-composer - but no solutions.
Thanks, Rob
The phonegap developer app I think doesn't include the plugin "cordova-plugin-email-composer" if you want still using phonegap developer app, clone https://github.com/phonegap/phonegap-app-developer add the plugin a use this one instead the app from the play store