unoplatform / uno.extensions

Libraries to ease common developer tasks associated with building multi-platform mobile, desktop and web applications using Uno Platform or WinAppSDK.
https://platform.uno/
Other
73 stars 47 forks source link

[Navigation][Android] Is it possible to display a dialog that can't be dismissed by the native back button? #1103

Closed takla21 closed 11 months ago

takla21 commented 1 year ago

Current behavior

When we display a custom dialog with uno.extension navigation, you can always dismiss it by pressing the native back button.

Expected behavior

Ideally have a way to setup when displaying the dialog to never being able to dismissed it.

How to reproduce it (as minimally and precisely as possible)

Environment

Nuget Package: uno.extensions

Package Version(s): 2.3.0-dev.506 (the one we're currently using on our project)

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

francoistanguay commented 1 year ago

Have you tried cancelling the request in Closing event of the ContentDialog?

takla21 commented 1 year ago

@francoistanguay No I haven't. I'll try asap

takla21 commented 1 year ago

For update, I tried to set the Cancel property to true when the Closing event is raised. It works for most of the part. However, when you put the app in background, it will still close the ContentDialog even if the event is raised and that we set the property.

jeromelaban commented 1 year ago

@takla21 We changed a behavior for the back button recently. Could you take a look at this in your canaries?

nickrandolph commented 1 year ago

@takla21 can you confirm that this is still an issue

nickrandolph commented 11 months ago

@takla21 do you know whether this is still an issue?

takla21 commented 11 months ago

@nickrandolph Sorry for the late response. No, it's not really an issue for us at this time. We can close this for now