• Stars
    star
    155
  • Rank 240,864 (Top 5 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flurry iOS SDK CocoaPods

Flurry SDK

pod platform license

Table of Contents

Installation

To install FlurrySDK from CocoaPods, please follow the instructions below. Remember to include use_frameworks! if your app target is in Swift.

iOS

To enable Flurry Analytics:

pod 'Flurry-iOS-SDK/FlurrySDK'

To enable Flurry Ad serving:

pod 'Flurry-iOS-SDK/FlurrySDK'
pod 'Flurry-iOS-SDK/FlurryAds'

To enable Flurry Config:

pod 'Flurry-iOS-SDK/FlurryConfig'

To enable Flurry Messaging:

pod 'Flurry-iOS-SDK/FlurryMessaging'

watchOS

To use FlurrySDK for Apple Watch 2.x Extension:

target 'Your Apple Watch 2.x Extension Target' do 
  platform :watchos, '2.0'
  pod 'Flurry-iOS-SDK/FlurrySDK'
end   

tvOS

To use FlurrySDK for tvOS apps:

target 'Your tvOS Application' do
  platform :tvos, '10.0'
  pod 'Flurry-iOS-SDK/FlurrySDK'
end

To enable Flurry Messaging for tvOS:

pod 'Flurry-iOS-SDK/FlurryMessaging'

Requirements

  • iOS 10.0+
  • tvOS 10.0+
  • watchOS 3.0+

Examples

Listed below are brief examples of initializing and using Flurry in your project. For detailed instructions, please check our documentation.

Initialize Flurry

  • iOS/tvOS

    To initialize Flurry, please import Flurry in your Application Delegate and start a Flurry session inside applicationDidFinishLaunching, as described below.

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        let sb = FlurrySessionBuilder()
              .build(logLevel: FlurryLogLevel.all)
              .build(crashReportingEnabled: true)
              .build(appVersion: "1.0")
              .build(iapReportingEnabled: true)
          
        Flurry.startSession(apiKey: "YOUR_API_KEY", sessionBuilder: sb)
        return true
    }
  • watchOS

    Please follow our instructions here.

Log Events

Use this to log normal events and timed events in your app.

  • iOS/tvOS

    // Normal events
    Flurry.log(eventName: "Event", parameters: ["Key": "Value"])
          
    // Timed events
    Flurry.log(eventName: "Event", parameters: ["Key": "Value"], timed: true)
    Flurry.endTimedEvent(eventName: "Event", parameters: ["Key": "Value"])
          
    // Standard events
    let param = FlurryParamBuilder()
        .set(doubleVal: 34.99, param: FlurryParamBuilder.totalAmount())
        .set(booleanVal: true, param: FlurryParamBuilder.success())
        .set(stringVal: "book 1", param: FlurryParamBuilder.itemName())
        .set(stringVal: "This is an awesome book to purchase !!!", key: "note")
          
    Flurry.log(standardEvent: FlurryEvent.purchased, param: param)

    Please see our sample project here.

  • watchOS

    FlurryWatch.logWatchEvent("Event", withParameters: ["Key": "Value"])

Log Error (iOS/tvOS)

Use this to log exceptions and/or errors that occur in your app. Flurry will report the first 10 errors that occur in each session.

Flurry.log(errorId: "ERROR_NAME", message: "ERROR_MESSAGE", exception: e)

Track User Demographics (iOS/tvOS)

After identifying the user, use this to log the userโ€™s assigned ID, username, age and gender in your system.

Flurry.set(userId: "USER_ID")
Flurry.set(age: 20)
Flurry.set(gender: "f") // "f" for female and "m" for male

Session Origins and Attributes (iOS/tvOS)

This allows you to specify session origin and deep link attached to each session, or add a custom parameterized session parameters. You can also add an SDK origin specified by origin name and origin version.

Flurry.add(sessionOriginName: "SESSION_ORIGIN")
Flurry.add(sessionOriginName: "SESSION_ORIGIN", deepLink: "DEEP_LINK")
Flurry.sessionProperties(["key": "value"])
Flurry.add(originName: "ORIGIN_NAME", originVersion: "ORIGIN_VERSION")
Flurry.add(originName: "ORIGIN_NAME", originVersion: "ORIGIN_VERSION", parameters: ["key": "value"])

Support

License

Copyright (c) 2021 Yahoo. All rights reserved.

This project is licensed under the terms of the Apache 2.0 open source license. Please refer to LICENSE for the full terms. Your use of Flurry is governed by Flurry Terms of Service.

More Repositories

1

avro-mobile

Avro Example with Java Server, iOS Client, Android Client
C
50
star
2

react-native-flurry-sdk

React Native Flurry SDK
Java
45
star
3

Lyric

Linear Regression library in pure Javascript
JavaScript
43
star
4

unity-flurry-sdk

Unity plugin for Flurry SDK
C#
25
star
5

YodelAndroidApp

Android app showcasing Flurry native ad and Yahoo Search SDK integration for YMDC 2015.
Java
23
star
6

flurry-android-sdk

Flurry Android SDK API reference documentation
HTML
22
star
7

upload-clients

Python
18
star
8

android-AdIntegrationSamples

Samples showing various Flurry Android publisher integrations
Java
14
star
9

YodeliOSApp

iOS app showcasing Flurry native ad and Yahoo Search SDK integration for YMDC 2015.
Objective-C
14
star
10

ios-AdIntegrationSamples

Samples showing various Flurry iOS publisher integrations
Objective-C
11
star
11

flurry-adapter-mopub-android

[DEPRECATED] Adapter that enables Flurry ad mediation through MoPub
Java
10
star
12

flurry-adapter-admob-ios

Flurry Adapter for AdMob/DFP CocoaPods
Rich Text Format
7
star
13

flurry-adapter-admob-android

7
star
14

flutter-flurry-sdk

A Flutter plugin for Flurry SDK
Dart
7
star
15

StreamAds-Android

Flurry native ads helper library
Java
6
star
16

FlurryLaunchOrigin

Objective-C
5
star
17

fastlane-plugin-flurry

Ruby
5
star
18

native-advertising-sample-swift

This repository contains Yodel Travels, an iOS sample app built in Swift demonstrating proper use of Native Stream Ads and Expandable Ads from Yahoo's Flurry
Swift
5
star
19

FlurrySwiftPackage

Objective-C
4
star
20

React-Native-Tutorial

React Native Flurry SDK Tutorial
JavaScript
4
star
21

android-TumblrSharingSample

Sample Android code showing Tumblr sharing through the Flurry SDK
Java
3
star
22

ios-ConfigSample

Flurry Remote Config Sample App - iOS
Objective-C
3
star
23

automated_stop_hadoop_hbase

Scripts to handle gracefully stopping and starting hadoop and hbase services.
Shell
3
star
24

android-ConfigSample

Flurry Remote Config Sample App - Android
Java
2
star
25

FlurryAnalyticsSampleApp-Android

Kotlin
2
star
26

checkthread-android-example

Complete example Android project using CheckThread
Java
1
star
27

Performance-Metrics-Tutorial

Flurry Performance Metrics Tutorial
Java
1
star
28

FlurryRevenueSampleApp-Android

Kotlin
1
star
29

flurry-adapter-mopub-ios

[DEPRECATED] Adapter that enables Flurry ad mediation through MoPub
Objective-C
1
star