ApplicationVersionObserver

open class ApplicationVersionObserver : SAPURLSessionObserving

This observer checks for the response header x-app-version-inactive denoting if the current application version is active or not in mobile services and stops user from onboarding if the version is inactive.

To enable this functionality you need to register this observer to an SAPURLSession instance.

This is an example for a typical usage of the observer:

let urlSession: SAPURLSession = <#SAPURLSession instance#>

let applicationVersionObserver = ApplicationVersionObserver()
urlSession.register(applicationVersionObserver)