[Resolved] Emailing from iPad - native.showPopup not working

Possible bug with the latest stable release (2012.840 / 2012.06.19).

I am trying to use the native.showPopup for email, however it doesn’t work for the app when built to my iPad 2, but does work in my iPhone 4s.

Function below shows the code I use. The native.showAlert and SMS work in the simulator and on both devices, but the mail one wont work on my iPad.

[lua]function emailJoke()
native.showPopup(“mail”, {
to = “”,
subject = “”,
isBodyHtml = false,
body = “”})

– native.showPopup(“sms”, optionsSMS)
– native.showAlert(“Mail”, “W U NO WORK ON iPad.”, {“Ok”},fakeListener)
end[/lua]

Any ideas? [import]uid: 62706 topic_id: 30031 reply_id: 330031[/import]

Just ran into this the other day.

Do you have the email client set up on the iPad? If that is not set up, it will just fail silently.

The showPopup method does return a success value. So you can at least you could notify the user as to what happened.

local emailSuccess = native.showPopup("mail",mailOptions)  
  
if not emailSuccess then  
 native.showAlert( "Error", "A configured email client was not detected.", { "OK" })  
end  

[import]uid: 94868 topic_id: 30031 reply_id: 120267[/import]

Wow perfect.

Completely forgot that I have not got email setup on my iPad.

Thanks for the code :slight_smile: [import]uid: 62706 topic_id: 30031 reply_id: 120289[/import]

Just ran into this the other day.

Do you have the email client set up on the iPad? If that is not set up, it will just fail silently.

The showPopup method does return a success value. So you can at least you could notify the user as to what happened.

local emailSuccess = native.showPopup("mail",mailOptions)  
  
if not emailSuccess then  
 native.showAlert( "Error", "A configured email client was not detected.", { "OK" })  
end  

[import]uid: 94868 topic_id: 30031 reply_id: 120267[/import]

Wow perfect.

Completely forgot that I have not got email setup on my iPad.

Thanks for the code :slight_smile: [import]uid: 62706 topic_id: 30031 reply_id: 120289[/import]