0

I am using AWS to send push notifications.

When I send the notification, the message is received, but the application doesnt get a number put against it. I was expecting a "1" to show on the app icon.

Here is the code I use to send the notification.

$snsmessage = $sns->publish(
array(
'TargetArn' => $endpoint,
'MessageStructure' => 'json',
'Message' => json_encode(array(
    'APNS' => json_encode(array(
        'aps' => array(
            'alert' => "message to send goes here",
            'badge'=>'1',
            'sound'=>'default'
        )
    ))

))
)

);

What do i need to do to get the number to show on the app?

Lawrence Cooke
  • 1,567
  • 3
  • 26
  • 52

0 Answers0