File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -126,13 +126,7 @@ export interface Notification {
126
126
export interface WebpushConfig {
127
127
headers ?: { [ key : string ] : string } ;
128
128
data ?: { [ key : string ] : string } ;
129
- notification ?: WebpushNotification ;
130
- }
131
-
132
- export interface WebpushNotification {
133
- title ?: string ;
134
- body ?: string ;
135
- icon ?: string ;
129
+ notification ?: { [ key : string ] : any } ;
136
130
}
137
131
138
132
export interface ApnsConfig {
Original file line number Diff line number Diff line change @@ -2236,6 +2236,22 @@ describe('Messaging', () => {
2236
2236
title : 'test.title' ,
2237
2237
body : 'test.body' ,
2238
2238
icon : 'test.icon' ,
2239
+ actions : [ {
2240
+ action : 'test.action.1' ,
2241
+ title : 'test.action.1.title' ,
2242
+ icon : 'test.action.1.icon' ,
2243
+ } , {
2244
+ action : 'test.action.2' ,
2245
+ title : 'test.action.2.title' ,
2246
+ icon : 'test.action.2.icon' ,
2247
+ } ] ,
2248
+ badge : 'test.badge' ,
2249
+ data : {
2250
+ key : 'value' ,
2251
+ } ,
2252
+ dir : 'auto' ,
2253
+ image : 'test.image' ,
2254
+ requireInteraction : true ,
2239
2255
} ,
2240
2256
} ,
2241
2257
} ,
You can’t perform that action at this time.
0 commit comments