I've implemented push notification system in my application using Parse.com and everything works great!
My only problem is that when the notification arrives: it does not play any sound!
I go to settings (in my tablet), under notifications, I see this:
As you see the "sound" and the "badge" are OFF. If I turn them on then when a push notification arrives: it plays the sound!
So... I would like that when I install my application these 2 options are by default TRUE.
Is this possible? How can I do that?
I am working in Swift and this is my code so far:
method didFinishLaunchingWithOptions
var pushSettings: UIUserNotificationSettings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Sound | UIUserNotificationType.Alert | UIUserNotificationType.Badge , categories: nil)
application.registerUserNotificationSettings(pushSettings)
application.registerForRemoteNotifications()
Thanks a lot for helping me