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 | boolIf true, do not display the prompt to the user requesting permission to allow notifications to this app. |
Public attributes
suppress_notification_permission_prompt
boolfirebase::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 usingRequestPermission().
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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.