Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(analytics) avoid Amplitude initialization failure on mobile

Saúl Ibarra Corretgé1a339100abe6
diff --git a/react/features/analytics/handlers/AmplitudeHandler.js b/react/features/analytics/handlers/AmplitudeHandler.js
index f4ca5d2082..0535c10b16 100644
--- a/react/features/analytics/handlers/AmplitudeHandler.js
+++ b/react/features/analytics/handlers/AmplitudeHandler.js
@@ -72,6 +72,11 @@ export default class AmplitudeHandler extends AbstractHandler {
* @returns {Object}
*/
getIdentityProps() {
+ // TODO: Remove when web and native Aplitude implementations are unified.
+ if (navigator.product === 'ReactNative') {
+ return {};
+ }
+
return {
sessionId: amplitude.getInstance(this._amplitudeOptions).getSessionId(),
deviceId: amplitude.getInstance(this._amplitudeOptions).options.deviceId,