Skip to content

Instantly share code, notes, and snippets.

@ydn
ydn / geographic_location.mm
Created June 22, 2015 20:54
Tracking Geographic location 1
CLLocationManager *locationManager = [[CLLocationManager alloc] init];
[locationManager startUpdatingLocation];
@ydn
ydn / tracking_geographic_location_2.mm
Last active August 29, 2015 14:23
Tracking Geographic Location 2
CLLocation *location = locationManager.location;
[Flurry setLatitude:location.coordinate.latitude
longitude:location.coordinate.longitude
horizontalAccuracy:location.horizontalAccuracy
verticalAccuracy:location.verticalAccuracy];
@ydn
ydn / age_gender.mm
Created June 22, 2015 20:59
Track age and gender
[Flurry setAge:21];
@ydn
ydn / set_gender.mm
Created June 22, 2015 21:01
Set Gender
[Flurry setGender:@"m"];
@ydn
ydn / track_user_id.mm
Created June 22, 2015 21:03
Track User ID
[Flurry setUserID:@"USER_ID"];
@ydn
ydn / track_application_errors.mm
Created June 22, 2015 21:07
Track Application Errors
[Flurry logError:@"ERROR_NAME" message:@"ERROR_MESSAGE" exception:e];
@ydn
ydn / track_page_views.mm
Created June 22, 2015 21:08
Track Page Views 1
[Flurry logAllPageViews:navigationController];
@ydn
ydn / track_page_views_2.mm
Created June 22, 2015 21:10
Track Page Views 2
[Flurry logPageView];
@ydn
ydn / configure_when_data_is_sent.mm
Created June 22, 2015 21:12
Configure when data is sent to flurry
[Flurry setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose];
@ydn
ydn / configure_when_data_is_sent_2.mm
Created June 22, 2015 21:13
Configure when data is sent to Flurry 2
[Flurry setSessionReportsOnPauseEnabled:(BOOL)sendSessionReportsOnPause];