Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(fcm): Support apns.live_activity_token field in FCM ApnsConfig #2891

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

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

janodetzel
Copy link
Contributor

  • feat(fcm): Support live_activity_token field on ApnsConfig
  • added validation
  • update documentation

Fixes #2875

@@ -1725,6 +1725,21 @@ describe('Messaging', () => {
});
});

const invalidApnsLiveActivityTokens: any[] = [null, NaN, 0, 1, true, false]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we should add a test for valid payload?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. I added the tests with valid payloads for the live activity start | update | end events

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Could you change the new property to lowerCamelCase formatting?
Can you also run npm run api-extractor:local? That would update the api docs and should fix the CI errors. Thanks!

src/messaging/messaging-api.ts Outdated Show resolved Hide resolved
* feat(fcm): Support `live_activity_token` field on `ApnsConfig`
* added validation
* update documentation
@janodetzel janodetzel force-pushed the master branch 2 times, most recently from 756c68d to 1d032bd Compare May 30, 2025 20:37
@jonathanedey jonathanedey removed the request for review from lahirumaramba June 3, 2025 13:45
@jonathanedey jonathanedey dismissed lahirumaramba’s stale review June 3, 2025 19:32

Review requested changes were made and error addressed. Removing to unblock.

@jonathanedey jonathanedey merged commit d762464 into firebase:master Jun 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing fields in apns type definition for FCM live activities
6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.