For those working on or looking to work on foursquare for webOS, another task!
Foursquare allows apps to set the global settings for a user. For instance, on the website, you can enable sending mayorships to twitter or Facebook. The API allows apps to provide a preference for users to do this.
It’d be cool if someone would add these preferences into the Preferences of the app with on/off switches.
Documentation is here: https://developer.foursquare.com/docs/settings/set.html
Leave out “receiveCommentPings” since the app doesn’t support those. (Another task?!)
Basically, I envision there being a “Facebook Settings” and a “Twitter Settings” section in the Preferences.
Facebook Settings
- By default, send check-ins to Facebook
- Share the badges I earn to Facebook
- Share the mayorships I earn to Facebook
Twitter Settings
- By default, send check-ins to Twitter
- Share the badges I earn to Twitter
- Share the mayorships I earn to Twitter
The API will return a JSON object with a message to display to the user. an Alert Popup should display this message.
Obviously, these settings will have to be retrieved when the app is launching, which it already does in the background when the user is logged in. So, you should tap into this response that already happens and set the preferences accordingly. https://developer.foursquare.com/docs/settings/all.html
Since these settings affect server-side functions, the app doesn’t need any other changes.
Let me know if you want in on building this. Source code is here: https://github.com/foursquare/foursquare-palmpre
blog comments powered by Disqus