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

Ad notifications are not displayed on macOS Catalina #6466

Closed
tmancey opened this issue Oct 14, 2019 · 4 comments · Fixed by brave/brave-core#3850
Closed

Ad notifications are not displayed on macOS Catalina #6466

tmancey opened this issue Oct 14, 2019 · 4 comments · Fixed by brave/brave-core#3850
Assignees
Labels
bug feature/ads OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-macOS QA/Yes release-notes/include

Comments

@tmancey
Copy link
Contributor

tmancey commented Oct 14, 2019

Description

Steps to Reproduce

Prerequisite: Install macOS Catalina

  1. Enable Ads
  2. Navigate to www.brave.com

Actual result:

Ad notification is not shown

Expected result:

Ad notification should be shown

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

All

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the dev channel? Yes
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • 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

Miscellaneous Information:

Ad notifications are displayed as native notifications using an XPC service, allowing different types of alert styles to be displayed.

The XPC service is incompatible with macOS Catalina for different types of alert styles.

A workaround is to disable native notifications for Brave Browser on macOS Catalina until the native notifications platform bridge has been updated to support this new operating system.

Custom notifications are displayed if brave://flags/#enable-native-notifications is Disabled or the operating system does not support native notifications.

Additional sanity testing is required to make sure Ad notifications work as expected with custom notifications.

Custom notifications will not be displayed in the macOS Notification Center, which is likely less of a concern due to Ads history is available from the Rewards panel.

@tmancey tmancey changed the title Ad notifications are not shown on macOS Catalina Ad notifications are not displayed on macOS Catalina Oct 14, 2019
@jsecretan jsecretan added the priority/P2 A bad problem. We might uplift this to the next planned release. label Oct 14, 2019
@NejcZdovc NejcZdovc assigned tmancey and unassigned masparrow Oct 15, 2019
@Brave-Matt
Copy link

From Community -- several users reporting:
https://community.brave.com/t/upgrade-to-catalina-stopped-rewards/87211/8

@tmancey
Copy link
Contributor Author

tmancey commented Nov 1, 2019

TODO(crbug.com/1007418): Show all notifications as alerts on macOS as a temporary workaround. NSUserNotificationAlertStyle has been changed to "alert" in "src/chrome/app/app-info.plist". If the notification is non-persistent remove the notification after 5 seconds to emulate banners, as a side-effect notifications will not minimize to the notification centre. Brave ads are dismissed within AdsServiceImpl

@kjozwiak
Copy link
Member

kjozwiak commented Nov 5, 2019

Verification PASSED on macOS 10.15.1 x64 using the following build:

Brave 0.71.111 Chromium: 78.0.3904.87 (Official Build) (64-bit)
Revision 20c21f4010010f32462ea8e1d6af30cef66d48c8-refs/branch-heads/3904@{#840}
OS macOS Version 10.15.1 (Build 19B88)
  • ensured that ad notifications are being displayed when using Banners from Notifications via the macOS System Preferences:

Screen Shot 2019-11-04 at 4 06 18 PM

  • ensured that ad notifications are being displayed when using Alerts from Notifications via the macOS System Preferences:

Screen Shot 2019-11-04 at 4 01 04 PM

  • ensured that ad notifications are being displayed when using None from Notifications via the macOS System Preferences:

Screen Shot 2019-11-05 at 12 49 04 AM

Noticed that ad notifications disappear from the notification tray after ~2mins. This has been an issue for a while and not related to this change. Added comments via #5628 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature/ads OS/macOS priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass-macOS QA/Yes release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants