iOS 7 native.showPopup Email with attachment

I am not able to attach PDF file in iOS 7 email using native.showPopup(). It works on iOS 6 and Android, just doesn’t work iOS7 only. is it a bug or do I miss something?

            local options =

            {

               subject = “This is a testing subject”,

               isBodyHtml = true,

               body = “This is a testing message”,

               attachment =

               {

                  { baseDir=system.ResourceDirectory, filename=“sample.pdf”, type=“PDF” },

               },

            }            

            native.showPopup(‘mail’, options)

I have the same problem.  I just upgraded to iOS7 and can not use native.showPopup().  This is so annoying!

Do you have find any solution for this problem?

Thanks!

Would it be possible to get one of you to file a bug report on this please?  Make sure to include your build.settings and config.lua with the sample project that shows the problem.

Please post the bug report number back to the thread when you get the email confirmation.

Thanks

Rob

Rob,

I filed a bug report on 2/17/2014.  Case 30579

Regards,

Ime

I have the same problem.  I just upgraded to iOS7 and can not use native.showPopup().  This is so annoying!

Do you have find any solution for this problem?

Thanks!

Would it be possible to get one of you to file a bug report on this please?  Make sure to include your build.settings and config.lua with the sample project that shows the problem.

Please post the bug report number back to the thread when you get the email confirmation.

Thanks

Rob

Rob,

I filed a bug report on 2/17/2014.  Case 30579

Regards,

Ime

Has there been any resolve to this bug … case # 30579.   My app on Ios7 iPad, has a support link for user, and the native.showPopup does execute in the app;  the email screen pops-up, send button seems to react and close out the popup screen. But, the email does not get to my support email box.  Never had this issue prior to Ios7.

Any update on this bug?

Thanks

Exactly what is the bug being reported here?

Is it:  I can’t attach a PDF?

or:  I can’t attach anything?

The filed bug report is trying to attach an image, is the bug with capturing the image?

BTW:  Please make sure when you file bug reports to include **the** config.lua and build.settings **you** are using… and all needed assets. The Top post shows loading a PDF from the ResourcesDirectory.  If that code was used to file a bug report and you don’t include the PDF in this case, we can’t really use it.

Thanks

Rob

I’ve spent some time testing this today and it’s working as expected.

    local options =       {         to = { "",},         subject = "Check out this PDF!",         body = "",         attachment =         {           { baseDir=system.ResourceDirectory, filename="myfile.pdf", type="application/pdf" },         },       }       native.showPopup("mail", options)

The PDF I put in my folder with my main.lua came through loud and clear in the email I got.  The one thing I noticed is that the attachment was a tiny square.  This was with 2014.2189.

For the code that came with the original bug report, it was trying to do a display.save() to generate the image.  For some reason those files also show with a tiny square, but using either a type of “image/png” or “image/jpeg” worked.  For an image from my camera that I dropped in the Resource folder showed the thumbnail as expected.

Rob

Follow up.  After looking at the image being generated by the code in the bug report, it’s creating white images on a transparent background.  When that image is loaded into the email popup which has a white background, it’s not visible.  As soon as I colored the objects, the image showed up as expected.

I suspect that if the PDF doesn’t have an embedded thumbnail, we don’t know what to show, ergo the small rectangle.   The end user’s email does have the file attached correctly.

Rob,

Thanks for digging into that bug report and figuring that out.

Interesting little fix.

Thanks

i feed upset, i can’t submit app on App Store, 5th yes

Has there been any resolve to this bug … case # 30579.   My app on Ios7 iPad, has a support link for user, and the native.showPopup does execute in the app;  the email screen pops-up, send button seems to react and close out the popup screen. But, the email does not get to my support email box.  Never had this issue prior to Ios7.

Any update on this bug?

Thanks

Exactly what is the bug being reported here?

Is it:  I can’t attach a PDF?

or:  I can’t attach anything?

The filed bug report is trying to attach an image, is the bug with capturing the image?

BTW:  Please make sure when you file bug reports to include **the** config.lua and build.settings **you** are using… and all needed assets. The Top post shows loading a PDF from the ResourcesDirectory.  If that code was used to file a bug report and you don’t include the PDF in this case, we can’t really use it.

Thanks

Rob

I’ve spent some time testing this today and it’s working as expected.

    local options =       {         to = { "",},         subject = "Check out this PDF!",         body = "",         attachment =         {           { baseDir=system.ResourceDirectory, filename="myfile.pdf", type="application/pdf" },         },       }       native.showPopup("mail", options)

The PDF I put in my folder with my main.lua came through loud and clear in the email I got.  The one thing I noticed is that the attachment was a tiny square.  This was with 2014.2189.

For the code that came with the original bug report, it was trying to do a display.save() to generate the image.  For some reason those files also show with a tiny square, but using either a type of “image/png” or “image/jpeg” worked.  For an image from my camera that I dropped in the Resource folder showed the thumbnail as expected.

Rob

Follow up.  After looking at the image being generated by the code in the bug report, it’s creating white images on a transparent background.  When that image is loaded into the email popup which has a white background, it’s not visible.  As soon as I colored the objects, the image showed up as expected.

I suspect that if the PDF doesn’t have an embedded thumbnail, we don’t know what to show, ergo the small rectangle.   The end user’s email does have the file attached correctly.

Rob,

Thanks for digging into that bug report and figuring that out.

Interesting little fix.

Thanks