mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
set dismissal for live activity in lock screen
This commit is contained in:
parent
6e668e538c
commit
a467b08878
1 changed files with 4 additions and 3 deletions
|
@ -277,9 +277,10 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) {
|
||||||
|
|
||||||
bb, _ := json.Marshal(map[string]interface{}{
|
bb, _ := json.Marshal(map[string]interface{}{
|
||||||
"aps": map[string]interface{}{
|
"aps": map[string]interface{}{
|
||||||
"timestamp": time.Now().Unix(),
|
"content-state": din,
|
||||||
"event": ev,
|
"dismissal-date": la.ExpiresAt.Unix(),
|
||||||
"content-state": din,
|
"event": ev,
|
||||||
|
"timestamp": now.Unix(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue