question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ad notifications sometimes presented to user when Ads toggle is off - follow up to 2972

See original GitHub issue

Description

Follow up to #2972

Found an additional scenario when Ads are presented to the user when Ads toggle is off in the UI.

If you toggle Rewards off, close and relaunch Brave, then toggle Rewards on, UI will show Ads as off, but in fact, Ads Service is running (you are able to see Ads Service messages in terminal if you’ve launched with the correct flags) and you will be presented with Ad notifications.

Seems as though there are two problems here:

  1. When Rewards are toggled back on after browser restart, Ads are showing as off in the UI.
  2. Ads Service isn’t respecting UI toggle which is set to off.

Steps to Reproduce

  1. Launch Brave with a clean profile - I also used these flags --enable-logging=stderr --vmodule=brave_ads=3 --brave-ads-debug
  2. Enable Rewards, Ads are enabled by default as expected.
  3. Visit some sites - you will see AdsService messages in terminal as expected since Ads are on.
  4. Toggle Rewards off.
  5. Visit some sites, you will not see AdsService messages in terminal as expected since Ads are off.
  6. Toggle Rewards back on.
  7. Visit some sites, you will see AdsService messages in terminal as expected since Ads are on.
  8. Toggle Rewards off.
  9. Close Brave.
  10. Relaunch Brave (I used the same flags as before)
  11. Toggle Rewards on again.

Actual result:

Ads toggle is off in UI, but if you visit pages you will see AdsService messages in the terminal. After a bit of browsing you will also start to get Ad notifications.

screen shot 2019-02-18 at 4 03 44 pm

Expected result:

Since Ads were on before Rewards was disabled, I’d expect toggling Rewards on to turn on Ads. However, if Ads toggle is off in the UI, then I should not be presented with Ad notifications.

Reproduces how often:

easily

Brave version (brave://version info)

Brave 0.60.28 Chromium: 72.0.3626.96 (Official Build) beta(64-bit)
Revision 84098ee7ef8622a9defc2ef043cd8930b617b10e-refs/branch-heads/3626@{#836}
OS Mac OS X

Reproducible on current release: no, Ads are not available on 0.59.x

  • Does it reproduce on brave-browser dev/beta builds? reproduced on beta 0.60.x

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields? n/a
  • Is the issue reproducible on the latest version of Chrome? n/a

Additional Information

cc @brave/legacy_qa

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LaurenWagscommented, Mar 7, 2019

Verified passed with

Brave 0.60.48 Chromium: 72.0.3626.121 (Official Build) (64-bit)
Revision da3787ba355f18db7db52abf75c42afb408d656f-refs/branch-heads/3626@{#883}
OS Mac OS X
  • Verified launching with /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --enable-logging=stderr --vmodule=brave_ads=3 --log-level=0, enabling Rewards, and browsing did not show any AdService Event Log messages in terminal
  • Verified turning Rewards off and browsing still did not show any AdService Event Log messages in terminal
  • Verified closing/relaunching Brave, enabling Rewards again, and browsing did not show any AdService Event Log messages in terminal
  • Verified to way to toggle Ads on in UI
  • Verified no Ad notifications were presented while browsing
0reactions
kjozwiakcommented, Mar 7, 2019

@RyanJarv sounds good 👍 I’ll give this a check tomorrow. @LaurenWags mind giving this another recheck on 0.60.48 as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get rid of spam notifications and rogue ads on your ...
You'll be able to toggle off the site's notification channel on the next screen (see below). On older versions of Android, you may...
Read more >
Why Do I Sometimes See Ads in the Windows Notification Area?
Sometimes I see little notifications in the right-hand corner of my screen, even though I have AdBlock installed. Even worse, sometimes I ...
Read more >
Offender Orientation Handbook
This handbook is designed to provide the offender population with general information along with a standard for acceptable behavior.
Read more >
Cutaneous melanoma: ESMO Clinical Practice Guidelines for ...
Diagnosis should be based on a full thickness excisional biopsy with a minimal side margin [V, A]. Processing of the primary tumour according...
Read more >
Ad Manager notifications - Google Support
Google Ad Manager notifications help you track important events in Ad Manager, such as line items that are under-delivering or creatives that have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found