-
Notifications
You must be signed in to change notification settings - Fork 3
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
Reminders Should Self-Update #29
Comments
How would you see this working? Like schedule a local notification that doesn't immediately alert the user, but causes the app to do a network request and the either immediately alerts (if it is 2 minutes or less) or waits (if more than 2 minutes). So were you thinking something like a background app refresh/fetch (https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW24) or a background task (https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW28)? I don't think background refresh is consistent, but background task is better. Whats your opinion, @sethfri ? Proposed new reminder flow:
This issue with testing something like this is that we need live data. |
@rnc505 How I originally anticipated the flow was this:
I think this flow is better because we don't have to worry about any If we could also work to start making this generic (e.g. a method takes in a Regarding your live data comment, the vans are running until 5 AM Saturday morning, so we still have a bit of time if you're able to get this done before then. (Also, your background fetch and background task links above don't seem to be working for me - they both link to near the top of the same page) |
@sethfri -- Maybe I don't fully understand how Your workflow makes sense, but only if the application is in the foreground when the notification gets posted. Here's my suggested workflow that should handle both foreground and background cases:
4a. If user sends application to the background, deregister the/all If the Its the handling possibly incorrect notification times while the application is in the background that adds a level of complexity. |
This is the current Reminder flow:
However, the van could have gotten slowed down (or even potentially have sped up), so before alerting the user, the app should make another network request to get the current prediction for the van. If it has slowed down, the app can reset the time and only ever alert the user when the van is actually 2 minutes away. If it has sped up, the app can relay this to the user as well with something like "It looks like the van is ahead of schedule! The van is 1 minute away from Branscomb."
The text was updated successfully, but these errors were encountered: