-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Integration with GoogleTagManager will crash the app at startup #3921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey guys - did anyone had any update here? I'm also facing the similar crash where Firebase SDK just crash at launch. Any help/lead would be appreciated.. |
Can you share the version of GoogleTagManager as well? |
7.1.2 |
Here is the crash logs: 2019-09-26 10:33:26.857239+0530 Demo-App[3718:459023] 4.13.0 - [Firebase/Analytics][I-ACS036002] Firebase screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist Sep 26 10:33:27 Demo-App[3718] : [458863] Failed to enable location services 2019-09-26 10:33:27.792074+0530 Demo-App[3718:459042] 4.13.0 - [Firebase/Analytics][I-ACS013002] Event name must contain only letters, numbers, or underscores: App Update Required directory: Error Domain=NSCocoaErrorDomain Code=260 "The file “_etag_field_validation.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/B5B94CD6-A649-4CF5-9E02-1E8342BE4E02/Documents/_etag_field_validation.json, NSUnderlyingError=0x1c0258330 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 2019-09-26 10:33:27.877273+0530 Demo-App[3718:459039] 4.13.0 - [Firebase/Analytics][I-ACS031013] Screen view event not logged. App is not active. 2019-09-26 10:33:27.892551+0530 Demo-App[3718:459039] 4.13.0 - [Firebase/Analytics][I-ACS902004] Network status has changed. Code, status: 3, Connected 2019-09-26 10:33:28.064550+0530 Demo-App[3718:459039] 4.13.0 - [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: SignInFormEntryView, 582672373077141219 Stack trace: Here are the version we're using: Using FirebaseAnalytics (4.2.0) This crash happens as soon as GTM tries to read JSON we assume. |
@baolocdo - would you be able to direct this to the right person? |
The pod versions specified are quite old. |
Right GTM is at 7.1.2 and Firebase is at 6.9.0. The Podfile.lock file should show what's causing earlier versions to get installed. |
Here is the
All this dependencies (excluding GTM, GA, GoogleSymbolUtilities and GoogleUtilitiesLegacy) are in Firebase 6.9.0 bundle? |
@AndreaVitale That all looks up to date. Yes those are Firebase dependencies. The crash log from @bhanubirani is from old pods. |
@patm1987 ok, I was thinking you were talking to me. |
Routed to tag manager team with b/141770453 |
@paulb777 thank you. Is there a way to talk with someone from tag manager team? |
@AndreaVitale, @paulb777 |
@ggjxnf where I can find I'm using CocoaPods with this PodFile content:
and I only have this inpsecting my Pods folder: There is no |
@AndreaVitale it's one of products/targets of tag manager. I'm using cocoapods rome and since it's not created automatically i created and added it manually |
Nice catch @ggjxnf ! It worked! Really thank you! |
[READ] Step 1: Are you in the right place?
I think yes because it is similar to this issue: #2059
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I'm trying to create a Titanium Module that include Google Tag Manager using Firebase Analytics as a datalayer. I've followed this official guide and I'm trying to use GoogleTagManager 7.1.2.
The module builds fine and the app will run fine until I call
[FIRApp configure]
method and then the app will crash immediately.Steps to reproduce:
Here are all the included frameworks inside the Titanium Module iOS project that I got from Firebase/Analytics 6.8.1 bundle folder:
Running the app and opening
Console
app on my mac I can see these messagesso the library correctly tries to load my container.
Opening the
.crash
file fromDiagnosticReports
I can see this output:where the crashed thread is
Relevant Code:
The only code that I run at startup is:
and I can correctly see this log message:
I attach here the entire crash report file.
tests_2019-09-25-163437_MacBook-Pro-di-Andrea-2.txt
The text was updated successfully, but these errors were encountered: