Integrate Flutter SDK - iOS
This document will cover SDK installation and initialization steps for your Flutter iOS application
Installation
Open your Flutter project’s pubspec.yaml file
Add following line of code inside dependencies in pubspec.yaml file
Run flutter pub get in the terminal
Changes in PodFile and Run pod
SuprSend SDK can be installed in iOS platform version >= 13. Check version in PodFile and upgrade it by running pod install inside iOS folder.
Change iOS Deployment Target
SuprSend sdk needs an iOS deployment target >= 11. Open your project in Xcode(project > ios > project.xcworkspace) and update the target.
Initialization
Import Suprsend iOS SDK into your application. In AppDelegate
, add the below code inside didFinishLaunchingWithOptions
method, just before returning.
Replace WORKSPACE KEY
and WORKSPACE SECRET
with values linked to your account. You’ll find this in SuprSend dashboard (Developers -> API keys) page.
Logging
By default the logs of SuprSend SDK are disabled. We recommend you to enable the SDK logs by setting its value to VERBOSE. You can enable the logs just in debug mode while in development by below condition.