| 3feea862 | 26-Oct-2020 |
Stanisław Chmiela <[email protected]> |
[expo-notifications] Pick notifications builder and reconstructor in a custom presentation delegate (#10805)
# Why
While `NotificationsScoper` was a simple and working idea, since we moved to the
[expo-notifications] Pick notifications builder and reconstructor in a custom presentation delegate (#10805)
# Why
While `NotificationsScoper` was a simple and working idea, since we moved to the new architecture we can implement picking a builder and reconstructor in a more canonical way.
# How
Configured a subclass of `NotificationsService` in `expoview` that:
1. uses `ScopedCategoryAwareNotificationBuilder` to build Android notifications
2. tries to reconstruct the `ScopedNotificationRequest` before calling `super` (we can expect `ScopedNotificationRequest` will be there since that's what `ScopedCategoryAwareNotificationBuilder` puts into extras)
`NotificationsScoper` is removed in a separate pull request for easier PR review as suggested by bbarthec in another PR.
# Test Plan
I have verified `test-suite` tests pass.
show more ...
|