You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/FCM/FCMAndroidConfig/FCMAndroidNotification.swift
+108-1Lines changed: 108 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,85 @@ public struct FCMAndroidNotification: Codable, Equatable {
46
46
/// See Formatting and Styling for more information.
47
47
publicvartitle_loc_args:[String]?
48
48
49
+
/// The notification's channel id (new in Android O).
50
+
/// The app must create a channel with this channel ID before any notification with this channel ID is received.
51
+
/// If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app,
52
+
/// FCM uses the channel ID specified in the app manifest.
53
+
publicvarchannel_id:String?
54
+
55
+
/// Sets the "ticker" text, which is sent to accessibility services.
56
+
/// Prior to API level 21 (Lollipop), sets the text that is displayed in the status bar when the notification first arrives.
57
+
publicvarticker:String?
58
+
59
+
/// When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel.
60
+
/// When set to true, the notification persists even when the user clicks it.
61
+
publicvarsticky:Bool?
62
+
63
+
/// Set the time that the event in the notification occurred. Notifications in the panel are sorted by this time.
64
+
/// A point in time is represented using protobuf.Timestamp.
65
+
/// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
66
+
/// Example: "2014-10-02T15:01:23.045123456Z".
67
+
publicvarevent_time:String?
68
+
69
+
/// Set whether or not this notification is relevant only to the current device.
70
+
/// Some notifications can be bridged to other devices for remote display, such as a Wear OS watch.
71
+
/// This hint can be set to recommend this notification not be bridged. See Wear OS guides
72
+
publicvarlocal_only:Bool?
73
+
74
+
/// Set the relative priority for this notification.
75
+
/// Priority is an indication of how much of the user's attention should be consumed by this notification.
76
+
/// Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification.
77
+
/// The effect of setting the same priorities may differ slightly on different platforms.
78
+
/// Note this priority differs from AndroidMessagePriority.
79
+
/// This priority is processed by the client after the message has been delivered,
80
+
/// whereas AndroidMessagePriority is an FCM concept that controls when the message is delivered.
0 commit comments