Pārlūkot izejas kodu

fix(analytics) avoid Amplitude initialization failure on mobile

master
Saúl Ibarra Corretgé 5 gadus atpakaļ
vecāks
revīzija
1a339100ab

+ 5
- 0
react/features/analytics/handlers/AmplitudeHandler.js Parādīt failu

@@ -72,6 +72,11 @@ export default class AmplitudeHandler extends AbstractHandler {
72 72
      * @returns {Object}
73 73
      */
74 74
     getIdentityProps() {
75
+        // TODO: Remove when web and native Aplitude implementations are unified.
76
+        if (navigator.product === 'ReactNative') {
77
+            return {};
78
+        }
79
+
75 80
         return {
76 81
             sessionId: amplitude.getInstance(this._amplitudeOptions).getSessionId(),
77 82
             deviceId: amplitude.getInstance(this._amplitudeOptions).options.deviceId,

Notiek ielāde…
Atcelt
Saglabāt