Dolphin MOVE SDK
SDK
1.x
1.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
      • React Native
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Services
      • React Native
        • Initialization
        • Services
    • Models
      • MoveAuth
      • MoveConfig
      • MoveConfigurationError
      • MoveDeviceStatus
      • MoveSDKState
      • MoveTripState
      • MoveAuthState
      • Listeners/Callbacks
    • Appendix
      • Android
        • Token refresh
        • Permission Handling
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
  • MOVE Backend
    • MOVE Timeline
    • MOVE State
    • MOVE Last Location
    • MOVE Generic Notifier
    • Open Api Specification
  • Changelog
    • Android
    • iOS
  • Data privacy (GDPR)
Powered by GitBook
On this page
  1. MOVE SDK
  2. Appendix
  3. Android

Token refresh

PreviousAndroidNextPermission Handling

Last updated 3 years ago

At initialization of the SDK valid credentials is required. The accessToken is only valid for a short period of time. With the refresh token, the MOVE SDK tries to get a new accessToken. This can be done as long as the refreshToken is valid. As soon as it is not possible anymore to get a new accessToken, the host application will be notified via the AuthStateUpdateListener and the changes to Expired .When this happens, the host app is responsible to provide new credentials and pass it to the SDK at initialization or via The MOVE SDK keeps collecting data and trips as long as the SDK remains in state Running. A token expiry will not stop the detection, but is unable to transmit any data.

MoveAuth
MoveAuthState
MoveAuth
updateAuth