Search Issue Tracker
By Design
Votes
0
Found in
2021.3.44f1
2022.3.47f1
6000.0.20f1
Issue ID
UUM-82600
Regression
No
AnalyticsSessionInfo.sessionFirstRun value is not affected when the corresponding data file is removed
Reproduction steps:
1. Open the attached “ASDQWE” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. In the Console Window, observe the “Call AnalyticsSessionInfo.sessionFirstRun” log’s returned value
5. Exit the Play Mode
6. Open a Finder Window
7. Remove the “~/Library/Preferences/com.DefaultCompany.sessionFirstRun.plist” file
8. Repeat the 3 - 4 steps
Expected result: The log returns “true”
Actual result: The log returns “false”
Reproducible with: 2021.3.44f1, 2022.3.47f1, 6000.0.20f1
Reproducible on: MacOS 14.6.1 (Intel)
Not reproducible on: Windows 10 (user’s)
Notes:
- Clearing “~/Library/Application Support/DefaultCompany/sessionFirstRun” does not yield the expected result as well
- Reproducible on a blank project
- Reproducible in MacOS Runtime
- The user stated:
on iOS devices clearing the application files is enough to get the expected result
deleting the registry entry on a Windows device is enough to get the expected result
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
- Group Node name text is way smaller in the renaming state than the actual display size
Resolution Note:
Deleting the backing plist file for PlayerPrefs is not a supported workflow.
As a workaround for resetting the session, use PlayerPrefs.DeleteKey("unity.player_sessionid");