| #
69c8b63f |
| 01-Oct-2020 |
Stanisław Chmiela <[email protected]> |
[expo-notifications] Unify data payload across platforms (#10453)
# Why
Follow up to https://github.com/expo/expo/pull/9164, fixes https://github.com/expo/expo/issues/10070, supersedes https://gi
[expo-notifications] Unify data payload across platforms (#10453)
# Why
Follow up to https://github.com/expo/expo/pull/9164, fixes https://github.com/expo/expo/issues/10070, supersedes https://github.com/expo/expo/pull/10071.
# How
Looked at the payload from the developer's perspective and made it so that `content.data` means exactly the same on both platforms (i.e. `body` object from the native `data`/`payload`, coincidentally used by Expo notification services to provide notification data).
Not to lose inner details of the notifications I have added a new `payload` field to `PushNotificationTrigger` allowing developers to look inside the untouched payload.
# Test Plan
Added tests to `test-suite`!
show more ...
|
| #
f6562485 |
| 28-Jul-2020 |
Charlie Cruzan <[email protected]> |
[expo-notifications] feat: add notification categories (interactive notifications) (#9015)
* ios implementation
* add getCategoriesAsync method
* change type and method names based on architec
[expo-notifications] feat: add notification categories (interactive notifications) (#9015)
* ios implementation
* add getCategoriesAsync method
* change type and method names based on architecture proposal
* add android boilerplate code
* Correct typescript layer according to architecture proposal
* first pass at tests
* return category after creating it, and clean up parsing code
* get iOS tests passing
* [ios] add remaining native options functionality
* finalize tests for iOS
* beginning of android implementation
* [android] implement action button feature
* fix remote notification category handling
* support 'options' argument for notification action
* make some changes to follow new additions to architecture proposal
* [android] add functionality for actions that don't foreground the app
* serialize options so they are returned in an object
* change doNotOpenInForeground to opensAppToForeground
* [android] text reply actions functionality
* [android] pass along user text response with notification
* clean up categoryAwareBuilder
* rebase master, re-'yarn build'
* cleanup iOS
* [android] fix test suite tests
* docs and changelog
* fix typescript typo and rebuild
* update readme
* reformat java code
* rename some java variables
* address iOS feedback
* address remaining pieces of android feedback
* fix client build
* docs, readme, and changelog updates
* improve tests, test feedback
* extract interface, create .native and .web files, and the rest of TS feedback
* optimize all java imports
* [ios] add scoped notification categories
* [ios] remove scope prefix from serialized notification in client
* [ios] left this out of previous commit
* serialize category identifer on android
* [android] scope notification categories in android expo client
* fix spelling mistake
* [expo client] run pod install
* Apply suggestions from code review
Co-authored-by: Łukasz Kosmaty <[email protected]>
* add andraid NonNull handling
* [ios] scope notification serializer
* Apply suggestions from code review
fix name of category prefix remover method; spacing fixes
Co-authored-by: Łukasz Kosmaty <[email protected]>
* fix reversed emitted events on iOS, and re- yarn build
* fix iOS client build
* rebuild JS
Co-authored-by: Łukasz Kosmaty <[email protected]>
show more ...
|