This differential adds method to CommIOSNotifications module that can send event to JS to persist in redux message infos that wasreceived by Notification Service Extension while the app was in the background.
Details
Details
Build the app. Call this method in didReceiveNotification callback in AppDelegate with dummy message infos. Subscribe in JS to log message infos to console.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- marcin/eng-3363
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm | ||
---|---|---|
271 | This string is used twice - maybe we can extract it to a constant? |
native/ios/Comm/CommIOSNotifications/CommIOSNotifications.mm | ||
---|---|---|
271 | To be consistent we would have to do so for every string that represents a certain event we send to JS (each string in supportedEvents method is used twice in the same manner). This will be done along with https://linear.app/comm/issue/ENG-2842/export-javascript-event-names-as-constants-in-native-modules. For now I would leave it as it is in order to be consistent with the rest of the code. |