Native.showpopup not working

The showpopup is not working in my android or iOS device I followed the tutorial in sending mail using mail popup here are some relevant code:

[code]
local widget = require “widget”

function sendmail()
local options =
{
to = “wwwdotphilip@gmail.com”,
subject = “My High Score”,
body = “I scored over 9000!!! Can you do better?”,
}
native.showPopup(“mail”, options)
end

local buttonsend = widget.newButton
{
default = “done.png”,
over = “doneOver.png”,
onRelease = sendmail
}

buttonsend.x = display.contentWidth / 2; buttonsend.y = display.contentHeight / 2
[/code] [import]uid: 189861 topic_id: 34535 reply_id: 334535[/import]

Same problem here, send mail doesn’t work on iPad on daily build 1075… it just doesn’t show anything.

Same code DO work on Android.

Do you have an email account setup in the Mail app on iOS? If not then nothing happens, you can use the following code to test for this, as native.showPopup returns false if it fails to popup. 

[lua]

if not native.showPopup(‘mail’,options) then

print ‘no mail client setup on device’

end

[/lua]

Failing that, try and diagnose if it is a widget issue or a showPopup issue. Put a print statement at the top of the sendMail function and see if it prints to the console when your device is tethered to Xcode

Something like: [lua]print ‘Email button press received’ [/lua]

Wow!! perfect, just a noob issue. Thanks very much you saved my day, it wouln’t hurt to include that into the docs for native.showPopup. :) 

Same problem here, send mail doesn’t work on iPad on daily build 1075… it just doesn’t show anything.

Same code DO work on Android.

Do you have an email account setup in the Mail app on iOS? If not then nothing happens, you can use the following code to test for this, as native.showPopup returns false if it fails to popup. 

[lua]

if not native.showPopup(‘mail’,options) then

print ‘no mail client setup on device’

end

[/lua]

Failing that, try and diagnose if it is a widget issue or a showPopup issue. Put a print statement at the top of the sendMail function and see if it prints to the console when your device is tethered to Xcode

Something like: [lua]print ‘Email button press received’ [/lua]

Wow!! perfect, just a noob issue. Thanks very much you saved my day, it wouln’t hurt to include that into the docs for native.showPopup. :) 

Hi guys, thanks for documenting this issue. I just hit my head against this repeatedly before noticing that the mail account wasn’t setup! 

Hi guys, thanks for documenting this issue. I just hit my head against this repeatedly before noticing that the mail account wasn’t setup!