GithubHelp home page GithubHelp logo

ygit / clevertap-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clevertap/clevertap-ios-sdk

0.0 2.0 0.0 123.43 MB

CleverTap iOS SDK

Home Page: https://clevertap.com

License: MIT License

Ruby 0.31% Objective-C 94.57% Swift 2.84% HTML 0.14% C 2.14%

clevertap-ios-sdk's Introduction

CleverTap iOS SDK

Build Status codecov codebeat badge Version License Platform Carthage compatible

The CleverTap iOS SDK for App Analytics and Engagement

CleverTap combines real-time customer insights, an advanced segmentation engine, and powerful engagement tools into one intelligent marketing platform.

For more information check out our website and documentation.

Setup

  1. Sign Up

    Sign up for a free account.

  2. Install the Framework

    Starting with v3.0.0, the SDK adds support for App Extensions and watchOS apps. Starting with v3.1.3, the SDK adds support for tvOS.

    • Install Using CocoaPods

      For your iOS, App Extension target(s) and tvOS app, add the following to your Podfile:

      target 'YOUR_TARGET_NAME' do  
          pod 'CleverTap-iOS-SDK'  
      end     
      

      If your main app is also a watchOS Host, and you wish to capture custom events from your watchOS app, add this:

      target 'YOUR_WATCH_EXTENSION_TARGET_NAME' do  
          pod 'CleverTapWatchOS'  
      end
      

      Also, you will need to enable the preprocessor macro via your Podfile by adding this post install hook:

      post_install do |installer_representation|
          installer_representation.pods_project.targets.each do |target|
              target.build_configurations.each do |config|
                  config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 
                  'CLEVERTAP_HOST_WATCHOS=1']
              end
         end
      end
      

      Then run pod install.

    • Install Using Carthage

      CleverTap also supports Carthage to package your dependencies as a framework.

      To integrate CleverTap into your Xcode project using Carthage, specify it in your Cartfile:

      github "CleverTap/clevertap-ios-sdk"
      

      Run carthage update to build the framework and drag the built CleverTapSDK.framework into your Xcode project.

      Also, follow steps to link SDWebImage into your project

      • In your Project, go to Carthage folder
      • Select clevertap-ios-sdk under Checkouts
      • Drag the built SDWebImage.framework from Vendors into your Frameworks and Libraries
    • Manually Install the Framework

      For just the basic SDK functionality in your main app:

      • Download the latest framework release. Unzip the download.

      • Add the CleverTapSDK.xcodeproj to your Xcode Project, by dragging the CleverTapSDK.xcodeproj under the main project file.

      • Embed the framework. Select your app.xcodeproj file. Under "General", add the CleverTapSDK framework as an embedded binary

  3. Add Your CleverTap Account Credentials

    Update your .plist file:

    • Create a key called CleverTapAccountID with a string value
    • Create a key called CleverTapToken with a string value
    • Insert the values from your CleverTap Dashboard -> Settings -> Integration Details.

For more details, Please refer to our installation guide for instructions on installing and using our iOS SDK in your project.

Example Usage

Changelog

Check out the CleverTap iOS SDK Change Log here.

Questions?

If you have questions or concerns, you can reach out to the CleverTap support team at [email protected].

License

Check out the CleverTap iOS SDK License here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.