-
Notifications
You must be signed in to change notification settings - Fork 18
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
DfuInstallation.Start() throws Bad notification for startForeground thrown on .Net MAUI (Android) #28
Comments
Yeah I have been running into multiple issues with this repo in .NET Maui currently as well |
@juniorsaraviao Any updates on this issue? I am seeing this issue as well while migrating from Xamarin Forms to MAUI |
@mattalanskas not really, I was also thinking that this was related to the PostNotification permission but even declaring and allowing it the app still throws the exception. <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> I remember while the firmware was upgrading, it appeared a notification to show the progress (Xamarin Android version). |
I had the same issue on Android. If you do not need the foreground notification, you can disable it in the DfuConfiguration. This worked for me:
|
The workaround to use DfuConfiguration worked for me too. |
Got the foreground issue done with the above workaround. I am now running into an invalid BT Address. I had been using this address in my Xamarin app but now it seems to be an issue. I get this from here. |
The package expects the Bluetooth address in the format "XX:XX:XX:XX:XX:XX". I use this method to convert from the Guid:
It's basically the last part of the Guid (in your case cd196234d6e5) in this format, which would be CD:19:62:34:D6:E5 |
Yeah, confirmed for Android. It needs the Address, while for iOS, it is the GUID |
Thanks for the help all. Can probably close this issue. |
hi everyone i hope you are doing fine and best of your health actually i am stuck in dfu plus i am new to maui as well as andriod development. i have downloaded 1.27.8 NuGet package and then select file as initiate the dfu but it doesnt work for me and dfu service destroyed after few secondi am sharing the log as well
} |
Describe the bug
I'm implementing the functionality to upgrade a firmware using DFU but it throws an exception when executing DfuInstallation.Start().
I've declared the Foreground Service permission on AndroidManifest.xml and a Foreground service link but it's still throwing the error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Start and complete the DFU process with the BLE device.
Desktop:
Smartphone:
Additional context
Logs:
The text was updated successfully, but these errors were encountered: