-
Notifications
You must be signed in to change notification settings - Fork 7
[MOB-1589] App Store rating prompt improvements #893
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
265c904
to
0ed722b
Compare
03075e3
to
6aca4cc
Compare
Ah, I put it into the wrong place :face_palm: Working on porting things to the rate action, |
Hello! I realized that I managed to put the dialog in the wrong place for some reason, I'll try to move it to the correct place 😓 |
6aca4cc
to
b4db845
Compare
Hey @TimNowaczynski 👋 - do you need any help to move this implementation further? |
[MOB-1589] MOB-1589: App Store rating prompt improvements
3c7d0a5
to
3234674
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @TimNowaczynski 👋
added a few notes as summary/reminder of the call we had earlier 😉 .
Happy 🍎 coding!
|
||
enum activityType: String { | ||
case openURL = "org.mozilla.ios.Firefox.newTab" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed on removing these 👍
// MARK: Ecosia | ||
|
||
private func interceptNegativeReviews() { | ||
let rateAction = UIAlertAction(title: .localized("Yes"), style: .default) { _ in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should reference our Ecosia's String enum cases here instead of the raw string
RatingPromptManager.goToAppStoreReview() | ||
} | ||
|
||
let helpAction = UIAlertAction(title: .localized("No"), style: .destructive) { _ in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
} | ||
|
||
let helpAction = UIAlertAction(title: .localized("No"), style: .destructive) { _ in | ||
let helpActivity = NSUserActivity(activityType: activityType.openURL.rawValue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No activityType
but instead open the Help Page. For reference see how we open it from the "Help Center" item in settings
public static let SettingsRatingPromptTitle = MZLocalizedString( | ||
key: "Settings.RatingPrompt.Title", | ||
tableName: "Settings", | ||
value: "Do you enjoy Ecosia?", | ||
comment: "This is what we prompt our users if they hit the rate button from within the settings") | ||
public static let SettingsRatingPromptYes = MZLocalizedString( | ||
key: "Settings.RatingPrompt.Yes", | ||
tableName: "Settings", | ||
value: "Yes", | ||
comment: "When hit will redirect the user to rate the app on the app store") | ||
public static let SettingsRatingPromptNo = MZLocalizedString( | ||
key: "Settings.RatingPrompt.No", | ||
tableName: "Settings", | ||
value: "No", | ||
comment: "Used to indicate the user does not like ecosia and will redirect them to our help pages") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will be removed
switch Language.current { | ||
case .de: | ||
return URL(string: "https://apps.apple.com/de/app/ecosia/id1474845552")! | ||
case .fr: | ||
return URL(string: "https://apps.apple.com/fr/app/ecosia/id1474845552")! | ||
default: | ||
return URL(string: "https://apps.apple.com/us/app/ecosia/id1474845552")! | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be replaced as you shown me in the video call
"Do you enjoy Ecosia?" = "Do you enjoy Ecosia?"; | ||
"Yes" = "Yes"; | ||
"No" = "No"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of these dupes, we can remove.
This is currently a WIP because tests are still missing :)
Context
Approach
Other
Before merging
Checklist
// Ecosia:
helper comments where needed