HomePhabricator
Diffusion Comm 99cd8f022205

Use notifications permission request API on Android 13 while keeping old…

Description

Use notifications permission request API on Android 13 while keeping old behavior on older Androids.

Summary: This differential uses native API to request notifications permissions in JavaScript on Android 13 devices.

Test Plan:
Build and install the app on Android 13 device. Ensure the following:

  1. After you log in the OS prompts you to grant notifications permission. If you see this prompt before you log in, it is an error.
  2. If you don't allow this permission you are never prompted again (this is what happens on iOS).
  3. If you don't allow this permission ensure you don't see "Unable to initialize notifs" alert that is present on older Androids.

Build the app on older Android device. Ensure no change in behavior occurred.

Reviewers: bartek, tomek, kamil, atul, michal, ashoat

Reviewed By: bartek, ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D7120