Hi:
I'm wondering why dragging and dropping an APNs file to the simulator worked as expected and, now with Xcode 14.3 it doesn't.
I mean the object userInfo:
let notification: UNNotification ....
let userInfo = notification.request.content.userInfo
Now contains all the JSON, and before only the user Info.
The APNS file is this:
{
"aps":{
"alert":{
"title":"Title",
"body":"BODY",
},
"badge":0,
"key1":"valu1",
"category": "category"
},
"Simulator Target Bundle":"com.app.bundle"
}
What I get now is:
(lldb) po userInfo
▿ 2 elements
▿ 0 : 2 elements
▿ key : AnyHashable("aps")
- value : "aps"
▿ value : 4 elements
▿ 0 : 2 elements
- key : category
- value : category
▿ 1 : 2 elements
- key : alert
▿ value : 2 elements
▿ 0 : 2 elements
- key : title
- value : Title
▿ 1 : 2 elements
- key : body
- value : BODY
▿ 2 : 2 elements
- key : badge
- value : 0
▿ 3 : 2 elements
- key : key1
- value : valu1
▿ 1 : 2 elements
▿ key : AnyHashable("Simulator Target Bundle")
- value : "Simulator Target Bundle"
- value : com.app.bundle
What I should get
▿ 2 elements
▿ 0 : 2 elements
▿ key : AnyHashable("key1")
- value : "key1"
- value : valu1
Maybe it is something related to the last change on pushes @eskimo? I mean, now web pushes are allowed.
Thanks in advance