Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Reset sound default to "default" #84

Closed
wants to merge 2 commits into from

Conversation

mattconnolly
Copy link
Contributor

Hi,

The current apple docs suggest using the value of "default" to play a default sound. I can't see "1.aiff" anywhere. It is still optional, but having a default value shows people how to use the default sound and its not hard to use nil explicitly if the user wants to (as I already do).

I also added a test in here to validate that one of alert, badge or sound is present as is specified in the apple docs:

https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html

@@ -25,6 +25,7 @@ def self.up
change_column_null :rapns_apps, :certificate, true

change_column :rapns_notifications, :error_description, :text
change_column :rapns_notifications, :sound, :string, :default => 'default'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need an equivalent in down.

@mattconnolly
Copy link
Contributor Author

Added down migration and validation in separate class in master branch, see pull request 85:

#85

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants