Skip to content

Commit

Permalink
Added background task name to debug easier Terminations due to Tasks …
Browse files Browse the repository at this point in the history
…timeouts.
  • Loading branch information
antohisorin committed Mar 11, 2024
1 parent 879629a commit cf36de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Amplitude/Amplitude.m
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ - (void)enterBackground {

// Stop uploading
[self endBackgroundTaskIfNeeded];
_uploadTaskID = [app beginBackgroundTaskWithExpirationHandler:^{
_uploadTaskID = [app beginBackgroundTaskWithName:@"Amplitude: enterBackground" expirationHandler:^{
//Took too long, manually stop
[self endBackgroundTaskIfNeeded];
}];
Expand Down

0 comments on commit cf36de3

Please sign in to comment.