Sample application

How to work with flurry sdk? Does anyone have any ideas about this.please, let me know with an example code.i want to work with my iphone application.

+3
source share
1 answer

download flurry sdk from dev.flurry.com

  • copy sdk to your project.

in appdelegate.h

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

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

in appdelegate.m

calling this function in the application didFinishLaunchingWithOptions

  [self flurryIntegration];


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

At VIEWCONTROLLER.M

to log errors in a flurry.

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

for recording events / actions

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

to open the grip

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

to open video capture

    [FlurryClips setVideoAdsEnabled:YES];
    [FlurryClips openVideoTakeover:@"APP_SPLASH_HOOK"
                       orientation:@"portrait"
                       rewardImage:nil
                     rewardMessage:nil
                       userCookies:nil
                          autoPlay:YES];
+2
source

Source: https://habr.com/ru/post/1753818/


All Articles