flutter_packages icon indicating copy to clipboard operation
flutter_packages copied to clipboard

[ BUG ] : Wrong asset picking

Open Badar25 opened this issue 1 year ago • 9 comments

Plugin name

  • Appinio social share

Describe the bug While downloading and writing it in temp directory using path_provider, and passing the same path but still it picks random video from my gallery and forwarding it for sharing for tiktok, instagram. Is this a bug? Its happening on iOS only.

Expected behavior It should pick exact video which im passing

Screenshots If applicable, add screenshots to help explain your problem. This is my code, downloading asset from storage and passing it to appinio. image

Smartphone (please complete the following information):

  • Device: iphone 12 PRO
  • OS: ios 16.4
  • package version: latest

Addition I have confirmed the video which im downloading is different and appinio is sharing different video, while deleting that random video, it still picked another random video from my gallery.

Badar25 avatar Mar 05 '24 05:03 Badar25

I think there was something wrong with video formate, i have changed the video and its now working fine

Badar25 avatar Mar 05 '24 06:03 Badar25

its still happening

Badar25 avatar Mar 11 '24 12:03 Badar25

Hey @Badar25 , According the code we wrote for sharing to tiktok. We save the asset to user gallery and then pick it from there, is your asset getting saved? Can you see it in photos?

khanmujeeb687 avatar Mar 22 '24 11:03 khanmujeeb687

Yes but then you guys are sorting it via date and thats why its picking wrong asset

On Fri, Mar 22, 2024 at 4:54 PM Mujeeb khan @.***> wrote:

Hey @Badar25 https://github.com/Badar25 , According the code we wrote for sharing to tiktok. We save the asset to user gallery and then pick it from there, is your asset getting saved? Can you see it in photos?

— Reply to this email directly, view it on GitHub https://github.com/appinioGmbH/flutter_packages/issues/245#issuecomment-2014923607, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5C5RMO56TNQUEITCG3HW5TYZQLY5AVCNFSM6AAAAABEGO2U6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUHEZDGNRQG4 . You are receiving this because you were mentioned.Message ID: @.***>

Badar25 avatar Mar 22 '24 12:03 Badar25

Yes @Badar25 , you mean sorting is the problem? are you able to find a workaround?

khanmujeeb687 avatar Mar 24 '24 22:03 khanmujeeb687

Yes, before saving just saving the date as now instead of using original date of the video/content

On Mon, Mar 25, 2024 at 3:12 AM Mujeeb khan @.***> wrote:

Yes @Badar25 https://github.com/Badar25 , you mean sorting is the problem? are you able to find a workaround?

— Reply to this email directly, view it on GitHub https://github.com/appinioGmbH/flutter_packages/issues/245#issuecomment-2016962276, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5C5RMIH3537TFBYEMVRJPDYZ5FTVAVCNFSM6AAAAABEGO2U6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHE3DEMRXGY . You are receiving this because you were mentioned.Message ID: @.***>

Badar25 avatar Mar 25 '24 03:03 Badar25

I will create PR soon

On Mon, Mar 25, 2024 at 8:07 AM Bahadur Zaman @.***> wrote:

Yes, before saving just saving the date as now instead of using original date of the video/content

On Mon, Mar 25, 2024 at 3:12 AM Mujeeb khan @.***> wrote:

Yes @Badar25 https://github.com/Badar25 , you mean sorting is the problem? are you able to find a workaround?

— Reply to this email directly, view it on GitHub https://github.com/appinioGmbH/flutter_packages/issues/245#issuecomment-2016962276, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5C5RMIH3537TFBYEMVRJPDYZ5FTVAVCNFSM6AAAAABEGO2U6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHE3DEMRXGY . You are receiving this because you were mentioned.Message ID: @.***>

Badar25 avatar Mar 25 '24 03:03 Badar25

i am also not able to share to tiktok post. the image is saved to my gallery and tiktok opens but after a loading dialog in tiktok i just get redirected to my redirect url. is this also because of the wrong asset picked or am i missing anything else?

lucakramberger avatar May 28 '24 08:05 lucakramberger

Hey @lucakramberger , have you added TikTokClientKey to your info.plist?

khanmujeeb687 avatar Jul 21 '24 21:07 khanmujeeb687