In App Feedback Prompt Groundwork - #22050
Conversation
|
| App Name | WordPress Alpha |
|
| 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 | Jetpack Alpha |
|
| 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 |
| let utility = AppRatingUtility.shared | ||
| utility.register(section: "notifications", significantEventCount: 5) | ||
| utility.systemWideSignificantEventCountRequiredForPrompt = 10 | ||
| utility.systemWideSignificantEventCountRequiredForPrompt = 20 |
There was a problem hiding this comment.
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.
This is an old remote feature flag mechanism. It is replaced with the new one.
| 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.
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
alpavanoglu
left a comment
There was a problem hiding this comment.
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
AppRatingsUtilitytype. 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 MERGElabel 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.txtif necessary.