Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flurry sample application

how to work with flurry sdk? Is any one have idea about this.please let me know with sample code.i want to work with my iphone app.

like image 235
jasim Avatar asked Jun 24 '26 07:06

jasim


1 Answers

download flurry sdk from dev.flurry.com

  1. copy the sdk in to your project.

in appdelegate.h

  #import "FlurryAnalytics.h" 
  #import "FlurryAppCircle.h"

  @interface AppDelegate : UIResponder<UIApplicationDelegate,FlurryAdDelegate>
  {
  }

in appdelegate.m

call this function in application didFinishLaunchingWithOptions

  [self flurryIntegration];


   - (void)flurryIntegration
   {
       [FlurryAnalytics startSession:flurryAppID];
      [FlurryAppCircle setAppCircleEnabled:YES]
   }

IN VIEWCONTROLLER.M

to log errors in flurry.

 [FlurryAnalytics logError:@"1" message:exception.description exception:exception];

to log events/actions

  [FlurryAnalytics logEvent:[NSString stringWithFormat:@"Event name / Action name"]];

to open take over

    [FlurryAppCircle setAppCircleEnabled:YES];
    [FlurryAppCircle
     openTakeover:@"STORE_APP_RECOMMEND"
     orientation:@"landscape"
     rewardImage:nil
     rewardMessage:nil
     userCookies:nil];

to open videotakeover

    [FlurryClips setVideoAdsEnabled:YES];
    [FlurryClips openVideoTakeover:@"APP_SPLASH_HOOK"
                       orientation:@"portrait"
                       rewardImage:nil
                     rewardMessage:nil
                       userCookies:nil
                          autoPlay:YES];
like image 197
hardik hadwani Avatar answered Jun 26 '26 23:06

hardik hadwani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!