Open sdaly31 opened 2 years ago
I use shareVia
for my Android app, and have not seen any issue attaching images. Tested on Pixel 6 / Android 12.
const message = "Test message!";
const composerActivity =
"com.twitter.android/com.twitter.composer.ComposerActivity";
const imageBase64 = "data:image/png;base64,R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7";
await SocialSharing.shareVia(composerActivity, message, undefined, imageBase64);
I am trying to add an image to a tweet in android. I am using the sharewithOptions function and the com.twitter.composer.ComposerActivity as suggested in this thread https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/1153
The result is an empty tweet box appearing, no image is attatched. A message can be passed no problem.
Any ideas? Thanks