app/models/notify_user/houston.rb in notify_user-0.0.29 vs app/models/notify_user/houston.rb in notify_user-0.0.30
- old
+ new
@@ -34,11 +34,14 @@
private
def setup_options
space_allowance = PAYLOAD_LIMIT - used_space
+ mobile_message = @notification.mobile_message(space_allowance)
+ mobile_message.gsub!('\n', "\n")
+
push_options = {
- alert: @notification.mobile_message(space_allowance),
+ alert: mobile_message,
badge: @notification.count_for_target,
category: @notification.params[:category] || @notification.type,
custom_data: @notification.params,
sound: 'default'
}
\ No newline at end of file