firebase:: messaging:: MessagingOptions
#include <messaging.h>
A class to configure the behavior of Firebase Cloud Messaging.
Summary
This class contains various configuration options that control some of Firebase Cloud Messaging's behavior.
Constructors and Destructors |
|
---|---|
MessagingOptions()
Default constructor.
|
Public attributes |
|
---|---|
suppress_notification_permission_prompt
|
bool
If true, do not display the prompt to the user requesting permission to allow notifications to this app.
|
Public attributes
suppress_notification_permission_prompt
bool firebase::messaging::MessagingOptions::suppress_notification_permission_prompt
If true, do not display the prompt to the user requesting permission to allow notifications to this app.
If the prompt is suppressed in this way, the developer must manually prompt the user for permission at some point in the future using RequestPermission()
.
If this prompt has already been accepted once in the past the prompt will not be displayed again.
This option currently only applies to iOS and tvOS.
Public functions
MessagingOptions
firebase::messaging::MessagingOptions::MessagingOptions()
Default constructor.