Screenshot image is not showing for Twitter share on Android device -


i having issue hope can me solve. have set twitter sharing on corona sdk (using social plugin) players can post highscores. game save jpeg image , twitter loads inside message when sharing.

now issue on ios, works perfectly, on android devices image doesn't show in message body. can please me have been banging head trying figure out have gotten nowhere. cheers.

here code take screenshot:

function takephoto()     local basedir = system.documentsdirectory      display.save(overlaygroup, "myscreenshot.jpg", basedir )     print("pic saved") end 

and these options sharing:

local options = {     service = "twitter",     message = "you got highscore! ",     listener = tweetcallback,     image = {       basedir = system.documentsdirectory,       filename = "myscreenshot.jpg"     } } 

and these code in build.settings

android = {     versioncode = "1",     googleplaygamesappid = "xxxxxxxxxx", --my code here     usespermissions =     {         "android.permission.internet",         "android.permission.write_external_storage",         "android.permission.access_wifi_state",         "android.permission.access_network_state",     }, } 

system.documentsdirectory internal storage. can add following.

"android.permission.write_internal_storage",


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -