phonegap-build/PushPlugin — pull request #285 by wmathurin (2014-08-04 21:19:57+00:00)
Title: Aligning iOS message with Android's

CURRENTLY
If the message coming back from the server is:
{ a: xxx, b: { c: xxx, d: yyy}}
PushPlugin on Android will give js the following:
{
event: "message",
foreground: true | false,
payload: { a: xxx, b: { c: xxx, d: yyy}}
}

But the iOS implementation will give js the following:
{
foreground: "1" | "0"
a: xx
c: xxx
d: yyy
}

So it flattens the payload, returns foreground as a string and doesn't have an event field.

WITH THIS CHANGE
The iOS implementation will give js the same data than the Android implementation.