microsoft / clarity-apps

Repo for distributing Clarity Apps packages
MIT License
46 stars 2 forks source link

Issue with Microsoft Clarity Implementation in Android App #39

Closed axitasavani closed 7 months ago

axitasavani commented 7 months ago

Android SDK : 33 Integration :

  1. build.gradle file implementation 'com.microsoft.clarity:clarity:2.2.0'
  2. Application File
private void initMicrosoftClarity() {

        ClarityConfig config = new ClarityConfig(
                "lq5a8lt***",
                null, // Default user id
                LogLevel.Verbose,
                false, // Disallow metered network usage
                true, // Enable web view capturing
                Collections.singletonList("*"), // Allowed domains
                ApplicationFramework.Native,
                Collections.emptyList(), // Allowed activities
                Collections.emptyList(), // Disallowed activities (ignore activities)
                false, // Disable on low-end devices
                null // Maximum allowed daily network usage in MB (null = unlimited)
        );

        Clarity.initialize(getApplicationContext(), config);
    }

Issue :

Steps :

  1. Add Code as above
  2. Run Debug Android App
  3. Check Logcat for verification (Logcat file is attached) MC_Logs.txt
  4. Wait for 2 hr
  5. Still not getting any Data into Dashboard. image
ibradwan commented 7 months ago

User was misconfiguring Clarity by disabling metered network usage and expecting the data to be uploaded over a metered network.