Skip to content

Commit 72c2a7d

Browse files
committed
docs(alerts): add App Distribution onNewTesterIosDevicePublished to README and example
1 parent 9c63814 commit 72c2a7d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This package provides a complete Dart implementation of Firebase Cloud Functions
1616
| **Firestore** | ✅ Complete | `onDocumentCreated`, `onDocumentUpdated`, `onDocumentDeleted`, `onDocumentWritten`, `onDocumentCreatedWithAuthContext`, `onDocumentUpdatedWithAuthContext`, `onDocumentDeletedWithAuthContext`, `onDocumentWrittenWithAuthContext` |
1717
| **Realtime Database** | ✅ Complete | `onValueCreated`, `onValueUpdated`, `onValueDeleted`, `onValueWritten` |
1818
| **Storage** | ✅ Complete | `onObjectFinalized`, `onObjectArchived`, `onObjectDeleted`, `onObjectMetadataUpdated` |
19-
| **Firebase Alerts** | ✅ Complete | Crashlytics, Billing, Performance alerts |
19+
| **Firebase Alerts** | ✅ Complete | Crashlytics, Billing, Performance, App Distribution alerts |
2020
| **Identity Platform** | ✅ Complete | `beforeUserCreated`, `beforeUserSignedIn` (+ `beforeEmailSent`, `beforeSmsSent`*) |
2121

2222
## Features
@@ -356,6 +356,17 @@ firebase.storage.onObjectMetadataUpdated(
356356
## Firebase Alerts
357357

358358
```dart
359+
// App Distribution new tester iOS device
360+
firebase.alerts.appDistribution.onNewTesterIosDevicePublished(
361+
(event) async {
362+
final payload = event.data?.payload;
363+
print('New tester iOS device:');
364+
print(' Tester: ${payload?.testerName} (${payload?.testerEmail})');
365+
print(' Device: ${payload?.testerDeviceModelName}');
366+
print(' Identifier: ${payload?.testerDeviceIdentifier}');
367+
},
368+
);
369+
359370
// Crashlytics fatal issues
360371
firebase.alerts.crashlytics.onNewFatalIssuePublished(
361372
(event) async {

example/alerts/bin/server.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ import 'package:firebase_functions/firebase_functions.dart';
22

33
void main(List<String> args) async {
44
await fireUp(args, (firebase) {
5+
// App Distribution new tester iOS device alert
6+
firebase.alerts.appDistribution.onNewTesterIosDevicePublished((event) async {
7+
final payload = event.data?.payload;
8+
print('New tester iOS device:');
9+
print(' Tester: ${payload?.testerName} (${payload?.testerEmail})');
10+
print(' Device: ${payload?.testerDeviceModelName}');
11+
print(' Identifier: ${payload?.testerDeviceIdentifier}');
12+
});
13+
514
// Crashlytics new fatal issue alert
615
firebase.alerts.crashlytics.onNewFatalIssuePublished((event) async {
716
final issue = event.data?.payload.issue;

0 commit comments

Comments
 (0)