sGTM Preview/Debug Not Working Reliably on Android While iOS Works with Identical Configuration
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- analytics, mobile-dev
Hướng nghiên cứu
Bắt đầu bằng việc xem xét firebase_analytics_2.log cùng với AndroidManifest.xml, build.gradle và cấu hình bảo mật mạng được nêu trong báo cáo. So sánh thiết lập Android Firebase Analytics 23.2.0 và sGTM preview với cấu hình iOS đang hoạt động, tập trung vào EOFException được báo cáo từ các phản hồi 204. Được xem là hoàn tất khi tái hiện được tình trạng khả năng hiển thị sự kiện không ổn định và xác định được liệu đây là hồi quy hay vấn đề cấu hình.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe your environment
Flutter firebase_analytics (Dart) | 12.4.1
Flutter firebase_core (Dart) | 4.9.0
Android firebase-analytics (resolved) | 23.2.0
Android play-services-measurement (resolved) | 23.2.0
Android play-services-tagmanager | 18.3.0 (latest)
Firebase BOM (declared) | 33.12.0
Google Services Plugin | 4.4.2
Android compileSdk / targetSdk / minSdk | 36 / 36 / 26
Google Play Services Dynamite Module | measurementdynamite@[email protected]
Test Device | Samsung SM-S908E, Android 14
AndroidManifest.xml:
<meta-data
android:name="google_analytics_default_allow_analytics_storage"
android:value="true" />
<meta-data
android:name="google_analytics_default_allow_ad_storage"
android:value="false" />
<meta-data
android:name="google_analytics_default_allow_ad_user_data"
android:value="false" />
<meta-data
android:name="google_analytics_default_allow_ad_personalization_signals"
android:value="false" />
<meta-data
android:name="google_analytics_sgtm_upload_enabled"
android:value="true" />
<activity
android:name="com.google.firebase.analytics.GoogleAnalyticsServerPreviewActivity"
android:exported="true"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tagmanager.sgtm.c.PACKAGE_NAME" />
</intent-filter>
</activity>
### build.gradle
implementation platform('com.google.firebase:firebase-bom:33.12.0')
implementation 'com.google.android.gms:play-services-tagmanager:18.3.0'
### We have already attempted the following:
- Uninstalled and reinstalled the application multiple times.
- Cleared Google Play Services data.
- Disabled Private DNS on the device.
- Tested on multiple Android devices with the same outcome.
- Confirmed that play-services-tagmanager:18.3.0 is the latest available version.
- Confirmed that firebase-analytics:23.2.0 is the version resolved by Gradle.
- Added Firebase BOM 33.12.0; no change in behavior.
- Verified that the GA4 data stream is configured with the correct sGTM endpoint.
- Verified that iOS works correctly using the same Firebase, GA4, and sGTM configuration.
Describe the problem
We are unable to reliably see events in the sGTM Preview Mode for Android.
Observed behavior:
Preview mode connects successfully.
Occasionally, standard events such as click and screen_view appear intermittently.
Custom events do not appear consistently or are completely missing.
Event visibility is unreliable and inconsistent across test sessions.
The identical setup on iOS works perfectly, where all events appear in the sGTM Preview debugger in real time.
Both platforms are configured with:
Same Firebase project
Same GA4 property
Same sGTM server URL configured in the GA4 data stream
Same event implementation logic
We have attached the logs collected during testing for reference.
Given the impact on validation and debugging, we would appreciate the opportunity to schedule a call with your team to discuss and troubleshoot the issue.
Are there any known issues with Android Firebase Analytics 23.2.0 and sGTM Preview Mode?
Is the EOFException on 204 No Content responses a confirmed regression in the dynamite module versions listed above, and when is a fix expected?
Steps to reproduce:
Log attached.
Relevant Code:
### Network_security_config file
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">192.168.1.254</domain>
</domain-config>
</network-security-config>
- Ngôn ngữ chính
- Java
- Star
- 2.6k
- Fork
- 733
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 72
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-android-sdk
-
api: remoteconfig
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
firebase/firebase-android-sdk#8827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Crashlytics plugin writes build ID lists in directory listing order, so APKs can differ between machinesCó thể đã có người làm @mrober đã nhận 8 ngày trước. Đang mởapi: crashlytics
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
firebase/firebase-android-sdk#8789 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: auth
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
firebase/firebase-android-sdk#8505 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
firebase/firebase-android-sdk#8835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
firebase/firebase-android-sdk#8832 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/firebase-android-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RIS export splits an organization name containing “and” into multiple authorsCó thể đã có người làm @Gautam-aman đã nhận hôm nay. Đang mởstatus: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JabRef/jabref#17821 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FailureContext.java rounds down thresholds in lastedAtLeast()Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày