Install iOS Sdk
This page will give detailed description of how you can integrate Growlytics iOS SDK to your native iOS app.
Last updated
This page will give detailed description of how you can integrate Growlytics iOS SDK to your native iOS app.
Last updated
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:
Navigate to File -> Add Package
Enter the URL https://github.com/growlytics/growlytics-ios-sdk.git and select the branch as main or required version to install the package.
Click on Add Package.
Now, growlytics-ios-sdk is installed.
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:
.
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. |
You have successfully integrated the Growlytics SDK with your iOS app and are sending user session and system events data to your Growlytics account. Please note that it may take a up to few minutes for your data to reflect on your dashboard.
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:
Tracking EventsTracking User