Closed hsmith825 closed 10 years ago
Hello @hsmith825
First apologies for my delay in response. I modified my default notification settings in GitHub to squelch a huge number of notifications when I joined a large GitHub organization for my work. I didn't realize this unsubscribed me from my own open source projects. I'm truly sorry for that.
You code sample above looks fine. My guess is your html page doesn't link to the Javascript source for the module, like these lines. The key line here is including the ../js/index.js
file, which should be ~/EmailComposer.js:
<script type="text/javascript" src="../cordova.js"></script>
<script type="text/javascript" src="../js/index.js"></script>
<script type="text/javascript">
function showEmailComposer() {
cordova.require('emailcomposer.EmailComposer').show({
to: 'to@example.com',
Warm regards, Steve
Hi Steve,
I understand.
Thanks for getting back. I solved the problem and its been a wile so I don’t recall what the problem was.
Thanks!
Howard
From: Steve Jansen [mailto:notifications@github.com] Sent: Saturday, July 19, 2014 12:00 PM To: steve-jansen/cordova-ios-emailcomposer Cc: hsmith825 Subject: Re: [cordova-ios-emailcomposer] module emailcomposer.EmailComposer not found (#8)
Hello @hsmith825 https://github.com/hsmith825
First apologies for my delay in response. I modified my default notification settings in GitHub to squelch a huge number of notifications when I joined a large GitHub organization for my work. I didn't realize this unsubscribed me from my own open source projects. I'm truly sorry for that.
You code sample above looks fine. My guess is your html page doesn't link to the Javascript source for the module, like these lines https://github.com/steve-jansen/cordova-ios-emailcomposer/blob/master/www/EmailComposer.html#L17-L21 :
<script type="text/javascript" src="../cordova.js"></script>
<script type="text/javascript" src="../js/index.js"></script>
<script type="text/javascript">
function showEmailComposer() {
cordova.require('emailcomposer.EmailComposer').show({
to: 'to@example.com',
Warm regards, Steve
— Reply to this email directly or view it on GitHub https://github.com/steve-jansen/cordova-ios-emailcomposer/issues/8#issuecomment-49526777 . https://github.com/notifications/beacon/1394060__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTQxNTU4MCwiZGF0YSI6eyJpZCI6MzIxODAzODV9fQ==--06032c7221c0b3f2dc10e9ae0b5570058262b0db.gif
@hsmith825 glad to hear it worked out!
I installed the EmailComposer using the manual process that you outlined on Cordoval 2.9. I received the error: module emailcomposer.EmailComposer not found when I attempted the following: var emailComposer = cordova.require('emailcomposer.EmailComposer')
Thanks for any help you can provide!
Howard Howard@flickitt.com