@@ -57,7 +57,7 @@ struct MessagingOptions {
57
57
// / If this prompt has already been accepted once in the past the prompt will
58
58
// / not be displayed again.
59
59
// /
60
- // / This option currently only applies to iOS.
60
+ // / This option currently only applies to iOS and tvOS .
61
61
bool suppress_notification_permission_prompt;
62
62
};
63
63
@@ -107,8 +107,8 @@ struct Notification {
107
107
// / Destructor.
108
108
~Notification () { delete android; }
109
109
110
- // / Indicates notification title. This field is not visible on iOS phones
111
- // / and tablets.
110
+ // / Indicates notification title. This field is not visible on tvOS, iOS
111
+ // / phones and tablets.
112
112
std::string title;
113
113
114
114
// / Indicates notification body text.
@@ -122,12 +122,12 @@ struct Notification {
122
122
// / Supports default, or the filename of a sound resource bundled in the
123
123
// / app.
124
124
// /
125
- // / Android sound files must reside in /res/raw/, while iOS sound files
126
- // / can be in the main bundle of the client app or in the Library/Sounds
127
- // / folder of the app’s data container.
125
+ // / Android sound files must reside in /res/raw/, while iOS and tvOS sound
126
+ // / files can be in the main bundle of the client app or in the
127
+ // / Library/Sounds folder of the app’s data container.
128
128
std::string sound;
129
129
130
- // / Indicates the badge on the client app home icon. iOS only.
130
+ // / Indicates the badge on the client app home icon. iOS and tvOS only.
131
131
std::string badge;
132
132
133
133
// / Indicates whether each notification results in a new entry in the
@@ -145,12 +145,12 @@ struct Notification {
145
145
// / On Android, if this is set, an activity with a matching intent filter is
146
146
// / launched when user clicks the notification.
147
147
// /
148
- // / If set on iOS, corresponds to category in APNS payload.
148
+ // / If set on iOS or tvOS , corresponds to category in APNS payload.
149
149
std::string click_action;
150
150
151
151
// / Indicates the key to the body string for localization.
152
152
// /
153
- // / On iOS, this corresponds to "loc-key" in APNS payload.
153
+ // / On iOS and tvOS , this corresponds to "loc-key" in APNS payload.
154
154
// /
155
155
// / On Android, use the key in the app's string resources when populating this
156
156
// / value.
@@ -159,7 +159,7 @@ struct Notification {
159
159
// / Indicates the string value to replace format specifiers in body string
160
160
// / for localization.
161
161
// /
162
- // / On iOS, this corresponds to "loc-args" in APNS payload.
162
+ // / On iOS and tvOS , this corresponds to "loc-args" in APNS payload.
163
163
// /
164
164
// / On Android, these are the format arguments for the string resource. For
165
165
// / more information, see [Formatting strings][1].
@@ -170,7 +170,7 @@ struct Notification {
170
170
171
171
// / Indicates the key to the title string for localization.
172
172
// /
173
- // / On iOS, this corresponds to "title-loc-key" in APNS payload.
173
+ // / On iOS and tvOS , this corresponds to "title-loc-key" in APNS payload.
174
174
// /
175
175
// / On Android, use the key in the app's string resources when populating this
176
176
// / value.
@@ -179,7 +179,7 @@ struct Notification {
179
179
// / Indicates the string value to replace format specifiers in title string
180
180
// / for localization.
181
181
// /
182
- // / On iOS, this corresponds to "title-loc-args" in APNS payload.
182
+ // / On iOS and tvOS , this corresponds to "title-loc-args" in APNS payload.
183
183
// /
184
184
// / On Android, these are the format arguments for the string resource. For
185
185
// / more information, see [Formatting strings][1].
@@ -306,7 +306,7 @@ struct Message {
306
306
std::string message_type;
307
307
308
308
// / Sets the priority of the message. Valid values are "normal" and "high." On
309
- // / iOS, these correspond to APNs priority 5 and 10.
309
+ // / iOS and tvOS , these correspond to APNs priority 5 and 10.
310
310
// /
311
311
// / By default, messages are sent with normal priority. Normal priority
312
312
// / optimizes the client app's battery consumption, and should be used unless
@@ -460,7 +460,7 @@ bool IsTokenRegistrationOnInitEnabled();
460
460
// / If this setting is enabled, it triggers the token registration refresh
461
461
// / immediately. This setting is persisted across app restarts and overrides the
462
462
// / setting "firebase_messaging_auto_init_enabled" specified in your Android
463
- // / manifest (on Android) or Info.plist (on iOS).
463
+ // / manifest (on Android) or Info.plist (on iOS and tvOS ).
464
464
// /
465
465
// / <p>By default, token registration during initialization is enabled.
466
466
// /
@@ -480,7 +480,7 @@ bool IsTokenRegistrationOnInitEnabled();
480
480
// / @endcode
481
481
// / @endif
482
482
// /
483
- // / or on iOS to your Info.plist:
483
+ // / or on iOS or tvOS to your Info.plist:
484
484
// /
485
485
// / @if NOT_DOXYGEN
486
486
// / <key>FirebaseMessagingAutoInitEnabled</key>
@@ -528,9 +528,9 @@ enum Error {
528
528
// / @brief Displays a prompt to the user requesting permission to display
529
529
// / notifications.
530
530
// /
531
- // / The permission prompt only appears on iOS. If the user has already agreed to
532
- // / allow notifications, no prompt is displayed and the returned future is
533
- // / completed immediately.
531
+ // / The permission prompt only appears on iOS and tvOS . If the user has
532
+ // / already agreed to allow notifications, no prompt is displayed and the
533
+ // / returned future is completed immediately.
534
534
// /
535
535
// / @return A future that completes when the notification prompt has been
536
536
// / dismissed.
0 commit comments