nobleakonu / foursquared

Automatically exported from code.google.com/p/foursquared
Apache License 2.0
1 stars 0 forks source link

Changing location on website, then using app causes checkin failures. #115

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I discovered a bug with the Android client. If I go to the foursquare 
regular website and change my city to NY to browse stuff my friends are 
doing in NY, it breaks the Android client when trying to check into venues 
in SF. I get an error:

Query failed Invalid input syntax for integer "null" in 
/var/www/foursquare/lib/db_include.php line 59

If I go to the website and change my city back to SF it works again. Took me 
a while to figure that out. Hope this helps!

http://getsatisfaction.com/foursquare/topics/android_app_breaks_when_in_wron
g_city

Original issue reported on code.google.com by jlapenna on 13 Oct 2009 at 4:38

GoogleCodeExporter commented 8 years ago
For now I'll issue a /checkcity and /switchcity call before each /checkin call, 
but 
the best way to fix this would really be to have the server move a user when it 
receives a checkin from a geo-position outside the user's current city.

Original comment by jlapenna on 14 Oct 2009 at 7:40

GoogleCodeExporter commented 8 years ago
This issue was updated by revision b5d10c9fb8.

Refactor Preferences.switchCity to always switch cities, instead of 
conditionally doing so. Add a switchCity call to ShoutActivity.CheckinTask so 
that we don't let the user check into a venue from a city they're not currently 
"in."

Original comment by jlapenna on 14 Oct 2009 at 7:41

GoogleCodeExporter commented 8 years ago

Original comment by jlapenna on 2 Nov 2009 at 5:45