Closed wwcom227 closed 1 year ago
do you have iOS 16? I'm facing the same problem.
do you have iOS 16? I'm facing the same problem.
yes
Could you please clarify what the issue is? Is it:
it's the 2 case, it stops at 95% and file is not displayed in iCloud storage
I am in the first case, the file has been uploaded to iCloud, but the progress has been stuck at 95%
@wwcom227, I tested this on an iPhone 14 Pro simulator with iOS 16.0. I can't reproduce the issue. You said you were testing it on a physical device? Have you tried it on a simulator? Do you have the same issue on the simulator?
it's the 2 case, it stops at 95% and file is not displayed in iCloud storage
@mdynia111, are you testing it on a simulator? If so, resetting the simulator can fix the issue.
no, not really, the same issue happens on multiple physical devices
Are they all on iOS 16?
Please try this PR to see whether it can fix the issue https://github.com/deansyd/icloud_storage/pull/25
@wwcom227, I tested this on an iPhone 14 Pro simulator with iOS 16.0. I can't reproduce the issue. You said you were testing it on a physical device? Have you tried it on a simulator? Do you have the same issue on the simulator?
I tested that there is no problem on the simulator, and not all iOS16.0 iPhone 14 Pro physical devices have problems. This problem was reported by one of my users, and I see that it must appear here.
Please try this PR to see whether it can fix the issue #25
ok, let me try first
Please try this PR to see whether it can fix the issue #25
problem still exists.
the same for me, file never gets uploaded
Please provide the following info:
1 It happens even with your example code: https://github.com/deansyd/icloud_storage/blob/master/example/lib/upload.dart 2 There is no error for me, it properly reaches 95% and gets stuck at that 3 File size is around 125 KB 4 iCloud storage plan - 200 GB (140 GB is used)
This is most likely to be an issue with iOS. The upload simply calls the native code FileManager.default.copyItem(at: localFileURL, to: cloudFileURL)
. And only a small sets of devices have this issue. I suggest you do the following:
the file has been uploaded successfully, but the progress can reach 95% at most, and onDone cannot be triggered
the question happens on my iphone14pro