Notification Sound and Badge don't work
<p>I created a remote push notification, the notification works very well, but sound and badge don't work. In my server side code I have:</p>

<pre><code>$messageBody['aps'] = array('alert' =&gt; $message, 'sound' =&gt; 'default','badge' =&gt; 2);
</code></pre>

<p>This the iOS code:</p>

<pre><code>func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError) {
    //print(error)
}

func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {

    print(deviceToken)

}


func application(application: UIApplication, didReceiveRemoteNotificationuserInfo userInfo: [NSObject : AnyObject]) {
    print(userInfo)
}

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool
{
    // Override point for customization after application launch.
    application.registerForRemoteNotifications()
    application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: .Alert, categories: nil))

    initLocationManager()

    return true

}
</code></pre>

<p>Why are sound and badge not working?</p>