Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: passing fcmToken when using mobile #4823

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

Jonathansoufer
Copy link
Contributor

@Jonathansoufer Jonathansoufer commented Oct 21, 2024

Explanation

This PR adds support to FCM Token to be passed as an optional param when using mobile platform since mobile handle FCM Token creation natively through Firebase SDK.

References

NOTIFY-1240

Changelog

@notification-services-controller

ADDED: optional FCM token to use for push notifications on enablePushNotifications

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@Jonathansoufer Jonathansoufer self-assigned this Oct 21, 2024
@Jonathansoufer Jonathansoufer requested a review from a team as a code owner October 21, 2024 15:16
@Jonathansoufer Jonathansoufer added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Oct 21, 2024
@Jonathansoufer Jonathansoufer merged commit fe28a23 into main Oct 21, 2024
116 checks passed
@Jonathansoufer Jonathansoufer deleted the NOTIFY-1240/add-mobile-fcmtoken-optional-param branch October 21, 2024 17:02
matteoscurati added a commit that referenced this pull request Oct 22, 2024
## Explanation

This is a RC for v224.0.0. See changelog for more details

@metamask/notification-services-controller:0.10.1

## References

- https://consensyssoftware.atlassian.net/browse/NOTIFY-1230
- https://consensyssoftware.atlassian.net/browse/NOTIFY-1238

## Changelog

```
## [0.11.0]

### Added

- Added support for an optional FCM token parameter for push notifications on mobile platforms, allowing native handling of FCM token creation through the Firebase SDK ([#4823](#4823))

### Changed

- update the types described in `types/on-chain-notification/schema` and `types/on-chain-notification/on-chain-notification` ([#4818](#4818))

  - adds new notifications: aave_v3_health_factor; ens_expiration; lido_staking_rewards; notional_loan_expiration; rocketpool_staking_rewards; spark_fi_health_factor
  - splits Wallet Notifications from Web 3 Notifications

- updated and added new notification mocks ([#4818](#4818))
  - can be accessed through `@metamask/notification-services-controller/notification-services/mocks`

### Fixed

- made `updateMetamaskNotificationsList` function work correctly by making the message handler async and moving the publish call outside of the update function. This ensures the `NotificationServicesController:notificationsListUpdated` event is received by the extension ([#4826](#4826))
```

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants