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

Can't enable Ads while offline, from brave://rewards page #19620

Closed
stephendonner opened this issue Nov 20, 2021 · 12 comments
Closed

Can't enable Ads while offline, from brave://rewards page #19620

stephendonner opened this issue Nov 20, 2021 · 12 comments
Assignees
Labels

Comments

@stephendonner
Copy link

Description

Can't enable Ads while offline, from brave://rewards page

Steps to Reproduce

  1. new profile
  2. launch Brave
  3. disconnect from Wi-Fi/internet
  4. load brave://settings
  5. click on Brave Rewards in the left pane
  6. click on the right pane to enable Brave Private Ads
  7. click Skip for now
  8. click Continue
  9. click Done
  10. dismiss the panel
  11. load brave://rewards
  12. try to toggle Ads to On

Actual result:

fun-one

Expected result:

Should be able to enable Ads, as you can from brave://settings, while offline

Reproduces how often:

100%

Brave version (brave://version info)

Brave 1.33.51 Chromium: 95.0.4638.69 (Official Build) nightly (64-bit)
Revision 6a1600ed572fedecd573b6c2b90a22fe6392a410-refs/branch-heads/4638@{#984}
OS Linux
@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

@stephendonner ads by design cannot be enabled unless the user has an internet connection (as ads needs a valid wallet). For me the ads switch is also disabled at brave://settings/rewards

Screenshot 2021-11-22 at 09 33 14

@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

@emerick your thoughts on the above please? Thanks

@emerick
Copy link
Contributor

emerick commented Nov 22, 2021

@tmancey I wasn't aware of that. So I take it then that the bug is we're allowing ads to be enabled from brave://settings/rewards?

@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

@emerick see above screenshot, as "Brave private ads" are not enabled for me when following the above steps. So for me, this is working as expected

@stephendonner
Copy link
Author

Not enabled/off is not the same as disabled, in my case here (not to split hairs). I'm still able to enable them via brave://settings/rewards but not brave://rewards, while offline:

rewards-offline

@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

@stephendonner ah so yes I missed the last step where you enabled "Brave private ads" from brave://settings/rewards. @emerick a user should not be able to enable ads unless they have an internet connection.

@emerick
Copy link
Contributor

emerick commented Nov 22, 2021

OK, got it.

@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

If we allow users to enable rewards/ads without an internet connection, they will see a lot of -1 errors in the logs.

@emerick
Copy link
Contributor

emerick commented Nov 22, 2021

Is it me or does this behavior only work on Mac? After disabling WiFi on Windows, Ads is still allowing me to enable/disable itself at will.

@stephendonner
Copy link
Author

Is it me or does this behavior only work on Mac? After disabling WiFi on Windows, Ads is still allowing me to enable/disable itself at will.

Just you 😉

windows

@tmancey
Copy link
Contributor

tmancey commented Nov 22, 2021

I have seen inconsistencies with Chromium detecting Windows network connections.

@emerick
Copy link
Contributor

emerick commented Nov 23, 2021

I see how this works now. It seems that you can actually enable Ads when you don't have an Internet connection, it's just that you have to have already created a wallet before disabling your network connection. In my test, I successfully enabled Ads with my network disconnected because I already had a wallet. So there's really no explicit code in Ads to do this, it just sort of happens due to the way things are structured. In fact, when you try to enable Ads with the network disconnected and no wallet the screen flickers because it's trying to turn Ads on, but the wallet creation fails and it goes back to disabled again.

It honestly seems to me like we should be more intentional in our handling of this. Having an Ads toggle button that stops working without warning when the Internet isn't connected seems like it will frustrate/confuse users. It also doesn't cover the (probably common) case of a user enabling Rewards/Ads and then losing internet connectivity (unless I'm missing something...)

@zenparsing zenparsing added the priority/P4 Planned work. We expect to get to it "soon". label Dec 1, 2021
@Miyayes Miyayes self-assigned this Sep 7, 2022
@Miyayes Miyayes removed the bug label Sep 7, 2022
@Miyayes Miyayes removed their assignment Mar 4, 2023
@Miyayes Miyayes closed this as completed Mar 4, 2023
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

5 participants