Skip to content

Commit

Permalink
Enable silent notifications by making message optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Tacke authored and code28 committed Oct 17, 2019
1 parent df1c063 commit 97ab80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Gorush/GorushNotification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public struct GorushNotification: Encodable {
let topic: String
let push_type: PushType?

let message: String
let message: String?
let title: String?
let alert: iosAlertPayload?

let data: AnyEncodable?
let content_available: Bool?

public init(tokens: [String], platform: GorushNotification.Platform, message: String, title: String? = nil, alert: GorushNotification.iosAlertPayload? = nil, data: Encodable? = nil, content_available: Bool? = nil, topic: String = "", pushType: PushType? = nil) {
public init(tokens: [String], platform: GorushNotification.Platform, message: String?, title: String? = nil, alert: GorushNotification.iosAlertPayload? = nil, data: Encodable? = nil, content_available: Bool? = nil, topic: String = "", pushType: PushType? = nil) {
self.tokens = tokens
self.platform = platform
self.topic = topic
Expand Down

0 comments on commit 97ab80b

Please sign in to comment.