Browse Source

fix(analytics) avoid Amplitude initialization failure on mobile

master
Saúl Ibarra Corretgé 5 years ago
parent
commit
1a339100ab
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      react/features/analytics/handlers/AmplitudeHandler.js

+ 5
- 0
react/features/analytics/handlers/AmplitudeHandler.js View File

@@ -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,

Loading…
Cancel
Save