Skip to content

[Question] - Sharing among multiple apps #50

Description

@bobpf

Attempting to use this in a library that is shared between two apps. I have set the sharedUserId to the same ID in both apps (and the library). For the context I create a packageContext using the package name of one of my apps. However, I am not able to store the value in one app and fetch it in the other. Just curios to see if this is something that this AWESOME package is preventing me from doing. Should I be looking to move to a Content Provider instead that can use this package to secure the data at rest? Thanks in advance.

My code

  `val sharedContext = context.createPackageContext("com.one.of.my.apps", Context.MODE_PRIVATE)
    SecuredPreferenceStore.init(
        sharedContext,
        storeName,
        keyPrefix,
        seedKey,
        DefaultRecoveryHandler()
    )
    sharedPreferences = SecuredPreferenceStore.getSharedInstance()`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions