• Resolved shprink

    (@shprink)


    Hi,

    In order to make Android Cordova work the payload object needs to have at least the message key. To have well foramted push notif on Android you need both title and message.

    In your code that line:

    $payloadData = array_merge(array('title' => $title), $user_info);

    needs to at least change to:

    $payloadData = array_merge(array('message' => $title), $user_info);

    or it can be perfect like this:

    $payloadData = array_merge(array('message' => $message, 'title' => $title), $user_info);

    Are you planning to make this change? Is the project open sourced somewhere? If so I can take care of it.

Viewing 3 replies - 16 through 18 (of 18 total)
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Payload format not Cordova compliant’ is closed to new replies.