File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ export class Messaging implements FirebaseServiceInterface {
365
365
data : copy . data ,
366
366
notification : copy . notification ,
367
367
webpush : copy . webpush ,
368
+ fcmOptions : copy . fcmOptions ,
368
369
} ;
369
370
} ) ;
370
371
return this . sendAll ( messages , dryRun ) ;
Original file line number Diff line number Diff line change @@ -897,6 +897,7 @@ describe('Messaging', () => {
897
897
data : { key : 'value' } ,
898
898
notification : { title : 'test title' } ,
899
899
webpush : { data : { webKey : 'webValue' } } ,
900
+ fcmOptions : { analyticsLabel : 'label' } ,
900
901
} ;
901
902
return messaging . sendMulticast ( multicast )
902
903
. then ( ( response : BatchResponse ) => {
@@ -912,6 +913,7 @@ describe('Messaging', () => {
912
913
expect ( message . data ) . to . be . deep . equal ( multicast . data ) ;
913
914
expect ( message . notification ) . to . deep . equal ( multicast . notification ) ;
914
915
expect ( message . webpush ) . to . deep . equal ( multicast . webpush ) ;
916
+ expect ( message . fcmOptions ) . to . deep . equal ( multicast . fcmOptions ) ;
915
917
} ) ;
916
918
} ) ;
917
919
} ) ;
You can’t perform that action at this time.
0 commit comments