-
Notifications
You must be signed in to change notification settings - Fork 32
fix: remove accumulated polling when app comes back to foreground #301
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
Conversation
jaeopt
commented
Mar 2, 2020
- When app goes to background, polling stops OK as expected.
- But when app comes back to foreground, the current implementation looks at the timer behind and try to poll multiple times, which is annoying. This fix cleans up this logic, so recover normal periodic polling regardless of delayed timer value.
@@ -159,19 +159,6 @@ class DefaultDatafileHandler: OPTDatafileHandler { | |||
} | |||
} | |||
|
|||
@objc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not used anywhere. probably leftover from previous changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover from ios 9 support. got it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM