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

[feature] Knowing the user general location without asking for permission. #2

Closed
sSegev opened this issue Apr 1, 2014 · 11 comments
Closed

Comments

@sSegev
Copy link

sSegev commented Apr 1, 2014

A nice feature to have in this class is the ability to identify the user general location (country) without asking for permission. Something like a desiredAccuracy of INTULocationAccuracyCountry. This can be done in a number of ways but the best I can think of is to use something like http://www.iplocationtools.com/ or any other free service that offers to translate an IP address to a country. (And of course without using Core Location)

Services like Spotify etc' that are country based always using something like that in order to know the user location without asking for permission.

smileyborg pushed a commit that referenced this issue Apr 10, 2014
…parameter

Merge pull request #2 from @podkovyrin.

By default, the timeout countdown begins as soon as the `requestLocationWithDesiredAccuracy:timeout:block:` method is called. This commit introduces a new variant of this method that includes a `delayUntilAuthorized` parameter, which allows you to pass YES to delay the start of the timeout countdown until the user has responded to the system location services permissions prompt (if the user hasn't allowed or denied the app access yet).
@liweihan
Copy link

++1

@sSegev
Copy link
Author

sSegev commented Jul 9, 2014

Thanks!

@Ricardo1980
Copy link

I disagree. I mean, if user doesn't give you permission for location, well, it's because he doesn't want to located. Why do you want to bypass his/her decision?

@fabiocaccamo
Copy link

Do you think that google analitycs doesn't geocode your ip address? :)

@GabrielCartier
Copy link

The library is basically an API for Apple's SDK. Not sure how getting the location through geocoding has anything to do with this.

@DDany
Copy link

DDany commented Feb 5, 2015

+1

@callzhang
Copy link

@Ricardo1980 In our app we need at least knowing user's timezone in order to provide time related service.

@Ricardo1980
Copy link

@callzhang Timezone and location are 2 different things. And you can get time zone always you want, you don't have to ask for permission. http://stackoverflow.com/questions/19186666/get-timezone-country-from-iphone

@iwasrobbed
Copy link
Contributor

If you already use Google Maps, you can accomplish this by piggybacking off of their myLocation property on the map view class.

@krstnfx
Copy link
Member

krstnfx commented Oct 18, 2015

This is probably something that will never get implemented for INTULocationManager. As @iwasrobbed suggested, there are other ways to accomplish this. Thanks for the suggestion.

@krstnfx krstnfx closed this as completed Oct 18, 2015
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

10 participants