-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
In App Feedback Prompt Groundwork #22050
Conversation
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22050-dc57c78 | |
Version | 24.0 | |
Bundle ID | org.wordpress.alpha | |
Commit | dc57c78 | |
App Center Build | WPiOS - One-Offs #8497 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22050-dc57c78 | |
Version | 24.0 | |
Bundle ID | com.jetpack.alpha | |
Commit | dc57c78 | |
App Center Build | jetpack-installable-builds #7519 |
I've been going trough PRs to update them via I did not work on this one because it already developed merge conflicts with |
@@ -411,14 +411,8 @@ extension WordPressAppDelegate { | |||
} | |||
|
|||
let utility = AppRatingUtility.shared | |||
utility.register(section: "notifications", significantEventCount: 5) | |||
utility.systemWideSignificantEventCountRequiredForPrompt = 10 | |||
utility.systemWideSignificantEventCountRequiredForPrompt = 20 |
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.
This means, that at least 20 actions should be performed for the App Ratings Prompt to appear.
The count is increased using this method:
AppRatingUtility.shared.incrementSignificantEvent()
/// This checks if we've disabled app review prompts for a feature or at a | ||
/// global level | ||
/// | ||
@objc func checkIfAppReviewPromptsHaveBeenDisabled(success: (() -> Void)?, failure: (() -> Void)?) { |
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.
This is an old remote feature flag mechanism. It is replaced with the new one.
@@ -121,7 +85,7 @@ class AppRatingUtility: NSObject { | |||
/// | |||
@objc(registerSection:withSignificantEventCount:) | |||
func register(section: String, significantEventCount count: Int) { | |||
sections[section] = Section(significantEventCount: count, enabled: true) | |||
sections[section] = Section(significantEventCount: count) | |||
} |
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.
The enabled
property was never set to false
. It was always true
.
02959d0
to
a65af62
Compare
…ion sites with existing plan
a65af62
to
6a98364
Compare
…ler overlays presentation
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.
LGTM. I'll test it again though when we merge the child PR into this one.
Generated by 🚫 dangerJS |
Generated by 🚫 Danger |
Part of #22341
Description
This PR makes changes to the existing
AppRatingsUtility
type. This utility object is responsible for deciding when the App Ratings UI should be shown. The changes include:User visits the Notifications screens and has unread notifications.User taps on unread notification ( see this comment )Test Instructions
Same as #22052
Notes
Remove then
DO NOT MERGE
label when the following PR is approved:Regression Notes
Potential unintended areas of impact
None.
What I did to test those areas of impact (or what existing automated tests I relied on)
None.
What automated tests I added (or what prevented me from doing so)
None.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.