Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

[iOS] activity.showPopup -> Send email -> No subject
Started by a.voitov Feb 25 2018 10:35 AM

1 reply to this topic
ios activity.showpopup email subject
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

a.voitov

[GLOBAL: userInfoPane.html]
a.voitov
  • Enthusiast

  • 44 posts
  • Corona SDK

Hello everyone!

Does anybody know how to add subject when send email through activity.showPopup( "activity", options ) [iOS]?

 

Here is my code:

 

local activity = require( "CoronaProvider.native.popup.activity" )
 
local textItems = {
     { type = "string", value = "Text message!" },
     { type = "url", value = "https://www.test.org" },
}
 
local exlcudeOption = {
"UIActivityTypePrint", 
"UIActivityTypeAssignToContact", 
"UIActivityTypeSaveToCameraRoll", 
"UIActivityTypeAddToReadingList", 
"UIActivityTypeAirDrop"
}
 
local options = { items=textItems, excludedActivities=exlcudeOption, listener=activityPopupListener }
activity.showPopup( "activity", options )
 
Thanks!!!


[TOPIC: post.html]
#2

a.voitov

[GLOBAL: userInfoPane.html]
a.voitov
  • Enthusiast

  • 44 posts
  • Corona SDK

Same problem with Android...

Option "subject" is being ignored.

 

Here is my code:

 

if (native.canShowPopup("social", "share") == true) then
native.showPopup("social", 
{
          message = "Text\n",
          subject = "Subject",
          url = "https://www.test.org",
          listener = listener,
}) 
end




[topic_controls]
 
[/topic_controls]