fognl

Get off my lawn.

Wednesday, March 31, 2010

Greed 2: Quick fix

A few people have been getting the dreaded "invalid token" error over the past day or so, so I pushed an update just now.

I added the "Clear Tokens" item in the main menu specifically for this problem. Trouble is, even though it cleared the tokens, it didn't actually log out of of Google Reader, so the only way to refresh the login was to exit the app. Oops! That's fixed now.

Also, unread counts are updated more aggressively, so they're more accurate as you read articles.

I also made a change to the background so "edit tag" tokens are re-used as long as possible, eliminating 50% of the web traffic related to read/write operations. So it's faster, basically.

Notifications should also be working now, informing you of new feeds on the interval you specify in the preferences.


11 Comments:

  • At 5:34 PM , Blogger Jeroen said...

    I'm sorry to say, but notifications are still not working :(

     
  • At 9:53 AM , Blogger Kelly said...

    Jeroen,

    Please try them now. I spent some time verifying that the service is running reliably this weekend, and ensuring that it gathers updated feeds correctly. The newest update includes these fixes, and is working reliably for me.

    Thanks,
    Kelly

     
  • At 10:00 AM , Blogger Jeroen said...

    Very strange, it's still not working for me.
    These are my settings:
    - Gulp size: 80
    - Share address: empty
    - 5 first options at notifications checked
    - Polling interval: Every minute

    Phone: Nexus One
    Version: Greed (Lite)

    Jeroen

     
  • At 10:12 AM , Blogger Kelly said...

    Jeroen,

    Are you not getting notifications at all, or are your notifications not showing as many updated feeds as you're expecting?

    Thanks!
    Kelly

     
  • At 10:14 AM , Blogger Jeroen said...

    No notifications at all :(

    Jeroen

     
  • At 10:42 AM , Blogger Kelly said...

    Jeroen,

    Well, that's not right. :-) If you have the service turned on and you're not getting notifications at all, there may be something going wrong in the background. If you want, try this:

    1. Download http://fognl.com/android-apps/com.xtralogic.android.logcollector.apk to install Log Collector on your phone.

    2. Run Greed for about 5 minutes with the settings you specified.

    3. Start Log Collector, and collect the logs.

    4. E-mail the logs to me.

    I should be able to tell what's going on with your notifications, and get a fix into place.

    Thanks,
    Kelly

     
  • At 1:15 AM , Blogger Jeroen said...

    I have to correct myself, it's just that i'm not getting as many updated feeds as there should be (at my computer, Google Reader showed 6 unread items; Greed showed 2)

     
  • At 8:36 AM , Blogger Kelly said...

    Jeroen,

    Good to know that you're at least getting some notifications.

    As to the accuracy of the unread counts, I've noticed that sometimes Google Reader (web) updates its counts less accurately than Greed does. For example, I can read all of the articles in a given feed leaving 0 unread, but the feed will still show (e.g.) 8 unread in Google Reader.

    Greed operates in a similar way, and doesn't strictly update the unread counts every time an article is read. (To do so would mean it would have to query for unread counts every time it marks an item read, etc.)

    When the feed-notification service runs, it retrieves the unread counts from Google Reader so it can use them to determine which feeds have new items. So at the point where that happens, the counts are accurate. Whenever you read an item, Greed updates the unread counts locally without making extra calls to Google Reader. The idea here is to be faster and economical with the requests it's making to Google Reader. The next time the notification service runs, it updates the counts from Google Reader.

    So there is some potential for inaccuracy, but it should at least err on the side of getting the most recent updates. I'll take a look at that.

    Thanks,
    Kelly

     
  • At 2:06 PM , Blogger nescio said...

    Had the same problem even after installing update.
    Htc legend btw
    Changing correct login credentials to false ones, trying to load feeds, then Changing back to correct credentials did the trick

     
  • At 10:55 PM , Blogger Puny Weakling (aka Lemon) said...

    Hi Kelly - how do I get a Greed 2 beta? Long time fan, and bought Greed a while ago.

     
  • At 10:53 PM , Blogger Kelly said...

    Lemon,

    Hi there, I remember you. :-) Are you able to get a copy of Greed 2 from the Market? If not, contact me via e-mail and I'll hook you up.

    Thanks,
    Kelly

     

Post a Comment

Subscribe to Post Comments [Atom]

<< Home