Please help me with native.popup

Hi, there.

I have one problem with native.popup(“mail”, options).

I wanted to send email by using this function just like Android.

But it doesn’t work.

I think, it depends on my iPad’s version.

My iPad’s version is iOS 10.3.2.

Please help me with this.

Thank you.

Hi @jackylee0808,

Is this working fine on a different iOS device you have for testing?

Best regards,

Brent

Thank you for your advice.

And I didn’t. I have just one iOS device-iPad.

But as I mentioned many people said about the version of device.

How can I fix this problem?

Is there any other way to send email directly without native.showpopup?

Thank you.

Hi @jackylee0808,

The version of iOS should not be important. Most often, this issue is caused because the device does not have the iOS “Mail” application properly configured and set up with a valid account. Can you please check this detail?

Thanks,

Brent

Hello.

I checked iOS “Mail” app and it works well.


local textItems = {

   { type = “string”, value = “Hello World!” },

   { type = “string”, value = “Good night, and good luck.” },

}

local options = { items=textItems, listener=popupListener }

native.showPopup( “activity”, options )


When I use this code in my project, the app shows a popup with available mailing apps.

But that’s not the correct result.

In Android versioned app, the app send an email with images to others directly, but with this code in iOS, I have to type “To” and “Subject”.

I want to set those information in the code and send the mail directly to the others.

Is there any way to do this job?

Thank you very much.

What happens with this code?

-- Email popup with multiple correspondents and attachments local options = { to = { "john.doe@somewhere.com", "jane.doe@somewhere.com" }, cc = { "john.smith@somewhere.com", "jane.smith@somewhere.com" }, subject = "My High Score", isBodyHtml = true, body = "\<html\>\<body\>I scored over \<b\>9000\</b\>!!! Can you do better?\</body\>\</html\>", attachment = { { baseDir=system.DocumentsDirectory, filename="image.png", type="image/png" } } } native.showPopup( "mail", options )

Hi @jackylee0808,

Is this working fine on a different iOS device you have for testing?

Best regards,

Brent

Thank you for your advice.

And I didn’t. I have just one iOS device-iPad.

But as I mentioned many people said about the version of device.

How can I fix this problem?

Is there any other way to send email directly without native.showpopup?

Thank you.

Hi @jackylee0808,

The version of iOS should not be important. Most often, this issue is caused because the device does not have the iOS “Mail” application properly configured and set up with a valid account. Can you please check this detail?

Thanks,

Brent

Hello.

I checked iOS “Mail” app and it works well.


local textItems = {

   { type = “string”, value = “Hello World!” },

   { type = “string”, value = “Good night, and good luck.” },

}

local options = { items=textItems, listener=popupListener }

native.showPopup( “activity”, options )


When I use this code in my project, the app shows a popup with available mailing apps.

But that’s not the correct result.

In Android versioned app, the app send an email with images to others directly, but with this code in iOS, I have to type “To” and “Subject”.

I want to set those information in the code and send the mail directly to the others.

Is there any way to do this job?

Thank you very much.

What happens with this code?

-- Email popup with multiple correspondents and attachments local options = { to = { "john.doe@somewhere.com", "jane.doe@somewhere.com" }, cc = { "john.smith@somewhere.com", "jane.smith@somewhere.com" }, subject = "My High Score", isBodyHtml = true, body = "\<html\>\<body\>I scored over \<b\>9000\</b\>!!! Can you do better?\</body\>\</html\>", attachment = { { baseDir=system.DocumentsDirectory, filename="image.png", type="image/png" } } } native.showPopup( "mail", options )