Skip to content

When using in MAUI/iOS app: delegates not invoked #74

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

Closed
brix-nobo opened this issue Mar 27, 2025 · 1 comment
Closed

When using in MAUI/iOS app: delegates not invoked #74

brix-nobo opened this issue Mar 27, 2025 · 1 comment

Comments

@brix-nobo
Copy link

We ported a Xamarin application to MAUI.

When updating the firmware with Laerdal.Dfu in the iOS version, the update usually starts normally, and then we receive status updates via the ProgressChanged callback.

However, after a few seconds (variable), no further update is reported. Furthermore, the StateChanged callback is no longer called.
Sometimes (perhaps one in ten attempts) the update works as expected.

Even if this callback isn't called, the firmware appears to be updated correctly.

The Android version doesn't experience these issues.

@brix-nobo brix-nobo changed the title When using in MAUI/iOS app: delegates When using in MAUI/iOS app: delegates not invoked Mar 27, 2025
@brix-nobo
Copy link
Author

brix-nobo commented Apr 3, 2025

It turned out that the problem was caused by a bug in our application:

The firmware update was performed via a service from a service container that was only referenced in a local scope.
However, the service was only registered as transient, so it was disposed by the garbage collector after a certain period of time.
As a result, subsequent status/progress requests could no longer be processed.

Closed this issue.

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

No branches or pull requests

1 participant