Habit Analytics
  • What is the Habit Analytics Platform?
  • How to integrate devices with Habit Analytics
  • How to integrate an application with Habit Analytics
  • How to create a custom mobile app with Habit Analytics
  • Selfcare
    • What is Selfcare?
    • Projects
    • Integrations
  • SDK
    • Getting Started
    • iOS Quick Start
      • Installation
      • Xcode Project Configuration
      • Usage
        • SDK Initialization
        • Configuration
        • Tracking UX Events
        • Status Codes
Powered by GitBook
On this page

Was this helpful?

  1. SDK
  2. iOS Quick Start
  3. Usage

Status Codes

The SDK will return status codes according to different scenarios. The code itself is an Integer but you can easily get a description of the code that will give you some context.

The following example illustrates when you receive a code 5223 which means that the SDK has been initialized successfully but it doesn't have permissions to access location services which is very important for using the full features of the SDK.

HabitStatusCodes.getDescription(code: 5223)

// Returns a string with the description

// "HabitSDK has been initialized successfully but to take 
// advantage of the full features location permissions must
// be set to 'Always allow'."
PreviousTracking UX Events

Last updated 4 years ago

Was this helpful?