-
Notifications
You must be signed in to change notification settings - Fork 418
feat(fcm): Enable fid and deprecate token for Send API
#3145
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
Changes from 5 commits
9846af3
97ac410
7bdf972
8b5e564
208378e
96de332
ec3fdc4
6986cc7
37b2740
cf2163d
da81dc2
d914462
55e645e
2316fde
7854f58
9e5d4cf
7a802d9
4e584c4
09f7dd7
e8febe1
2485709
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,13 @@ export interface BaseMessage { | |
| fcmOptions?: FcmOptions; | ||
| } | ||
|
|
||
| export interface FidMessage extends BaseMessage { | ||
| fid: string; | ||
| } | ||
|
|
||
| /** | ||
| * @deprecated Use {@link FidMessage} instead. | ||
| */ | ||
| export interface TokenMessage extends BaseMessage { | ||
| token: string; | ||
| } | ||
|
|
@@ -40,16 +47,26 @@ export interface ConditionMessage extends BaseMessage { | |
|
|
||
| /** | ||
| * Payload for the {@link Messaging.send} operation. The payload contains all the fields | ||
| * in the BaseMessage type, and exactly one of token, topic or condition. | ||
| * in the BaseMessage type, and exactly one of fid, token, topic or condition. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we mention that token is deprecated here as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! Added, Thanks! |
||
| */ | ||
| export type Message = TokenMessage | TopicMessage | ConditionMessage; | ||
| export type Message = FidMessage | TokenMessage | TopicMessage | ConditionMessage; | ||
|
|
||
| /** | ||
| * Payload for the {@link Messaging.sendEachForMulticast} method. The payload contains all the fields | ||
| * in the BaseMessage type, and a list of tokens. | ||
| * in the BaseMessage type, and a list of tokens and/or fids. | ||
| */ | ||
| export interface MulticastMessage extends BaseMessage { | ||
| tokens: string[]; | ||
| /** | ||
| * A list of Firebase Installation IDs (FIDs) to target. | ||
| */ | ||
| fids?: string[]; | ||
|
|
||
| /** | ||
| * A list of registration tokens to target. | ||
| * | ||
| * @deprecated Use {@link MulticastMessage.fids} instead. | ||
| */ | ||
| tokens?: string[]; | ||
| } | ||
|
yvonnep165 marked this conversation as resolved.
|
||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.