[TIMOB-11936] iOS: Warning Accessing APS keys from toplevel of notification is deprecated when receiving push notification
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-01-23T22:02:43.000+0000 |
Affected Version/s | Release 2.1.3, Release 2.1.4 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Betty Tran |
Assignee | Ingo Muschenetz |
Created | 2012-12-03T14:12:22.000+0000 |
Updated | 2017-03-22T21:17:27.000+0000 |
Description
When receiving a push notification from ACS and the app is running in the foreground, the following warning is displayed in the console:
[326] <Warning>: [WARN] Accessing APS keys from toplevel of notification is deprecated
The push notification is still received.
Attached is a sample app.js that reproduces the warning. To test it:
1. Open the app
2. Click register local push
3. Click register user
4. Click login
5. Click register server push
6. Send a push notification via ACS
Attachments
File | Date | Size |
---|---|---|
app.js | 2012-12-03T14:12:23.000+0000 | 3322 |
This is intentional. We used to flatten the contents of the aps object inside the push notification, e.g., notification.badge as well as notification.aps.badge. Since we don't intercept which properties are used by the app after sending the notification, we have to warn on all notifications, regardless of if notification.badge or its siblings are used or not.
Closing ticket as invalid with reference to the above comments.