Page MenuHomePhabricator

Fix sound issue for peer-based notifications
ClosedPublic

Authored by marcin on Aug 21 2024, 4:18 AM.
Tags
None
Referenced Files
F3506999: D13131.diff
Fri, Dec 20, 6:58 PM
Unknown Object (File)
Wed, Dec 18, 2:40 PM
Unknown Object (File)
Wed, Dec 18, 2:40 PM
Unknown Object (File)
Wed, Dec 18, 2:40 PM
Unknown Object (File)
Wed, Dec 18, 2:40 PM
Unknown Object (File)
Mon, Dec 2, 7:54 AM
Unknown Object (File)
Thu, Nov 21, 12:44 AM
Unknown Object (File)
Nov 9 2024, 6:44 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
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