Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on iOS 14 #43

Closed
smedic opened this issue Sep 24, 2020 · 13 comments
Closed

Issues on iOS 14 #43

smedic opened this issue Sep 24, 2020 · 13 comments

Comments

@smedic
Copy link

smedic commented Sep 24, 2020

On iOS 14, thumbnailData returns null, while thumbnailFile kills the app.

For instance: /var/mobile/Media/DCIM/104APPLE/IMG_4898.MOV

Any plans for fixing this?

@shreyaspapi
Copy link

Same issue.

@Renatinaveen
Copy link

Renatinaveen commented Sep 29, 2020

Facing the same issue.

I have a production app for release in 2 days so it would be very helpful if this issue fixes soon.

@gazialankus
Copy link

We had this issue for videos that would not play on the iPhone. We tried opening the video URL in Safari in iPhone and it won't play. For other videos that the iPhone can play, we can get the thumbnail just fine.

@kuyazee
Copy link

kuyazee commented Oct 22, 2020

Same issue

@shreyaspapi
Copy link

Hey, we really need this too we have a production release in 10 days.

@liraku
Copy link

liraku commented Nov 1, 2020

Same issue.

@scofield-hello
Copy link

same issue

@justsoft
Copy link
Owner

I have verified the two functions are working as expected under iOS 14.2.
Please make sure the file or the URL can be read or loaded also the App has sufficient permissions to read and write.
I use the following code to make sure the App has the permissions:

    final Map<Permission, PermissionStatus> statuses = await [
      Permission.camera,
      Permission.storage,
      Permission.photos,
      Permission.microphone,
    ].request()
  statuses.forEach((key, value) => debugPrint('$key: $value'))

@yaizudamashii
Copy link

I can verify that for iOS 14.2, adding Permission.storage kind of solves the issue of thumbnail not being created for my project (in addition to already given camera and microphone permissions, photos does not seem to be necessary.

I say kind of because even after requesting the permission, taking the video, awaiting stopping the video, then creating the thumbnail image fails because the video file cannot be read, even with the storage permission. Doing the operation again leads to a successful creation of the thumbnail. However, every time the screen to take video is pushed, this first time thumbnail creation fails, which isn't a good user experience.

@yaizudamashii
Copy link

I think the problem is possible caused by the fact I'm using beta channel and nullsafety override (as some other newer packages offer more functionality). I also tried with version 0.2.1 which I was using before (without any thumbnail creation problems) using nullsafety but the version didn't work at all, hinting maybe it is because i've updated rest of the app to use nullsafety

@yaizudamashii
Copy link

For those of you where you can get by not creating a file, I worked around this issue by using thumbnailData rather than thumbnailFile

@justsoft
Copy link
Owner

justsoft commented Mar 1, 2021

@yaizudamashii Thank you for sharing your solution.

@devr-tech
Copy link

Hi there, is there anyone still facing this issue even on the latest build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants