I implemented a push notification system in my application using Parse.com, and everything works great!
My only problem is that when a notification arrives: it doesn't play sound!
I go to settings (on my tablet), with notifications I see this:

As you can see, the βsoundβ and βiconβ are turned off. If I turn them on when the push notification arrives: it plays the sound!
So ... I would like these two options to default to TRUE when installing my application.
Is it possible? How can i do this?
I work in Swift, and so far this is my code:
didFinishLaunchingWithOptions method
var pushSettings: UIUserNotificationSettings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Sound | UIUserNotificationType.Alert | UIUserNotificationType.Badge , categories: nil) application.registerUserNotificationSettings(pushSettings) application.registerForRemoteNotifications()
Thank you for helping me.
source share