Page MenuHomePhabricator

Fix sound issue for peer-based notifications
ClosedPublic

Authored by marcin on Aug 21 2024, 4:18 AM.
Tags
None
Referenced Files
F3197330: D13131.id43710.diff
Sat, Nov 9, 8:09 AM
F3193737: D13131.diff
Fri, Nov 8, 11:23 PM
Unknown Object (File)
Sun, Nov 3, 9:08 PM
Unknown Object (File)
Wed, Oct 23, 6:10 AM
Unknown Object (File)
Tue, Oct 22, 1:18 PM
Unknown Object (File)
Tue, Oct 22, 8:33 AM
Unknown Object (File)
Sep 25 2024, 3:09 PM
Unknown Object (File)
Sep 25 2024, 3:09 PM
Subscribers

Details

Summary

The context is here. In this differential we disable encryption of sound property for peer notifications.

Test Plan

Ensure that peer notifications make sound. Execute parent differential test plan and ensure that each delivered notification makes sound.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-8284-new-tmp
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

  1. Are there any other APNs fields that we need to surface outside of the encrypted blob like this? For instance, how about priority?
  2. Do we have a similar problem with other encrypted notifs, such as the FCM ones we use for Android?
  1. Are there any other APNs fields that we need to surface outside of the encrypted blob like this? For instance, how about priority?

Sound was the only one. The priority field is not a part of notification but a part of headers of HTTP request to APNS which are never encrypted.

  1. Do we have a similar problem with other encrypted notifs, such as the FCM ones we use for Android?

No, we don't send notification sound on Android. It is set locally on when notifications channel is first created. See here. createChannel implementation is in native code here. It does not mention sound but according to documentation notifications sent to this channel will make sound since its importance is HIGH. The value of this sound is some default set by the system. User can change it in settings.

This revision is now accepted and ready to land.Aug 26 2024, 5:19 AM