Auger
Struggling with Securing Environment Variables in Deployed Desktop Apps
Yeah, this sounds like a scenario where you would want authentication of some sort. If you're working in a company, you might be able to onboard to their authentic provider, ex. Microsoft Entra and just having a verified work email is good enough. By being authenticated, you end up with some sort of token (like JWT) that you can configure to work with your backend, which would validate it when it receives a request from your desktop app and has your backend generate the PDF and email it (if I read what your app does correctly).
18 replies
MAUI Popup at first start
Since OnAppearing is kind of an Event Handler of sorts, you can probably get away with making it an
async void
method. Generally, you wouldn't want to do that unless it is an event handler method. In this context you probably could to navigate.
2 replies
Brotli compression with all cores
This is a harder problem than it probably first appears...
In order to have multithread compression, you'd have to break the file into chunks (Look into the Partitioner class for that), and then use a Parallel.ForEach to compress each chunk. And while that would work... you'd have to decompress each chunk and re-combine the exact same way. The order of chunk has to be persisted as metadata in order to decompress later.
5 replies
A problem while making a request for API in maui .net
I'd recommend leowest's suggestions. The cleartext one anyway, as that can cause requests to fail.
My assumption of the issue here is that your android emulator is probably not serving HTTP content locally on port 5117 like your PC is. If you inspect the
request
object, I'd be interested to see why it failed. If you get a HTTP status code, then you know at least it is hitting the HTTP server14 replies