Skip to content
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

Re-registering AppInstance causes Key to be invalid #4420

Open
stevenbrix opened this issue May 16, 2024 · 0 comments
Open

Re-registering AppInstance causes Key to be invalid #4420

stevenbrix opened this issue May 16, 2024 · 0 comments

Comments

@stevenbrix
Copy link

Describe the bug

If you have an app instance which unregisters itself, and then calls AppInstance.findOrRegisterKey it "succesfully" registers, but then the Key is not valid (it returns ""). This means that a subsequent process will come along and call AppInstance.findOrRegiserKey, which will end up returning null

Steps to reproduce the bug

  1. call AppInstance.FindOrRegisterKey("myKey")`
  2. call AppInstance.GetCurrent().UnregisterKey
  3. call AppInstance.FindOrRegisterKey("myKey")
  4. launch second instance of application, notice that the call from step (1) will return null

Expected behavior

FindOrRegisterKey will return the proper instance

Screenshots

No response

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

No response

Additional context

No response

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

No branches or pull requests

2 participants