freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

[PushNotification Error] cannot parse the params string #28

Closed rozd closed 7 years ago

rozd commented 10 years ago

Hi! I receive this error every time during testing Push Notification on iPhone 5

Steps:

  1. Setup Push Notification for iOS
  2. Setup server to send Push Notifications (I use Urbanairship dev account for testing).
  3. Launch your ios app in debug.
  4. Send notification, in my case it looks like {"aps":{"alert":"Test","badge":1}}

Expected Result: Event COMING_FROM_NOTIFICATION_EVENT with corresponded obect.

Actual Result: Event COMING_FROM_NOTIFICATION_EVENT is fired but with error message:

    PushNotification Error] cannot parse the params string {
        "_" = "_S3cgDCyEeOYPQAbIbyL6A";
        aps =     {
            alert = Test;
            badge = 1;
        };
    }

Note: Notice that JSON from error message omits " symbols in property names.

Environment iPhone 5, iOS 6.1, AIR 3.6, ANE-Push-Notification latest from ANE-Push-Notification/bin directory