github Iterable/swift-sdk 6.5.5

latest releases: 6.5.7, 6.5.6
one month ago

Added

This version of Iterable's iOS SDK provides more insight into JWT refresh failures, so you can take appropriate action in your application code.

  • When a JWT refresh fails (for any of various reasons), the SDK calls onAuthFailure(_ authFailure: AuthFailure) on the IterableAuthDelegate instance you provided to the SDK at initialization. The AuthFailure object provides more information about the failure. This method replaces onTokenRegistrationFailed(_ reason: String?).

  • To set a retry policy for JWT refreshes, you can set the retryPolicy property on IterableConfig to a RetryPolicy object. Use this object to specify:

    • The maximum number of consecutive JWT-related request failures the SDK should allow before giving up, Defaults to 10.
    • The interval between each JWT refresh attempt. Defaults to 6 seconds.
    • A backoff strategy: linear or exponential. Defaults to linear.
  • You manually pause JWT refresh attempts by calling IterableAPI.pauseAuthRetries(true)

Changed

  • onAuthFailure(_ authFailure: AuthFailure) replaces onTokenRegistrationFailed(_ reason: String?). If you've implemented onTokenRegistrationFailed, you'll need to update your application code.

Don't miss a new swift-sdk release

NewReleases is sending notifications on new releases.