reward OS notification warning modals are both appearing within the same session #27107
Labels
bug
feature/notifications
OS/Android
Fixes related to Android browser functionality
QA/No
release-notes/exclude
Milestone
Description
Looks like the
Reward
modals are both appearing within the same session. For example, if you disableNotifications
within Brave, going back to theSettings
page, you'll receive the warning modal with theGot it
button. However, if you return to the NTP, you'll get another warning modal, this time the one with theTurn 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.46.133 Chromium: 108.0.5359.71
onAndroid 12
Settings
->Notifications
<
which will take you back toSettings
and you'll see your firstrewards warning
modal (dismiss the modal viaX
)X
to closeSettings
and return to the NTPYou'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 withTurn 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 theReward
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:
Yes
Yes
Yes
Device details
ARM
Samsung Galaxy S10+
(Phone)Android 12
Brave version
Website problems only
N/A
N/A
N/A
Additional information
CCing @deeppandya @sujitacharya2005 @Uni-verse @srirambv @timchilds
The text was updated successfully, but these errors were encountered: