SHARE
TWEET

Untitled

a guest Mar 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "FlurryUnityPlugin.h"
  2.  
  3. .....
  4.  
  5. //in UnityAppController.mm
  6. - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
  7. {
  8.     ::printf("-> applicationDidFinishLaunching()\n");
  9.  
  10.     FlurryUnityPlugin* sharedInstance = [FlurryUnityPlugin shared];
  11.     [sharedInstance setupFlurryAutoMessaging];
  12.     [Flurry setDelegate:(id <FlurryDelegate>)  sharedInstance];
  13.    
  14.     //Ensure that each parameter corresponds to those set in the builder in your CSharp script
  15.     FlurrySessionBuilder* builder = [[[[[FlurrySessionBuilder new]
  16.                                         withLogLevel:FlurryLogLevelAll]
  17.                                        withCrashReporting:YES]
  18.                                       withSessionContinueSeconds:10]
  19.                                      withAppVersion:@"YOUR_APP_VERSION"];
  20.    
  21.     [Flurry startSession:@"FLURRY_API_KEY" withSessionBuilder:builder];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top