APNSPushNotificationTemplate class

Specifies channel-specific content and settings for a message template that can be used in push notifications that are sent through the APNs (Apple Push Notification service) channel.

Constructors

APNSPushNotificationTemplate({Action? action, String? body, String? mediaUrl, String? rawContent, String? sound, String? title, String? url})
APNSPushNotificationTemplate.fromJson(Map<String, dynamic> json)
factory

Properties

action Action?
The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
final
body String?
The message body to use in push notifications that are based on the message template.
final
hashCode int
The hash code for this object.
no setterinherited
mediaUrl String?
The URL of an image or video to display in push notifications that are based on the message template.
final
rawContent String?
The raw, JSON-formatted string to use as the payload for push notifications that are based on the message template. If specified, this value overrides all other content for the message template.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
final
title String?
The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
final
url String?
The URL to open in the recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited