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

[BUG] Discord RPC doesn't work in UWP default C# applications. #236

Open
J0nathan550 opened this issue Jun 29, 2023 · 4 comments
Open

[BUG] Discord RPC doesn't work in UWP default C# applications. #236

J0nathan550 opened this issue Jun 29, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@J0nathan550
Copy link
Contributor

Describe the bug
After trying to call client and basic rich presence as showed in example in README the rich presence doesn't appear in Discord profile.
This NuGet package work for console, WPF, Unity but not for UWP.
To Reproduce
Steps to reproduce the behavior:

  1. Create blank UWP project.
  2. Install NuGet package
  3. Try example that was showed in README example. (Works only for console and WPF)

Expected behavior
Should simply show status in RPC.

Desktop (please complete the following information):

  • OS: WIN 11
  • Framework: .NET 6.0
  • Library Version: Latest (1.3.8.11)

Logs

It doesn't return anything.

Nothing in update, nothing in ready.
Untitled.mp4
@J0nathan550 J0nathan550 added the bug Something isn't working label Jun 29, 2023
@Lachee
Copy link
Owner

Lachee commented Jun 30, 2023

Im not sure how UWP dispatches events from Main Thread. I have no experience in this framework.
I'll investigate when i have the time :)

@J0nathan550
Copy link
Contributor Author

Thanks a lot wish you good luck!

(Also I tried regular discord SDK, and it seems that UWP doesn't want to load other .dlls that doesn't really belong to .exe

(I had error where dll doesn't want at all no matter what I tried.

@J0nathan550
Copy link
Contributor Author

Im not sure how UWP dispatches events from Main Thread. I have no experience in this framework. I'll investigate when i have the time :)

Things are more difficult, As I understand the error comes from UWP itself. Because UWP was designed to be trusted, half things that this library does cannot do UWP do security reasons. You need to provide app fullTrust, problem is, I don't understand how this library access certain .exe to activate RPC status. Can you explain?

@J0nathan550
Copy link
Contributor Author

I debugged the library and simply UWP denies all pipes that does the library due security reasons once again. Problem of UWP is that you have to manually set all trusted .exes that should program use, which is lame. WPF is better :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants