A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://firebase.google.com/docs/reference/admin/python/firebase_admin.messaging below:

firebase_admin.messaging module | Firebase

Firebase Cloud Messaging module.

Exceptions QuotaExceededErrorexception firebase_admin.messaging.QuotaExceededError(message, cause=None, http_response=None)

Bases: ResourceExhaustedError

Sending limit exceeded for the message target.

SenderIdMismatchErrorexception firebase_admin.messaging.SenderIdMismatchError(message, cause=None, http_response=None)

Bases: PermissionDeniedError

The authenticated sender ID is different from the sender ID for the registration token.

ThirdPartyAuthErrorexception firebase_admin.messaging.ThirdPartyAuthError(message, cause=None, http_response=None)

Bases: UnauthenticatedError

APNs certificate or web push auth key was invalid or missing.

UnregisteredErrorexception firebase_admin.messaging.UnregisteredError(message, cause=None, http_response=None)

Bases: NotFoundError

App instance was unregistered from FCM.

This usually means that the token used is no longer valid and a new one must be used.

Classes APNSConfigclass firebase_admin.messaging.APNSConfig(headers=None, payload=None, fcm_options=None)

Bases: object

APNS-specific options that can be included in a message.

Refer to APNS Documentation for more information.

Parameters:
APNSFCMOptionsclass firebase_admin.messaging.APNSFCMOptions(analytics_label=None, image=None)

Bases: object

Options for features provided by the FCM SDK for iOS.

Parameters:
APNSPayloadclass firebase_admin.messaging.APNSPayload(aps, **kwargs)

Bases: object

Payload of an APNS message.

Parameters:
AndroidConfigclass firebase_admin.messaging.AndroidConfig(collapse_key=None, priority=None, ttl=None, restricted_package_name=None, data=None, notification=None, fcm_options=None, direct_boot_ok=None)

Bases: object

Android-specific options that can be included in a message.

Parameters:
AndroidFCMOptionsclass firebase_admin.messaging.AndroidFCMOptions(analytics_label=None)

Bases: object

Options for features provided by the FCM SDK for Android.

Parameters:

analytics_label – contains additional options for features provided by the FCM Android SDK (optional).

AndroidNotificationclass firebase_admin.messaging.AndroidNotification(title=None, body=None, icon=None, color=None, sound=None, tag=None, click_action=None, body_loc_key=None, body_loc_args=None, title_loc_key=None, title_loc_args=None, channel_id=None, image=None, ticker=None, sticky=None, event_timestamp=None, local_only=None, priority=None, vibrate_timings_millis=None, default_vibrate_timings=None, default_sound=None, light_settings=None, default_light_settings=None, visibility=None, notification_count=None, proxy=None)

Bases: object

Android-specific notification parameters.

Parameters:
Apsclass firebase_admin.messaging.Aps(alert=None, badge=None, sound=None, content_available=None, category=None, thread_id=None, mutable_content=None, custom_data=None)

Bases: object

Aps dictionary to be included in an APNS payload.

Parameters:
ApsAlertclass firebase_admin.messaging.ApsAlert(title=None, subtitle=None, body=None, loc_key=None, loc_args=None, title_loc_key=None, title_loc_args=None, action_loc_key=None, launch_image=None, custom_data=None)

Bases: object

An alert that can be included in messaging.Aps.

Parameters:
BatchResponseclass firebase_admin.messaging.BatchResponse(responses)

Bases: object

The response received from a batch request to the FCM API.

property failure_count property responses

A list of messaging.SendResponse objects (possibly empty).

property success_count CriticalSoundclass firebase_admin.messaging.CriticalSound(name, critical=None, volume=None)

Bases: object

Critical alert sound configuration that can be included in messaging.Aps.

Parameters:
ErrorInfoclass firebase_admin.messaging.ErrorInfo(index, reason)

Bases: object

An error encountered when performing a topic management operation.

property index

Index of the registration token to which this error is related to.

property reason

String describing the nature of the error.

FCMOptionsclass firebase_admin.messaging.FCMOptions(analytics_label=None)

Bases: object

Options for features provided by SDK.

Parameters:

analytics_label – contains additional options to use across all platforms (optional).

LightSettingsclass firebase_admin.messaging.LightSettings(color, light_on_duration_millis, light_off_duration_millis)

Bases: object

Represents settings to control notification LED that can be included in a messaging.AndroidNotification.

Parameters:
Messageclass firebase_admin.messaging.Message(data=None, notification=None, android=None, webpush=None, apns=None, fcm_options=None, token=None, topic=None, condition=None)

Bases: object

A message that can be sent via Firebase Cloud Messaging.

Contains payload information as well as recipient information. In particular, the message must contain exactly one of token, topic or condition fields.

