Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
saravana_vins's avatar
saravana_vins
Honored Guest
1 year ago

Player Prefs

Hi,

    I’ve developed an Oculus application that supports both the Quest 2 and the new Quest Pro. However, I’m encountering an issue related to uninstalling and reinstalling the app. Specifically, the PlayerPrefs data does not clear consistently, especially on the Quest Pro.

ProblemAfter uninstalling and reinstalling the app, PlayerPrefs data (such as saved settings or preferences) remains intact.
Excepted behavior: Uninstalling the app should completely remove all associated data, including PlayerPrefs.

Has anyone else experienced this issue with PlayerPrefs not clearing during uninstallation?

Please let me know to it is the bug in quest pro or any other issue in oculus side.

Thanks in advance.

 

3 Replies

  • Yes, I have the same issue (this must be the most used phrase on any forum....). On Quest 2 and Quest 3, so I think it's a software issue rather than related to a device version.

    Very annoying when you're testing, especially for booleans, because you can't test it a second time.
    I hope you found an answer in the meantime.

  • Well, this is good to know as a developer.  Definitely an issue, especially when testing. 

    This isn't a desired solution but the only one that comes to mind without waiting for Meta to fix underlying code when not working as expected is to add a feature somewhere in your app to clear the preferences.  That way, if you uninstall and reinstall you can clear them, if necessary, on the reload.  I suspect this won't happen very often after the app is published.  But definitely necessary for testing.  If it's just for testing maybe disable before publishing?

    I am using prefs also.  Thankfully, mine are not critical if they're not removed - just a language selection that the user can easily change.  But I'd likely do the above if it was more critical.

    • joost.vrbeelding's avatar
      joost.vrbeelding
      Protege

      Thanks for your reply.

      Yeah, adding a  'Delete playerPrefs' option would work. And hiding it before publishing is a good tip.