Cloud functions to handle Firebase App Distribution events from Firebase Alerts.
Classes
AppDistributionEventclass firebase_functions.alerts.app_distribution_fn.AppDistributionEvent(specversion: str, id: str, source: str, type: str, time: datetime, data: T, subject: str | None, alert_type: str, app_id: str) |
---|
Bases: A custom CloudEvent for billing Firebase Alerts.
|
InAppFeedbackPayloadclass firebase_functions.alerts.app_distribution_fn.InAppFeedbackPayload(feedback_report: str, feedback_console_uri: str, tester_email: str, app_version: str, text: str, tester_name: str | None = None, screenshot_uri: str | None = None) |
---|
Bases: The internal payload object for receiving in-app feedback from a tester. Payload is wrapped inside a FirebaseAlertData object.
|
NewTesterDevicePayloadclass firebase_functions.alerts.app_distribution_fn.NewTesterDevicePayload(tester_name: str, tester_email: str, tester_device_model_name: str, tester_device_identifier: str) |
---|
Bases: The internal payload object for adding a new tester device to app distribution. Payload is wrapped inside a FirebaseAlertData object.
|
Functions
on_in_app_feedback_publishedfirebase_functions.alerts.app_distribution_fn.on_in_app_feedback_published(**kwargs) Callable[[Callable[[AppDistributionEvent[InAppFeedbackPayload]], None]], Callable[[AppDistributionEvent[InAppFeedbackPayload]], None]] |
---|
Event handler which runs every time new feedback is received. Example: import firebase_functions.alerts.app_distribution_fn as app_distribution_fn @app_distribution_fn.on_in_app_feedback_published() def example(alert: app_distribution_fn.InAppFeedbackEvent) -> None: print(alert)
|
on_new_tester_ios_device_publishedfirebase_functions.alerts.app_distribution_fn.on_new_tester_ios_device_published(**kwargs) Callable[[Callable[[AppDistributionEvent[NewTesterDevicePayload]], None]], Callable[[AppDistributionEvent[NewTesterDevicePayload]], None]] |
---|
Event handler which runs every time a new tester iOS device is added. Example: import firebase_functions.alerts.app_distribution_fn as app_distribution_fn @app_distribution_fn.on_new_tester_ios_device_published() def example(alert: app_distribution_fn.NewTesterDeviceEvent) -> None: print(alert)
|
Constants
InAppFeedbackEventfirebase_functions.alerts.app_distribution_fn.InAppFeedbackEvent |
---|
The type of the event for 'on_in_app_feedback_published' functions. alias of |
NewTesterDeviceEventfirebase_functions.alerts.app_distribution_fn.NewTesterDeviceEvent |
---|
The type of the event for 'on_new_tester_ios_device_published' functions. alias of |
OnInAppFeedbackPublishedCallablefirebase_functions.alerts.app_distribution_fn.OnInAppFeedbackPublishedCallable |
---|
The type of the callable for 'on_in_app_feedback_published' functions. alias of |
OnNewTesterIosDevicePublishedCallablefirebase_functions.alerts.app_distribution_fn.OnNewTesterIosDevicePublishedCallable |
---|
The type of the callable for 'on_new_tester_ios_device_published' functions. alias of |