Parameters:
MulticastMessageclass firebase_admin.messaging.MulticastMessage(tokens, data=None, notification=None, android=None, webpush=None, apns=None, fcm_options=None)

Bases: object

A message that can be sent to multiple tokens via Firebase Cloud Messaging.

Parameters:
Notificationclass firebase_admin.messaging.Notification(title=None, body=None, image=None)

Bases: object

A notification that can be included in a message.

Parameters:
SendResponseclass firebase_admin.messaging.SendResponse(resp, exception)

Bases: object

The response received from an individual batched request to the FCM API.

property exception

A FirebaseError if an error occurs while sending the message to the FCM service.

property message_id

A message ID string that uniquely identifies the message.

property success

A boolean indicating if the request was successful.

TopicManagementResponseclass firebase_admin.messaging.TopicManagementResponse(resp)

Bases: object

The response received from a topic management operation.

property errors

A list of messaging.ErrorInfo objects (possibly empty).

property failure_count

Number of tokens that could not be subscribed or unsubscribed due to errors.

property success_count

Number of tokens that were successfully subscribed or unsubscribed.

WebpushConfigclass firebase_admin.messaging.WebpushConfig(headers=None, data=None, notification=None, fcm_options=None)

Bases: object

Webpush-specific options that can be included in a message.

Parameters:
WebpushFCMOptionsclass firebase_admin.messaging.WebpushFCMOptions(link=None)

Bases: object

Options for features provided by the FCM SDK for Web.

Parameters:

link – The link to open when the user clicks on the notification. Must be an HTTPS URL (optional).

WebpushNotificationclass firebase_admin.messaging.WebpushNotification(title=None, body=None, icon=None, actions=None, badge=None, data=None, direction=None, image=None, language=None, renotify=None, require_interaction=None, silent=None, tag=None, timestamp_millis=None, vibrate=None, custom_data=None)

Bases: object

Webpush-specific notification parameters.

Refer to the Notification Reference for more information.

Parameters:
WebpushNotificationActionclass firebase_admin.messaging.WebpushNotificationAction(action, title, icon=None)

Bases: object

An action available to the users when the notification is presented.

Parameters:
Functions sendfirebase_admin.messaging.send(message, dry_run=False, app=None)

Sends the given message via Firebase Cloud Messaging (FCM).

If the dry_run mode is enabled, the message will not be actually delivered to the recipients. Instead FCM performs all the usual validations, and emulates the send operation.

Parameters:
Returns:

A message ID string that uniquely identifies the sent message.

Return type:

string

Raises:
send_allfirebase_admin.messaging.send_all(messages, dry_run=False, app=None)

Sends the given list of messages via Firebase Cloud Messaging as a single batch.

If the dry_run mode is enabled, the message will not be actually delivered to the recipients. Instead FCM performs all the usual validations, and emulates the send operation.

Parameters:
Returns:

A messaging.BatchResponse instance.

Return type:

BatchResponse

Raises:

send_all() is deprecated. Use send_each() instead.

send_eachfirebase_admin.messaging.send_each(messages, dry_run=False, app=None)

Sends each message in the given list via Firebase Cloud Messaging.

If the dry_run mode is enabled, the message will not be actually delivered to the recipients. Instead FCM performs all the usual validations, and emulates the send operation.

Parameters:
Returns:

A messaging.BatchResponse instance.

Return type:

BatchResponse

Raises:
send_each_for_multicastfirebase_admin.messaging.send_each_for_multicast(multicast_message, dry_run=False, app=None)

Sends the given mutlicast message to each token via Firebase Cloud Messaging (FCM).

If the dry_run mode is enabled, the message will not be actually delivered to the recipients. Instead FCM performs all the usual validations, and emulates the send operation.

Parameters:
Returns:

A messaging.BatchResponse instance.

Return type:

BatchResponse

Raises:
send_multicastfirebase_admin.messaging.send_multicast(multicast_message, dry_run=False, app=None)

Sends the given mutlicast message to all tokens via Firebase Cloud Messaging (FCM).

If the dry_run mode is enabled, the message will not be actually delivered to the recipients. Instead FCM performs all the usual validations, and emulates the send operation.

Parameters:
Returns:

A messaging.BatchResponse instance.

Return type:

BatchResponse

Raises:

send_multicast() is deprecated. Use send_each_for_multicast() instead.

subscribe_to_topicfirebase_admin.messaging.subscribe_to_topic(tokens, topic, app=None)

Subscribes a list of registration tokens to an FCM topic.

Parameters:
Returns:

A TopicManagementResponse instance.

Return type:

TopicManagementResponse

Raises:
unsubscribe_from_topicfirebase_admin.messaging.unsubscribe_from_topic(tokens, topic, app=None)

Unsubscribes a list of registration tokens from an FCM topic.

Parameters:
Returns:

A TopicManagementResponse instance.

Return type:

TopicManagementResponse

Raises:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3