Notification
public struct Notification
The Push notification to send. Includes the notification message, the targets to receive the message, and the APNS and GCM settings.
-
init(message:
target: apnsSettings: gcmSettings: firefoxWebSettings: chromeWebSettings: safariWebSettings: chromeAppExtSettings: ) The required intializer for the
Notification
class.Declaration
Swift
public init(message: Message, target: Target? = nil, apnsSettings: Settings.Apns? = nil, gcmSettings: Settings.Gcm? = nil, firefoxWebSettings: Settings.FirefoxWeb? = nil, chromeWebSettings: Settings.ChromeWeb? = nil, safariWebSettings: Settings.SafariWeb? = nil, chromeAppExtSettings: Settings.ChromeAppExt? = nil)
Parameters
message
Message object.
target
(Optional)Target object.
apnsSettings
(Optional)APNs Settings object.
gcmSettings
(Optional)GCM Settings object.
firefoxWebSettings
(Optional)Firefox Settings object
chromeWebSettings
(Optional)Chrome Settings object
safariWebSettings
(Optional)Safari Settings object
chromeAppExtSettings
(Optional)Chrome App/Extension Settings Object
-
The content of the notification message.
See moreDeclaration
Swift
public struct Message
-
Specifies the recipients of the notification.
See moreDeclaration
Swift
public struct Target
-
Additional properties that can be configured for the notification.
See moreDeclaration
Swift
public struct Settings