cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git.
I then attempt to use the plugin in two different ways like so:
cordova.plugins.email.open(); for a blank email and
cordova.plugins.email.open({
to: 'geo...@cyberwurks.com',
subject: 'Database',
body: 'Database Attached'});
for a pre-filled email draft. Neither example works. In fact, the code immediately
following the above doesn't get executed. It somehow simply
bypasses the remainder of code in the function where this code is used. According
to WebStorm, "email" is an "uresolved variable"? Any ideas will be greatly appeciated.
Regards,
I am testing on an Android smartphone with confirms, etc.
How are you testing the app?
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/UHJ97uKowu8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes
--
I am attempting to use the cordova email composer and followed the instructions for installing it, i.e., from the cli :
cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git.
I then attempt to use the plugin in two different ways like so:
cordova.plugins.email.open(); for a blank email and
cordova.plugins.email.open({
to: 'geo...@cyber.com',
My concern with specifying the app is this: what happens if that client is not installed on the device? You'll want to test that out in your app.
Thanks Kerri. I will submit a bug report later when i have the time. This issue has put me behind schedule and i need to wrap up this project first.
I'm going to suggest filing a bug on that on the plugin's repo. Either the documentation needs to be clarified, or the plugin may be acting in a way that's not intended.
My concern with specifying the app is this: what happens if that client is not installed on the device? You'll want to test that out in your app.
The thing is if you check the code for android. IsAvaialble checking two
things.
1. If you have configured the default mail client.
2. If there is
any application which support mail service.
And it return both two values isPossible , withSchema respectively.
So it should work if you have configured default mail client.
I fixed this according to my need you can find it
https://github.com/hunnysharma102/cordova-plugin-email-composer.git