Page MenuHomePhabricator

[native] Add filtering entitlement to Notification Service Extension
ClosedPublic

Authored by ashoat on Feb 23 2023, 5:26 AM.
Tags
None
Referenced Files
F3517432: D6847.id23010.diff
Sun, Dec 22, 5:23 PM
F3517134: D6847.id22989.diff
Sun, Dec 22, 4:21 PM
Unknown Object (File)
Nov 22 2024, 1:44 AM
Unknown Object (File)
Nov 22 2024, 1:44 AM
Unknown Object (File)
Nov 22 2024, 1:43 AM
Unknown Object (File)
Nov 22 2024, 1:41 AM
Unknown Object (File)
Nov 15 2024, 11:48 PM
Unknown Object (File)
Nov 14 2024, 4:30 AM
Subscribers

Details

Test Plan

Confirmed that Xcode is able to load the refreshed Provisioning Profile for the Notification Service Extension, and that the relevant entitlement is listed:

Screenshot 2023-02-23 at 8.28.52 AM.png (718×1 px, 301 KB)

In order to test whether the entitlement works as expected complete the following steps:

  1. Modify NotificationService.mm as here: https://gist.github.com/marcinwasowicz/193fb4916b277537a4b7f9e88a456e06
  2. Unblock this flag on keyserver side: https://github.com/CommE2E/comm/blob/master/keyserver/src/push/send.js#L509
  3. Ensure that notification are not displayed even though app is given suitable permission.

This test plan might need to be executed on physical device.

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/filtering_entitlement
Lint
No Lint Coverage
Unit
No Test Coverage