QNSessions

This class provides methods to connect to and logout from the established session against the server.

Properties

API

  • Connects the session and notify ClientStateDelegate when it finishes, onSuccess is called if it’s all OK or onFailure(ErrorType) if an error occurs.

  • Restore an active session that had been activated before. (Call canRestoreSession to check if exist an active session)

  • Destroys the session established against the server.

  • Suspend session, should be called when app enters background

  • Register a new push token in server

  • Check if a permission is granted in current session