-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Analytics Message: "Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled" #10940
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Additionally I saw in the logs, that there is always another message relating to "app_measurement" at app start: Attached you find debug logs of a minimal reproducible example: |
Thanks for reporting this, @SKuhlemann. I was able to reproduce the issue using the Analytics Quickstart. Let me consult this to the Analytics team, and I'll let you know once I got an update. |
Thanks for the issue report.
You can safely ignore these messages. They are expected and not harmful. |
Thank you for the information. |
Description
When I create a new Xcode Project with an SwiftUI lifecycle and follow the integration tutorial for Firebase Analytics then I always see the following Debugger message multiple times.
For example when the app goes into inactive or background scenephase:
MyApp[4010:1178178] 10.6.0 - [FirebaseAnalytics][I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled
This happens on simulator and real devices.
I added "-ObjC" as "Other Linking flags" for the target in XCode.
I also have Background modes enabled for the target:
Below I attached the logging in debugging mode, but the above message also appear in "normal" logging mode.
I dont't see any problems with FirebaseAnalytics and everything seems to be logged fine when taking a look into the Firebase console on the website.
Nevertheless this message makes me suspicious that something is wrong.
Kind regards
Stefan
Reproducing the issue
Firebase SDK Version
10.6.0
Xcode Version
14.2
Installation Method
Swift Package Manager
Firebase Product(s)
Analytics
Targeted Platforms
iOS
Relevant Log Output
2023-03-11 21:37:37.822985+0100 MyApp[10869:7635154] 10.6.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 92873658 2023-03-11 21:37:37.823493+0100 MyApp[10869:7635154] 10.6.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 5620 2023-03-11 21:37:37.823989+0100 MyApp[10869:7635154] 10.6.0 - [FirebaseAnalytics][I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled 2023-03-11 21:37:37.824550+0100 MyApp[10869:7635154] 10.6.0 - [FirebaseAnalytics][I-ACS012018] Saving bundle. size (bytes): 546 2023-03-11 21:37:37.825096+0100 MyApp[10869:7635154] 10.6.0 - [FirebaseAnalytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 364, 1678567057698
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetIf using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: