-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
"Slow" background tasks never start #6292
Comments
The faulty task is removed, but there's still this error 🤨
Seems similar to #6283 |
Indeed. Could it be that our "friends" of apple changed again the location of their standard dirs? |
@g123k For the record this is what we already do about file dirs on iOS: static Future<Directory> getDirectory() async =>
getApplicationSupportDirectory();
/// Returns a "safe" [File] from a given [path].
///
/// iOS sometimes changes the path of its standard app folders, like the one
/// we use in [getDirectory].
/// With this method we refresh the path for iOS.
/// cf. https://github.com/openfoodfacts/smooth-app/issues/4725
static Future<File> getFile(String path) async {
if (Platform.isIOS) {
final int lastSeparator = path.lastIndexOf('/');
final String filename =
lastSeparator == -1 ? path : path.substring(lastSeparator + 1);
final Directory directory = await getDirectory();
path = '${directory.path}/$filename';
}
return File(path);
} As you are fortunate enough to experience the bug, would you try to check if the named dir ( |
It seems that files are lost when we relaunch the app (I've reproduced the issue). |
That would be an undesired new behavior.
I wouldn't see the point. |
Quick demo: the photo is gone when the app is restarted: The photo indicator is also displayed indefinitely. |
@g123k Unfortunately I cannot watch your video. |
Hi everyone (and more specifically @monsieurtanuki)!
I have an issue on my phone with 19 "slow background tasks".
The first one (not visible in the screenshot) was always in error, so I deleted it.
Now I have 18 slow tasks and they never start.
On screen changes, "fast" & "longHaul" are checked, but not "slow"-ed ones.
Is there any reason?
The text was updated successfully, but these errors were encountered: