language-transfer / lt-app

React Native application for Language Transfer
https://www.languagetransfer.org/
Other
291 stars 26 forks source link

Add rating prompt on iOS #69

Open SyntaxBlitz opened 1 year ago

SyntaxBlitz commented 1 year ago

This code is in js/components/LanguageHome/LanguageHomeTopButton.react.tsx.

Will require:

assigning this to you @jafayer but up to you whether you want to take this on. for motivation, this is what our Android ratings count did after we added the light nag (which is, like, the most polite nag ever -- only shows up at lesson 10 and never shows up again once dismissed)

motivation from our weekly ratings graph: image rating prompt landed in sep 2021. the spike in oct 2020 is just because that's when the app really took off

jafayer commented 1 year ago

Putting this here for posterity:

Looks like Apple's documentation on ratings and reviews suggests (but does not require) we use the native ratings component (See the section "Prefer the system-provided prompt" for more details).

The URL below appears to work for deep linking the review feature both on macos and iphone, but as this stackoverflow notes, it doesn't work in the Simulator so in order to get the feature rolled out I'll obviously have to do some Testflight runs (which I'd have to do anyway).

https://apps.apple.com/us/app/language-transfer/id1519599004?action=write-review

One follow-up detail -- we needed to switch the action but I don't think we had one set before. I can just make up "open_app_store" to match "open_google_play" if that works. We might want to get in the habit of declaring and exporting those as constants in a centralized place for consistency, I think right now we're just using string literals.