Skip to content

Android.Preferences.PreferenceManager is deprecated in API level 29 #1833

Closed

Description

@ghuntley

Observation:

ApplicationDataContainer on Android uses Android.Preferences.PreferenceManager which has been deprecated in API level 29:

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • Windows
  • Build tasks
  • Solution Templates

Considerations:

  • Should (and how should) the contents of ApplicationDataContainer be migrated by Uno from PreferenceManager to PreferenceLibrary by Uno in upgrade scenarios?

Activity

  1. added
    kind/enhancement
    platform/android 🤖
    on Oct 14, 2019
  2. jeromelaban commented on Oct 15, 2019

    @jeromelaban
    Member

    If we move onto this part of the code, we can make an update, given we have sufficient unit tests. Otherwise, most deprecated APIs stay alive for a while.

  3. added
    project/core-tools 🛠️
    on Sep 21, 2020
  4. added
    difficulty/tbd
    on Feb 15, 2021
  5. added
    difficulty/medium 🤔
    project/non-ui ⚙️
    and removed
    difficulty/tbd
    on May 31, 2021
  6. changed the title [-]Android.Preferences.PreferenceManager is deprecated in API level 29[/-] [+]`Android.Preferences.PreferenceManager` is deprecated in API level 29[/+] on Jun 14, 2023
  7. github-actions commented on Jul 23, 2025

    @github-actions
    Contributor

    This issue has become stale with over 1 year of inactivity and will be closed in 10 days unless a comment is provided or the stale label is removed.

  8. added
    stale
    on Jul 23, 2025
  9. MartinZikmund commented on Jul 23, 2025

    @MartinZikmund
    Member

    Let's keep this one in mind

  10. removed
    stale
    on Jul 24, 2025
  11. MartinZikmund commented on Apr 7, 2026

    @MartinZikmund
    Member

    Repro generator

    This issue was classified as not reproducible with a code sample or test.

    Reason: This is a code maintenance issue noting that Android.Preferences.PreferenceManager is deprecated in API level 29. The ApplicationDataContainer still functions correctly but uses the deprecated API. There is no specific broken user-facing behavior to demonstrate with a test — it is a code modernization task.

  12. self-assigned this
    on Jun 4, 2026
  13. added a commit that references this issue on Sep 2, 2026
    7e2896b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/enhancementno-reproplatform/android 🤖project/core-tools 🛠️project/non-ui ⚙️

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions