Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Cannot share mage via whatsapp - iOS
Started by JustAGuy1 Jul 09 2019 11:28 PM

- - - - -
1 reply to this topic
[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

JustAGuy1

[GLOBAL: userInfoPane.html]
JustAGuy1
  • Observer

  • 22 posts
  • Corona SDK

Hello everyone,

I am trying to share an image and text via whatsapp using native.showPopup( "activity", options ). But the image does not show up in the message. Here is my code:

local popupListener = {}
function popupListener:popup( event )
    -- print(
    --     "(name, type, activity, action):", 
    --     event.name, event.type, tostring(event.activity), tostring(event.action)
    -- )
end
 
local itemsToShare = {
    {
        type = "image",
       
        value = { filename = "image1.png", baseDir = system.ResourceDirectory }
    },
    
    { type = "string", value = "Hello" },
}
 
local options = { items=itemsToShare, listener=popupListener }
 
native.showPopup( "activity", options )

It works fine with viber app. With whatsapp, only the text shows.

Second thing, after hitting send, the screen is white and it just froze.

Any suggestion? Thank you.



[TOPIC: post.html]
#2

JustAGuy1

[GLOBAL: userInfoPane.html]
JustAGuy1
  • Observer

  • 22 posts
  • Corona SDK

Sorry, typo the headline, Cannot share "image" via whatsapp - iOS




[topic_controls]
[/topic_controls]