Skip to content

8.0.0

Compare
Choose a tag to compare
@EmDee EmDee released this 22 Jun 07:24

Breaking changes

  • Deprecated the AppCallback.onTokenInvalid method. Use AppCallback.getAccessToken instead that introduces the isInitialToken flag, which can be left at default value (= false)
  • Implement automatic session handling for apps. If IDKit is used, the SDK will now try to renew the session automatically when an app requests a new token. In this case the getAccessToken AppCallback will no longer be called. If the renewal fails the onSessionRenewalFailed AppCallback may be implemented to specify a custom behavior for the token retrieval. Otherwise the sign in mask will be shown.
  • Speed up isPoiInRange call. Add optional location parameter which will be used instead of the current location if specified. Also make isPoiInRange suspend to call it in a own Coroutine.

Enhancements

  • Add a new onLogin AppCallback that is invoked when the user logs in via an automatic authorization request from the SDK within the PWA (not if IDKit.authorize(...) is called manually). This callback provides the AppActivity context and the authorization result.
  • Intercept the URLs and close the PWA if it is the close redirect URI cloudsdk://close

Internal

  • Add logout handler to PWA communication
  • Automatically refresh the access token and retry the request if it returns status code 401 (unauthorized). If IDKit is not initialized, no session is available or the token renewal failed, the error is passed to the client app.
  • Add getLocation handler to PWA communication
  • Content type and more headers are now generated
  • Authorization header only used for needing requests