Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11936] iOS: Warning Accessing APS keys from toplevel of notification is deprecated when receiving push notification

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-01-23T22:02:43.000+0000
Affected Version/sRelease 2.1.3, Release 2.1.4
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBetty Tran
AssigneeIngo Muschenetz
Created2012-12-03T14:12:22.000+0000
Updated2017-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

FileDateSize
app.js2012-12-03T14:12:23.000+00003322

Comments

  1. Blain Hamon 2013-01-23

    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.
  2. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to the above comments.

JSON Source