-
Notifications
You must be signed in to change notification settings - Fork 69
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] Custom URI Stops Working after MSIX Packaging #187
Comments
Hello @cliftonlabrum You can add this functionality for Msix by using the Please update if its working for you. |
@YehudaKremer Thanks so much for your reply! I added this to the end of my
But it fails during packaging with:
My regex is rusty, but it seems it's expecting a domain name formatted like Any idea what I'm doing wrong? |
Is |
Looking through the MSIX README again, I think I may actually want |
My bad sorry |
Adding |
ℹ️ Info
Version:
3.9.1
💬 Description
I can't get my Flutter app's custom URI to work after I package my app with MSIX, and I'm trying to figure out if it's a bug with protocol_handler that creates and registers the URI, or if it's something to do with MSIX.
Here's what I've done:
myapp://test
opens my app.flutter pub run msix:create
and signing the MSIX, then running the app on another computer, the app runs, but hitting the custom URI does not open the app.I have confirmed the issue across two apps:
📜 Pubspec.yaml
🖥️ Sample Project
Below is a minimal sample project. You will need to add these two packages:
After building the app on Windows, visit
uritest://test
in a web browser, and it should show this:After clicking Open uri_test it will bring the app to the forefront and you should see this in the debug console:
Here are the contents of
main.dart
:You have to add the following to
/windows/runner/main.cpp
:After you package this with MSIX, you must launch it on another user account or computer. This is because (as far as I can tell) the registry edits are already made on your machine with the debug version of the app running.
Could you please check if this is something to do with MSIX or not? This is blocking me on launching two apps on Windows. 😅 Thank you!
The text was updated successfully, but these errors were encountered: