i feed upset, i can’t submit app on App Store, 5th yes
Bob, As this was a year ago I assume that native.showPopup Email with attachment is working ok.
How is this tested? I have tested in the IOS simulator and the email window pops up. However, the TO field is empty and also the content.
No email is sent.
Do I have to do this test on the device [not available at the mo’] to get it fully tested?
Here is the test code
xxx is a proper email adress but marked out here
-----example test code follow-----------
local baseDir = system.DocumentsDirectory
local scnname =“myScreenshot”…math.random(1234)…“jpg” —FILE CREATED OK EACH RUN
display.save( localGroup,scnname , baseDir )
– Create mail options –
local options =
{
to = “xxx@gmail.com”, --THIS DOES NOT APPEAR IN POPUP
subject = “yyyyy”, —THIS APPEARS IN POPUP OK !!
body = “Hi, Screen shot attached.Please comment on it’s content”,–THIS DOES NOT APPEAR
attachment =
{
{ baseDir=system.DocumentsDirectory, filename=scnname, type=“image/png” },
}
}
– Send mail –
native.showPopup(“mail”, options) —POPUP APPEARS ON SCREEN
end
PS- Running IOS 8
Bob, As this was a year ago I assume that native.showPopup Email with attachment is working ok.
How is this tested? I have tested in the IOS simulator and the email window pops up. However, the TO field is empty and also the content.
No email is sent.
Do I have to do this test on the device [not available at the mo’] to get it fully tested?
Here is the test code
xxx is a proper email adress but marked out here
-----example test code follow-----------
local baseDir = system.DocumentsDirectory
local scnname =“myScreenshot”…math.random(1234)…“jpg” —FILE CREATED OK EACH RUN
display.save( localGroup,scnname , baseDir )
– Create mail options –
local options =
{
to = “xxx@gmail.com”, --THIS DOES NOT APPEAR IN POPUP
subject = “yyyyy”, —THIS APPEARS IN POPUP OK !!
body = “Hi, Screen shot attached.Please comment on it’s content”,–THIS DOES NOT APPEAR
attachment =
{
{ baseDir=system.DocumentsDirectory, filename=scnname, type=“image/png” },
}
}
– Send mail –
native.showPopup(“mail”, options) —POPUP APPEARS ON SCREEN
end
PS- Running IOS 8