The current available foursquare data, which include the check-in history. But can we get the location of user when they issue the query?
Related
I am developing a news application that should retrieve the user location in order to send the corresponding news related to his position.
Everything will work perfectly if the user has already granted the location permission. My issue is occurring when the user deny the location permission and I can't retrieve his location and the CLLocationManager DidFailWithError method is being called.
The location services framework, as I understand it, uses a 3-stage algorithm to determine user location. It attempts to fix location via: GPS, Wi-Fi, network, in order of preference.
I need an alternative option to retrieve the user location when GPS is turned off or not available. Can’t the app use a secondary (less accurate lat/lon) retrieved from the cached network/Wi-Fi lat/lon estimate?(or any other method)
If you are concerned about user current city in order to send him news then you can achieve that. Try to request news from your server api as you are doing right now, on server side check if you don't get any latitude longitude from request params then you use user ip address to get user city info. Search for some services which gives you location info based on user IP address. Hope that helps
I have an iOS app with Google Analytics to track engagement/retention, and I have been trying to set up a way to track the session durations of specific users. I followed all of the steps to send the User-ID value when a user logs into a session (using &uid), and I have also created a User-ID enabled reporting view. However, I have no idea how to sift through the bulk session data to pick out the behavior of an individual user. Thanks for your time and help, this is really important to my company.
User ID - iOS SDK
The User ID feature enables the measurement of user activities that
span across devices in Google Analytics, such as attributing an
interaction with a marketing campaign on one mobile device to a
conversion that occurs on another mobile device or in the browser.
When User IDs are sent with Google Analytics hits using the userId
field, your reports will reflect a more accurate count of unique users
and offer new cross-device reporting options.
Userid is used internally by Google analytics to give you more actuate user data in your reports, there for your reports already have it included.
If you are trying to find the value itself so that you can track a user though their use of your application you cant. Google Analytics doesn't allow you to track individual users that would violate their privacy. You could add this value as a custom dimension and track them that way as long as its a non identifiable userid you are using, something that cant be tracked back to a specific user.
Please suggest the most efficient approach to implement different users tracking each other on the map, so every user can see others current location and they can see his.
For example: if one user moves, other immediately see his new location and vice versa. If the user moves and new users appear in his vicinity, they are tracked.
I would like to use Parse as a backend for this.
I tried the approach of saving new location on didUpdateUserLocationand then running a query in background, configured as myQuery.whereKey("location", nearGeoPoint: currentGeoPoint, withinKilometers: 0.5)
It works but apparently uses lots of bandwidth, as even a small change in user location triggers a query to Parse (and i see internet activity indicator on iPhone status bar working all the time).
So i have a feeling that it can be way more efficient.
Should i use push notifications instead?
If so, what would be the implementation in general?
Thanks a lot!
If you want to monitor location changes in realtime, then this will of course require a substantial amount of interaction with the remote server. While Parse may or may not be a good backend for this task, you should keep in mind that, if you are using the free plan, you have a limit of 30 API requests/second (and this may easily be exceeded in this scenario when you have multiple users).
Limiting the updates to significant location changes may be a reasonable compromise, as described in the documentation. Here, you would get a new location when the user moved ~500m, but this could of course be the downside when you want to literally follow the user in person.
Using push notifications to inform other users of a user's location changes might be more efficient:
send a push notification to the followers once a user changes
her/his location. This would mean one request for each location
change.
update other users' location changes when your own
location changes. Here you would have two requests for each location
change.
Using 1, you would still get updates from other users, even when you are not on the move. Note that these requests are counted for the device, not for Parse. I.e. Parse includes sending push notifications in the request limit.
I am trying to send push notifications out to users through the parse cloud and was wondering if there is a way with the device token to access their current location? I have tried to see what information I can access through apples push notification server but it only tells me what information I can send not what I can receive.
Thanks for the help.
You can't track the location of your users without their consent, and in most circumstances that will require your app to be running and sending location data to your service (e.g. saving it in Parse).
Anything else would be a gross violation of Privacy Rules, not gonna happen.
As mentioned by Fosco, the correct way to do it is to request location information through the usual API (which gets user permission), then save it in the Installation object.
At FourSquare I am venue manager of below venue
https://foursquare.com/v/blue-label-labs/51127b9ce4b0fe8b7daf9dbb
this venue is located at Brooklyn, NY 11211, United States.
At this venue while any user checks-in from +5:30 Time Zone(venue time zone is -5:00) I does not get history any history of that user and also did not get that user in here now(API Service) also.
I want to get all check-ins from all over the world of any user at my venue.
Is there any time zone issue?
Any body can help me?
Foursquare doesn't allow you to check in to a location unless it thinks the user is actually nearby, so this probably has to do with the fact that this particular user is checking in from halfway across the globe. This also means that you can't really get check-ins from "all over the world" at a particular place.
For further app or product issues, please refer to Foursquare Support and reserve StackOverflow for API or Platform questions.