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 {
365365 data : copy . data ,
366366 notification : copy . notification ,
367367 webpush : copy . webpush ,
368+ fcmOptions : copy . fcmOptions ,
368369 } ;
369370 } ) ;
370371 return this . sendAll ( messages , dryRun ) ;
Original file line number Diff line number Diff line change @@ -897,6 +897,7 @@ describe('Messaging', () => {
897897 data : { key : 'value' } ,
898898 notification : { title : 'test title' } ,
899899 webpush : { data : { webKey : 'webValue' } } ,
900+ fcmOptions : { analyticsLabel : 'label' } ,
900901 } ;
901902 return messaging . sendMulticast ( multicast )
902903 . then ( ( response : BatchResponse ) => {
@@ -912,6 +913,7 @@ describe('Messaging', () => {
912913 expect ( message . data ) . to . be . deep . equal ( multicast . data ) ;
913914 expect ( message . notification ) . to . deep . equal ( multicast . notification ) ;
914915 expect ( message . webpush ) . to . deep . equal ( multicast . webpush ) ;
916+ expect ( message . fcmOptions ) . to . deep . equal ( multicast . fcmOptions ) ;
915917 } ) ;
916918 } ) ;
917919 } ) ;
You can’t perform that action at this time.
0 commit comments