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
}
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
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