You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing the Amplitude iOS SDK with a custom instance name, the SDK uploads thousands of past events on every app launch, even if no actions are taken in the app and reset() has already been called.
Possible Solution
Removing my custom instance name and using the default configuration seems to have resolved the issue.
Steps to Reproduce
Initialize the SDK with a custom instance name and DEBUG level logging.
Track any number of events.
Restart the app and monitor for old events being uploaded. After 30 seconds, the debugger may warn you that Background Task (123) ("amplitude"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination.
If you've logged enough events and you wait long enough, the app actually will terminate.
@davidjhodge - when you were testing this, were you seeing a lot of requests failing with a 400 response code? There's an issue where the SDK keeps retrying when the server returns a 400 because of bad user id/device ids.
izaaz
transferred this issue from amplitude/Amplitude-iOS
Feb 28, 2024
Expected Behavior
The SDK should be able to manage sending events and flushing the data store properly when using a custom instance name (as recommended here: https://www.docs.developers.amplitude.com/data/sdks/ios-swift/#security).
Current Behavior
When initializing the Amplitude iOS SDK with a custom instance name, the SDK uploads thousands of past events on every app launch, even if no actions are taken in the app and reset() has already been called.
Possible Solution
Removing my custom instance name and using the default configuration seems to have resolved the issue.
Steps to Reproduce
Related Amplitude Support Ticket: https://help.amplitude.com/hc/en-us/requests/306102
error-examples-additional-logging.txt
error-logs-example.txt
Environment
The text was updated successfully, but these errors were encountered: