Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Wildfyre SDK v1.2.1


  • iOS 5.1 and Above
  • Automatic Reference Counting (ARC)
  • Wildfyre App and Secret Keys (from your Wildfyre app account)


  • Add wildfyre.h and libwildfyre.a to your project
  • Add the following Frameworks by going to project settings Build Phases -> Link Binary with Libraries:
    • libWildfyre.a
    • CoreLocation
    • SystemConfiguration
    • MobileCoreServices
    • libz.dylib

Initializing Wildfyre

The first thing you need to do is initialize Wildfyre with your App and Secret keys. We recommend doing this in applicationDidFinishLaunching: or application:didFinishLaunchingWithOptions in your Application delegate.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

      // Override point for customization after application launch.
    [[Wildfyre sharedInstance] startWithAppKey:@"qizjfJQKHAVDp2YfjoanQz3eyJEJ"

      // Add the view controller's view to the window and display.
      [window addSubview:viewController.view];
      [window makeKeyAndVisible];
      return YES;

Checking for app updates

After initializing Wildfyre, you can check for an app update and alert the user with the following snippet (the interface should conform to UIAlertViewDelegate):

- (void)applicationDidBecomeActive:(UIApplication *)application
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    [[Wildfyre sharedInstance] updateAvailable:^(BOOL available, NSNumber *version, NSError *error) {
        if (available) {
            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"App update available"
                                                            message:@"The app will install automatically"
            [alert show];

        }else {
            // No update available

    [[Wildfyre sharedInstance] startCrashReporter];
    [[Wildfyre sharedInstance] startCheckin:60*15]; // report every 15 minutes

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    [[Wildfyre sharedInstance] updateApp];

Start Monitoring & Crash Reporting

[[Wildfyre sharedInstance] startCrashReporter];
[[Wildfyre sharedInstance] startCheckin:60*15]; // report every 15 minutes


The Wildfyre SDK allows app developers to make a single analytics tracking call within their apps and have the analytics tracking information sent to multiple analytics systems. For example, sending to both Google and Omniture accounts or to multiple Google accounts.


  • Add the following Linker Flag by going to project settings, Build Settings -> 'Other Linker Flags'
    • Set the value to "-ObjC"

Google Analytics Adapter

Sample Code

Adding the Analytics adapter, starting a session, and tracking an app launch:

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Setup and initialize Wildfyre
    // ....

    // Analytics Calls
    // Replace UA-XXXXXXXX-X with your tracking ID
    [[Wildfyre sharedInstance] addAnalyticsAdapter:GoogleV2 withConfiguration:@{WFAnalyticsIdKey:@"UA-XXXXXXXX-X"}];
    [[Wildfyre sharedInstance] startSession];
    [[Wildfyre sharedInstance] trackAppLaunch];

Page Views and Event tracking:

// Page view tracking:
[[Wildfyre sharedInstance] trackView:@"MyPageName"];

// Event Tracking:
[[Wildfyre sharedInstance] trackEvent:@"Product Selection" properties:@{@"action":@"Tapped Product",
                                                                        @"label":@"Product 101"}];

Release Notes:

v1.2.1 [4/2/13]

  • Added analytics adapter into public SDK

v1.2 [ 3/18/13 ]

  • Updated networking libraries
  • Simplified API

v1.1 [1/8/13]

  • Performance & memory improvements
  • Crash Reporting
  • Logging beta

v1.0 [10/14/12]

  • Initial Wildfyre SDK
  • App Version checking / upgrades
  • Monitoring
Something went wrong with that request. Please try again.