HomePhabricator
Diffusion Comm c46c839b662d

Native Java code to request notifications permissions from JS on Android 13

Description

Native Java code to request notifications permissions from JS on Android 13

Summary: This differential implements native methods to be exposed to JS to request notifications permissions.

Test Plan:
Build the app on Android 13 device. Call CommAndroidNotifications.requestNotificationsPermission() from
ensurePushNotifsEnabled in push-handler.js. Ensure that prompt to grant permissions is visible ONLY after log in and that decision
passed to the prompt govoerns whether application can display notifs or not.

Reviewers: tomek, bartek, ashoat

Reviewed By: bartek, ashoat

Subscribers: ashoat, atul

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

Details

Provenance
marcinAuthored on Mar 20 2023, 12:05 PM
Reviewer
bartek
Differential Revision
D7106: Native Java code to request notifications permissions from JS on Android 13
Parents
rCOMM09e0c1ae599d: Build files set-up for Android 13
Branches
Unknown
Tags
Unknown