Repository navigation
[ios] Optimize event uploading - #6737
Conversation
|
@boundsj, thanks for your PR! By analyzing the history of the files in this pull request, we identified @friedbunny, @1ec5 and @bleege to be potential reviewers. |
There was a problem hiding this comment.
It looks like the background task won’t be invalidated if there was a network error (see L503), which would mean the app continues on in the background until it’s killed.
There was a problem hiding this comment.
Thanks! Fixed 7688bcc
|
This was originally based on the current |
There was a problem hiding this comment.
If we removed this return and then enclosed the subsequent pushDebugEvent in an else statement, I think we could avoid duplicating the background task invalidation.
There was a problem hiding this comment.
Thanks again. d648594 refactors as you described and squashes this all into a single commit on top of the release branch.
7688bcc to
d403c77
Compare
Upload any events collected when the app was in use for apps that only have "when in use" location permissions. Also, for all apps, avoid posting event data if there is only a single event.
d403c77 to
d648594
Compare
Upload any events collected when the app was in use for apps that only have "when in use" location permissions. Also, for all apps, avoid posting event data if there is only a single event.
Upload any events collected when the app was in use for apps that only have "when in use" location permissions. Also, for all apps, avoid posting event data if there is only a single event.