Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding location via API #47

Closed
ivolo opened this issue Aug 16, 2013 · 3 comments
Closed

Consider adding location via API #47

ivolo opened this issue Aug 16, 2013 · 3 comments
Milestone

Comments

@ivolo
Copy link
Contributor

ivolo commented Aug 16, 2013

Flurry supports adding location from the location manager, like so:

CLLocationManager *locationManager = [[CLLocationManager alloc] init];
[locationManager startUpdatingLocation];

CLLocation *location = locationManager.location;
[Flurry setLatitude:location.coordinate.latitude
          longitude:location.coordinate.longitude
 horizontalAccuracy:location.horizontalAccuracy
   verticalAccuracy:location.verticalAccuracy];

After starting the location manager, you can set the location with Flurry. You can implement CLLocationManagerDelegate to be aware of when the location is updated. Below is an example of how to use this method, after you have recieved a location update from the locationManager.

This allows you to set the current GPS location of the user. Flurry will keep only the last location information. If your app does not use location services in a meaningful way, using CLLocationManager can result in Apple rejecting the app submission.

http://support.flurry.com/index.php?title=Analytics/GettingStarted/TechnicalQuickStart

We should consider adding support for this via the API

@albhaf
Copy link

albhaf commented Oct 2, 2013

Any news on this feature?

@reinpk
Copy link
Contributor

reinpk commented Dec 17, 2013

in the 0.9.0 release we'll be exposing the Flurry SDK and headers so that you can do this :) i'll post again when it's available.

@reinpk
Copy link
Contributor

reinpk commented Dec 19, 2013

@reinpk reinpk closed this as completed Dec 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants