-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Feature Request - Add a background task that would push data to the backend for offline messages - Reported by: @kidroca #6690
Comments
Triggered auto assignment to @sonialiap ( |
This ticket is related #4264 but it focuses on pulling data in the background
In case we're not going with |
Another related ticket is this one #5987 All we have to do here is trigger the
A plus of the new persisted queue (#5987) is it returns a promise, which can be used to signal the task runner that we're done // IMPORTANT: You must signal to the OS that your task is complete.
BackgroundFetch.finish(taskId); We have about 30s to perform a background task, when we're done we need to let the system know |
I're researched the topic a bit more, and now I don't think
We have the intention of supporting large attachments, and so uploading some would probably take much more than 30sec. This library specializes in background file upload, and doesn't have any time restrictions as it uses upload specific handling: https://bestofreactjs.com/repo/Vydia-react-native-background-upload-react-native-backend The interface might also be better, especially for large attachments
In the end a combination of the two might be the optimal solution
Note for 1) - we're not using the |
@sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick! |
LGTM! |
Triggered auto assignment to @marcaaron ( |
Sorry, don't have time to assess whether this is a problem or not - but took a quick look and seems a bit complicated compared to the value that would be added. Going to leave this open to see if anyone in the engineering pool has interest in investigating further. |
@mvtglobally actually, sorry I'm going to close this. We need to document this process better, but my understanding is that "Feature Requests" are supposed to gather feedback in Slack about whether they are valuable to do before heading to GitHub. Only obvious bugs should be making it into the triage process. Thanks! |
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Context
We have logic to persist/retry message requests that didn't make it, like for example when you write a message while you're offline
We would usually send those message when you're back online, but if you decide to quit or suspend the app, we'll only send them the next time you open Expensify
You could switch to Desktop or not open the mobile app any time soon delaying the delivery of the persisted messages
Action Performed:
Expected Result:
background tasks should run and push offline messages automatically within some time
Actual Result:
if user decides to quit or suspend the app, we'll only send offline messages the next time user opens Expensify
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.18-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @kidroca
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1638901022330100
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: