LogoLogo
HomeDashboardProduct Docs
  • Introduction
  • Core Concepts
    • Events
    • Sessions
    • User/Customer Profile
  • PLATFORM INTEGRATIONS
    • Shopify Integration
  • Sdk Integrations
    • Browser SDK
      • Integrate SDK
      • Track Events
      • Track Users
      • Configure Web Push
      • Reading Session Identifer
      • Syncing Cart Items
    • Android SDK (Coming Soon)
      • Install Android Sdk
      • Identify Customers
      • Push Notification Integration
    • iOS SDK
      • Install iOS Sdk
      • Tracking User
      • Tracking Events
      • Push Notification Settings
        • Configure APNS In Growlytics
        • Configure Mobile App For Push
        • Handling Push Click
    • Other
      • Upload Customers using CSV
  • Channel Integrations
    • Email
      • Amazon SES
      • SendGrid
      • Custom SMTP
    • Mobile Push Notifications
      • Configure FCM Channel
    • Web Push Notifications
    • Ad Networks
      • Facebook Audiences
      • Google Ad Audiences
  • REST APIs
    • Overview
    • Tracking Users (Shopify Only)
    • Tracking Users (Non-shopify)
    • Tracking Events (Shopify Only)
    • Tracking Events (Non-shopify)
    • Syncing Products
    • Mobile App Apis
  • Webhooks
    • Coupon Webhook
    • Connector Webhooks
Powered by GitBook
On this page
  • Step1: Install SDK - With Swift Package Manager
  • Step2: Initialize SDK
  • Step3: Configure Info.plist
  • What Next?

Was this helpful?

  1. Sdk Integrations
  2. iOS SDK

Install iOS Sdk

This page will give detailed description of how you can integrate Growlytics iOS SDK to your native iOS app.

PreviousiOS SDKNextTracking User

Last updated 1 year ago

Was this helpful?

Step1: Install SDK - With Swift Package Manager

The easiest way to use Growlytics in your iOS project is with Swift Package Manager.

Swift Package Manager (SPM) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

To install the Growlytics iOS SDK with Swift Package Manager, follow the below steps:

  1. Navigate to File -> Add Package

  2. Click on Add Package.

  3. Now, growlytics-ios-sdk is installed.

Step2: Initialize SDK

Step 1: Call Growlytics application:didFinishLaunchingWithOptions: from the application:didFinishLaunchingWithOptions: of your AppDelegate.

  • We recommended that you make this call at the end of didFinishLaunchingWithOptions:.

import Growlytics

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
  
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
                
        /**
          YOUR CODE GOES HERE
        **/
                
        LifeCycleCallback.shared.register(application: application)
        
        return true
}

Step3: Configure Info.plist

Add the following properties to the Info.plist file of your project.

Key
Type
Value
Description

GROWLYTICS_API_KEY

STRING

API - KEY

GROWLYTICS API KEY

GROWLYTICS_HOST

STRING

PROVIDED BY GROWLYTICS

ASKS GROWLYTICS SUPPORT TEAM FOR GROWLYTICS_HOST

GROWLYTICS_DISABLED

BOOLEAN

TRUE/FALSE

Enable/Disable Sdk.

Congratulations!

What Next?

With Step3, Growlytics SDK integration is finished.

We recommend that you implement the following integrations before releasing your app with Growlytics SDK for the first time:

Enter the URL and select the branch as main or required version to install the package.

You have successfully integrated the Growlytics SDK with your iOS app and are sending user session and data to your Growlytics account. Please note that it may take a up to few minutes for your data to reflect on your dashboard.

https://github.com/growlytics/growlytics-ios-sdk.git
system events
Tracking Events
Tracking User