是否可以在 ios objective c 中获取远程通知接收时间?

Is it possible to get remote notification received time in ios objective c?

我想在 ios objective c 中获取远程通知接收时间,但我不想在 didReceiveRemoteNotification 方法中使用当前日期和时间代码。我想获得从 Notification 对象收到通知的确切时间。有可能吗?怎么做?提前感谢您的帮助!

你可能会做一件事: 从服务器端处理使用 apns 在密钥上添加时间并获取同一密钥的用户信息字典。

like:{
    "aps":{
        "alert":"Your Message",
        "sound":"push1.wav"
     },
     "custom_key1":"value1",
     "custom_key2":"value2"
}