Skip to content

6.5.5

Compare
Choose a tag to compare
@jyu115 jyu115 released this 08 Aug 01:37
· 16 commits to master since this release
8d2bb0f

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.