File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ describe('APNS', () => {
183
183
'sound' : 'test' ,
184
184
'content-available' : 1 ,
185
185
'mutable-content' : 1 ,
186
+ 'targetContentIdentifier' : 'window1' ,
187
+ 'interruptionLevel' : 'passive' ,
186
188
'category' : 'INVITE_CATEGORY' ,
187
189
'threadId' : 'a-thread-id' ,
188
190
'key' : 'value' ,
@@ -200,6 +202,8 @@ describe('APNS', () => {
200
202
expect ( notification . aps . sound ) . toEqual ( data . sound ) ;
201
203
expect ( notification . aps [ 'content-available' ] ) . toEqual ( 1 ) ;
202
204
expect ( notification . aps [ 'mutable-content' ] ) . toEqual ( 1 ) ;
205
+ expect ( notification . aps [ 'target-content-id' ] ) . toEqual ( 'window1' ) ;
206
+ expect ( notification . aps [ 'interruption-level' ] ) . toEqual ( 'passive' ) ;
203
207
expect ( notification . aps . category ) . toEqual ( data . category ) ;
204
208
expect ( notification . aps [ 'thread-id' ] ) . toEqual ( data . threadId ) ;
205
209
expect ( notification . payload ) . toEqual ( {
Original file line number Diff line number Diff line change @@ -199,6 +199,12 @@ export class APNS {
199
199
let isMutable = coreData [ 'mutable-content' ] === 1 ;
200
200
notification . setMutableContent ( isMutable ) ;
201
201
break ;
202
+ case 'targetContentIdentifier' :
203
+ notification . setTargetContentIdentifier ( coreData . targetContentIdentifier ) ;
204
+ break ;
205
+ case 'interruptionLevel' :
206
+ notification . setInterruptionLevel ( coreData . interruptionLevel ) ;
207
+ break ;
202
208
case 'category' :
203
209
notification . setCategory ( coreData . category ) ;
204
210
break ;
You can’t perform that action at this time.
0 commit comments