Skip to content

Commit

Permalink
Update comment on uploadInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed Nov 10, 2023
1 parent 70aee94 commit 565e4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions mParticle-Apple-SDK/Include/mParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ Defaults to false. Prevents the eventsHost above from overwriting the alias endp
/**
Upload interval.
Batches of data are sent periodically to the mParticle servers at the rate defined by this property. Batches are also uploaded
when the application is sent to the background.
Batches of data are sent periodically to the mParticle servers at the rate defined by this property. This continues while the app is in the background (e.g. playing music).
*/
@property (nonatomic, readwrite) NSTimeInterval uploadInterval;

Expand Down
1 change: 1 addition & 0 deletions mParticle-Apple-SDK/MPBackendController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@ - (void)beginBackgroundTimeCheckLoop {
MPILogVerbose(@"Less than %f time remaining in background, uploading batch and ending background task", kMPRemainingBackgroundTimeMinimumThreshold);
[MParticle executeOnMessage:^{
[self waitForKitsAndUploadWithCompletionHandler:^{
// Allow iOS to sleep the app
[self endUploadTimer];
[self endBackgroundTask];
}];
Expand Down

0 comments on commit 565e4d1

Please sign in to comment.