Super Rewards - when to update?

I’m trying to use Direct Payments with my application (instead of offers). I’m having a problem that might stem from me not understanding the docs in full.

I’d like to know when is a good time to call requestUpdate(). As far as I can see, the best time is when the user closes the offers window - but I don’t get a change to listen for that event?

I’m about to ship my application that’s already in the app store to android stores, and I’m trying to figure out if I need a separate interface or button between the native offers window and my application just to know when to update, or can I leverage something in the API that I’ve missed. [import]uid: 8145 topic_id: 13242 reply_id: 313242[/import]

Hello Wizem,

The credits.showOffers() function should be blocking. So, I recommend that you call credits.requestUpdate() right after that function call. Please see sample app “Credits/SuperRewardsSample” for more details.
[import]uid: 32256 topic_id: 13242 reply_id: 48663[/import]

Thanks, that’s great!

Didn’t quite understand why the update call was directly after the showOffers() call, now it all makes sense :slight_smile: [import]uid: 8145 topic_id: 13242 reply_id: 48771[/import]