CarnegieTechnologies / gallery_saver

Flutter plugin that saves images and videos to devices gallery
Apache License 2.0
157 stars 328 forks source link

Unable to save video from firebase storage on iOS #182

Open bdytx5 opened 2 years ago

bdytx5 commented 2 years ago

Im trying to use gallery saver to download a video I have in firebase storage (https://firebasestorage.googleapis.com/v0/b/dsports-6ab79.appspot.com/o/footage%2F-Mw8_skBuyHl2PzRliCK1.mp4?alt=media&token=690b5df9-b733-43b4-b1f7-4573eda14ea6)

For some reason, it fails somewhat silently - result is false. If I use another random video on the web, it seems to work fine. Just a note, for some reason firebase storage videos wont play in chrome for mac, so if you are on mac, use safari to watch the video in the browser. My code is proprietary so I cant upload it, however it should be easy to duplicate.. Any suggestions?

loic-hamdi commented 2 years ago

Same issue here, did you find any solution?

bdytx5 commented 2 years ago

Not sure yet. Tested on android and seems to be working. One possibility that I haven't ruled out is that my iPhone could be out of storage (or very close to it)- which could be causing an error. Perhaps some additional code could be added to check for free space if this is truly the issue... Will follow up

rduman2002 commented 2 years ago

I faced with this issue while I was playing around downloading google storage files into gallery. You can simply add '&ext=.mp4' end of the link. Same for image files. And don't forget to distinguish it because it works only ios so you dont need to add it for android.

rduman2002 commented 2 years ago

I just tested with android it also works with extension. So I think you don't need to distinguish for os.

bdytx5 commented 2 years ago

hmmm interesting. Thanks, would've taken me ages to figure this out... Have a reference issue or did the solution just come straight from your brain?