You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catch `transaction.done` errors in `readHeartbeatsFromIndexedDB` and log them as a warning, because platform logging errors should never throw or block user app functionality.
Copy file name to clipboardExpand all lines: docs-devsite/analytics.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ The Firebase Analytics Web SDK. This SDK does not work in a Node.js environment.
42
42
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent_800159e)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->See [Measure exceptions](https://developers.google.com/analytics/devguides/collection/ga4/exceptions)<!---->. |
43
43
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent_9c11aa9)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->List of recommended event parameters can be found in [the GA4 reference documentation](https://developers.google.com/gtagjs/reference/ga4-events)<!---->. |
44
44
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent_1f3f282)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->List of recommended event parameters can be found in [the GA4 reference documentation](https://developers.google.com/gtagjs/reference/ga4-events)<!---->. |
45
-
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent_0792e28)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->See [Page views](https://developers.google.com/analytics/devguides/collection/ga4/page-view)<!---->. |
45
+
|[logEvent(analyticsInstance, eventName, eventParams, options)](./analytics.md#logevent_0792e28)| Sends a Google Analytics event with given <code>eventParams</code>. This method automatically associates this logged event with this Firebase web app instance on this device.<!---->See [Page views](https://developers.google.com/analytics/devguides/collection/ga4/views)<!---->. |
46
46
|[setAnalyticsCollectionEnabled(analyticsInstance, enabled)](./analytics.md#setanalyticscollectionenabled_494179c)| Sets whether Google Analytics collection is enabled for this app on this device. Sets global <code>window['ga-disable-analyticsId'] = true;</code> |
47
47
|[setCurrentScreen(analyticsInstance, screenName, options)](./analytics.md#setcurrentscreen_a6168fa)| Use gtag <code>config</code> command to set <code>screen_name</code>. |
48
48
|[setUserId(analyticsInstance, id, options)](./analytics.md#setuserid_86d82f6)| Use gtag <code>config</code> command to set <code>user_id</code>. |
@@ -780,7 +780,7 @@ void
780
780
781
781
Sends a Google Analytics event with given `eventParams`<!---->. This method automatically associates this logged event with this Firebase web app instance on this device.
782
782
783
-
See [Page views](https://developers.google.com/analytics/devguides/collection/ga4/page-view)<!---->.
783
+
See [Page views](https://developers.google.com/analytics/devguides/collection/ga4/views)<!---->.
Copy file name to clipboardExpand all lines: docs-devsite/auth.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ Firebase Authentication
88
88
|[EmailAuthProvider](./auth.emailauthprovider.md#emailauthprovider_class)| Provider for generating [EmailAuthCredential](./auth.emailauthcredential.md#emailauthcredential_class)<!---->. |
89
89
|[FacebookAuthProvider](./auth.facebookauthprovider.md#facebookauthprovider_class)| Provider for generating an [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) for [ProviderId](./auth.md#providerid)<!---->.FACEBOOK. |
90
90
|[GithubAuthProvider](./auth.githubauthprovider.md#githubauthprovider_class)| Provider for generating an [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) for [ProviderId](./auth.md#providerid)<!---->.GITHUB. |
91
-
|[GoogleAuthProvider](./auth.googleauthprovider.md#googleauthprovider_class)| Provider for generating an an [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) for [ProviderId](./auth.md#providerid)<!---->.GOOGLE. |
91
+
|[GoogleAuthProvider](./auth.googleauthprovider.md#googleauthprovider_class)| Provider for generating an [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class) for [ProviderId](./auth.md#providerid)<!---->.GOOGLE. |
92
92
|[OAuthCredential](./auth.oauthcredential.md#oauthcredential_class)| Represents the OAuth credentials returned by an [OAuthProvider](./auth.oauthprovider.md#oauthprovider_class)<!---->. |
93
93
|[OAuthProvider](./auth.oauthprovider.md#oauthprovider_class)| Provider for generating generic [OAuthCredential](./auth.oauthcredential.md#oauthcredential_class)<!---->. |
94
94
|[PhoneAuthCredential](./auth.phoneauthcredential.md#phoneauthcredential_class)| Represents the credentials returned by [PhoneAuthProvider](./auth.phoneauthprovider.md#phoneauthprovider_class)<!---->. |
Copy file name to clipboardExpand all lines: docs-devsite/firestore_.firestoredataconverter.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ Converter used by `withConverter()` to transform user objects of type `AppModelT
14
14
15
15
Using the converter allows you to specify generic type arguments when storing and retrieving objects from Firestore.
16
16
17
+
In this context, an "AppModel" is a class that is used in an application to package together related information and functionality. Such a class could, for example, have properties with complex, nested data types, properties used for memoization, properties of types not supported by Firestore (such as `symbol` and `bigint`<!-- -->), and helper functions that perform compound operations. Such classes are not suitable and/or possible to store into a Firestore database. Instead, instances of such classes need to be converted to "plain old JavaScript objects" (POJOs) with exclusively primitive properties, potentially nested inside other POJOs or arrays of POJOs. In this context, this type is referred to as the "DbModel" and would be an object suitable for persisting into Firestore. For convenience, applications can implement `FirestoreDataConverter` and register the converter with Firestore objects, such as `DocumentReference` or `Query`<!-- -->, to automatically convert `AppModel` to `DbModel` when storing into Firestore, and convert `DbModel` to `AppModel` when retrieving from Firestore.
Generally, thedatareturnedfrom`snapshot.data()`canbecastto`DbModelType`<!-- -->; however, thisisnotguaranteedaswritestothedatabasemayhaveoccurredwithoutatypeconverterenforcingthisspecificlayout.
37
+
Generally, thedatareturnedfrom`snapshot.data()`canbecastto`DbModelType`<!-- -->; however, thisisnotguaranteedbecauseFirestoredoesnotenforceaschemaonthedatabase. Forexample, writesfromapreviousversionoftheapplicationorwritesfromanotherclientthatdidnotuseatypeconvertercouldhavewrittendatawithdifferentpropertiesand/orpropertytypes. Theimplementationwillneedtochoosewhethertogracefullyrecoverfromnon-conformingdataorthrowanerror.
0 commit comments