apptentive/apptentive-ios — pull request #38 by kevinvanderlugt (2013-04-21 20:24:02+00:00)
Title: Set the AppRated Flag to NO if the user is unable to open URL

The AppRated flag currently gets set when a user chooses that they would like to rate the application. This will make the popup never show up again unless the version changes.

The only problem with this is if the user gets a error either opening the URL or with the StoreKit, the user will never get requested to try and rate the app again.

This commit would set the ATAppRatingFlowRatedAppKey to NO if they get an error opening the URL or the StoreKit returns an error. My thought is this would help for intermittent network issues potential, the only concern would be if the error is consistent the user would keep getting a ratings popup.
Thoughts about the last concern? Maybe there is better error checking to be done in the StoreKit completionBlock.

Cheers!
-Kevin