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

reward OS notification warning modals are both appearing within the same session #27107

Closed
kjozwiak opened this issue Dec 2, 2022 · 2 comments
Assignees
Labels

Comments

@kjozwiak
Copy link
Member

kjozwiak commented Dec 2, 2022

Description

Looks like the Reward modals are both appearing within the same session. For example, if you disable Notifications within Brave, going back to the Settings page, you'll receive the warning modal with the Got it button. However, if you return to the NTP, you'll get another warning modal, this time the one with the Turn on Brave notifications button.

We should probably only be displaying one warning per session and as per #26930, we should only be showing them once.

Steps to reproduce

  1. install 1.46.133 Chromium: 108.0.5359.71 on Android 12
  2. go through onboarding and enable rewards via the panel
  3. once rewards has been enabled, disable OS notifications through Brave using Settings -> Notifications
  4. tap on < which will take you back to Settings and you'll see your first rewards warning modal (dismiss the modal via X)
  5. tap on X to close Settings and return to the NTP

You'll notice another rewards warning modal once again (even though you've just seen one a few seconds ago)

Actual result

Example of Rewards modal being displayed twice

Screen_Recording_20221201_184843_Brave.mp4

Expected result

The above might be expected as the modals are different in nature but I think we should probably show them in different sessions rather than both within the same session. For example, display the Got it modal first and then the one with Turn on Brave notifications after the browser has been restarted.

Note: The privacy report modals appear to do the suggested behaviour, seems like it's just the Reward modals that both show within the same session. Example:

Screen_Recording_20221201_190406_Brave.mp4

Issue reproduces how often

100% reproducible using the STR/Cases outlined above.

Version/Channel Information:

  • Can you reproduce this issue with the current Play Store version? Yes
  • Can you reproduce this issue with the current Play Store Beta version? Yes
  • Can you reproduce this issue with the current Play Store Nightly version? Yes

Device details

  • Install type (ARM, x86): ARM
  • Device type (Phone, Tablet, Phablet): Samsung Galaxy S10+ (Phone)
  • Android version: Android 12

Brave version

Brave | 1.46.133 Chromium: 108.0.5359.71 (Official Build) (32-bit)
--- | ---
Revision | 1e0e3868ee06e91ad636a874420e3ca3ae3756ac-refs/branch-heads/5359@{#1016}
OS | Android 12; Build/SP1A.210812.016

Website problems only

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Additional information

CCing @deeppandya @sujitacharya2005 @Uni-verse @srirambv @timchilds

@sujitacharya2005
Copy link

@kjozwiak
Updated this condition as per this

  • For 3rd launch case just re-check the conditions and show the proper dialog.
  • From Brave Setting case once click on notification and come back show the corresponding dialog.

PR : brave/brave-core#16128

  1. Application re-launch 3rd time
  2. From Brave setting -> notification click each time

If main notification is off, Rewards feature is off, privacy feature is off -> Show Generic Dialog
if main notification is off, Rewards feature is on, privacy feature is off -> Show rewards message dialog
if main notification if off, Rewards feature is off, privacy feature is on -> show Privacy message dialog
if main notification is off, Rewards feature is on, Privacy feature is on -> Show both rewards & privacy message dialog

@kjozwiak
Copy link
Member Author

So this appears to have been fixed with brave/brave-core#16681. I'm not seeing the NTP modals appear within the same session anymore once the notifications have been disabled. Went through it several times via brave/brave-core#16681 (comment) on Nightly and #27810 (comment), #27808 (comment) and #27809 (comment) on release.

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

No branches or pull requests

2 participants