this does not seem to be working for me when i tried to test some code. appreciate some assistance to resolve.
im using:
iPhone 4S
Corona 2012.849 (2012.7.11)
Error i receive:
ERROR: native.showPopup() does not support mail popups on this device.
code as follows:
local button = display.newImage( “button.png” )
button.x = display.contentWidth / 2
button.y = display.contentHeight - 50
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
local options =
{
to = “john.doe@somewhere.com”,
subject = “My High Score”,
body = “I scored over 9000!!! Can you do better?”,
attachment = { baseDir=system.DocumentsDirectory,
filename=“Screenshot.png”, type=“image” },
}
print(“try to show popup…”)
native.showPopup(“mail”, options)
end
button:addEventListener( “tap”, button )
[import]uid: 163614 topic_id: 28897 reply_id: 328897[/import]