Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More control to show prompt #157

Merged
merged 2 commits into from Feb 7, 2014
Merged

Conversation

phest
Copy link
Contributor

@phest phest commented Dec 11, 2013

To have a button that the user presses to rate the app, Appirater
provides +rateApp. But this triggers the review directly, which may
not be ideal for some UIs. The developer may want to display an
intermediary prompt - this prompt can be both informative to the user
and a confirmation step to go ahead and review. +showPrompt doesn't
fit the bill because it may not open the prompt.

I added +forceShowPrompt: for this use case. It accepts one argument
to show or hide the rate later button (if triggered by a button, the
developer will probably want to hide the rate later button; but some
may want to keep it in the case of using both +forceShowPrompt:
and the usual automatic Appirater mechanisms).

I also went ahead and created +tryToShowPrompt. It's the same as
+showPrompt, but I felt that showPrompt needed to be more
explanatory, as it may actually not show a prompt, and now that
+forceShowPrompt: exists, the distinction begs to be clearer.
+showPrompt still works, I moved it to Deprecated.

Here's the full list of changes:

  • user facing:
    • added: +forceShowPrompt:
    • added: +tryToShowPrompt
    • deprecated: +showPrompt
  • inner workings:
    • added: -showRatingAlert: (option to display rate later button)
    • modified: -showRatingAlert (calls showRatingAlert:true)
    • added: -showPromptWithChecks:displayRateLaterButton: *
    • * used by tryToShowPrompt and forceShowPrompt:)

- user facing:
  - added: +forceShowPrompt: (like showPrompt but no checks, with
    option to display rate later button).
  - added: +tryToShowPrompt (replaces showPrompt, more explanatory)
  - deprecated: +showPrompt
- inner workings:
  - added: -showRatingAlert: (option to display rate later button)
  - modified: -showRatingAlert (calls showRatingAlert:true)
  - added: showPromptWithChecks:displayRateLaterButton:
    (used by forceShowPrompt: and tryToShowPrompt)
@arashpayan
Copy link
Owner

Just skimming the code on github, and this looks good. I still need to pull and test it, but if it works, then I'll merge it in. Thanks for the contribution.

@phest
Copy link
Contributor Author

phest commented Dec 16, 2013

You're welcome. Thanks for your hard work.

arashpayan added a commit that referenced this pull request Feb 7, 2014
@arashpayan arashpayan merged commit 7d7d69b into arashpayan:master Feb 7, 2014
@arashpayan
Copy link
Owner

Took me awhile, but I finally got around to it. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants