-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachement is not working #28
Comments
I am also not getting the attachment.. it show an icon of a "pdf" in the window it opens. this is what i am doing.., it does send the email without an attachment fine. var canvas = document.getElementById('myCanvas')
|
The pdf icon in the mail composer doesn't mean, that the attachment is actually working! iOS seems to add an empty attachment as long as there is a file name with an extension it knows. If you are using an image or a pdf there should be an actual preview of it if it's working. |
Hello Any answer of my question i am adding simple html in the body and set the html attribute to true also. it showing me that attachment fine in the iPad but at the receiving end its not showing anything event not that html. note:- using Google account in the iPad for sending the email. Thanks |
... I am busy at the moment :( |
I've been trying to get it to work on Android and it appears to be a problem with the storage path. I've replaced a couple of lines in EmailComposer.java with a path that works on my test phone and verified that it does work but this is not a final solution since I'm creating the folder manually and I'm not sure this will work on other phones. This is my first try at modifying an Cordova plugin so I will keep working on it and if I come up with a good solution I will post it. I'm going to look at the iOS side also.
|
Let me be a little more specific. The code
returns the following for my app (PolicyHolderServices)
and
returns
So there seems to be a mismatch between the path being used to create the temporary file for the attachment and the path being used to retrieve it. |
Here's what I'm going with for Android. It requires external storage but so do some of the other options in the email composer. I borrowed a little bit from the relative section and also from the following SO article. Now onto iOS.
|
Hello |
Hello, both relative:// and base64:// had an error, which have been fixed now (missing permission and wrong dir path). |
Hello
i am using this plugin for jquerymobile+phonegap for IOS. while i am sending the image data as attachment as base 64 string() as you showed in the examples..
window.plugin.email.open({
subject: 'Cordova Icon',
attachments: ['base64:icon.png//iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/...']
});
it show me the encoded attachment on the device. and while receiving its not showing anything at all.
Thanks
Avneet
The text was updated successfully, but these errors were encountered: