Closed RaeEversmann closed 1 year ago
@RaeEversmann is the expectation that maxRetryAttempts
and requestTimeout
apply only to the personalization request or to the collect (and any future) requests as well?
Updated ticket based on slack feedback
In the original ticket Mark suggested a default timeout of 5 seconds based on the expectation that it was unlikely the API would be unresponsive. However, on mobile issues are far more likely to arise from connectivity issues. On iOS, the default timeout interval for the URL Loading System is 60 seconds and the documentation includes the following recommendation:
As a general rule, you should not use short timeout intervals. Instead, you should provide an easy way for the user to cancel a long-running operation. For more information, read Designing for Real-World Networks in Networking Overview.
Beyond the question of the default value for the timeout, supporting a configurable timeout also adds complexity to the SDK.
As such, it was decided to remove support for requestUploadTimeout
and requestLoadTimeout
for the time being.
Add the following properties:
upload is for POST request load is for GET