Closed PavlosTze closed 8 months ago
Are you getting this error in your app, which is using the DFU library? The nRF DFU app already specifies the service type here: https://github.com/NordicSemiconductor/Android-DFU-Library/blob/34515ab33627a4282079663299a07f2e5290a0f8/profile/main/src/main/AndroidManifest.xml#L43
Yes @philips77 we get this error on an app using the DFU Library on Android 14 devices.
If it's your app, you need to fix it on your side. The library doesn't register the service in its Android Manifest, as it doen't know the final type. Have a look at the link I posted above. You'll also need this: https://github.com/NordicSemiconductor/Android-DFU-Library/blob/34515ab33627a4282079663299a07f2e5290a0f8/profile/main/src/main/AndroidManifest.xml#L37
I'm putting these on our app and I will let you know @philips77
That worked, thank you @philips77 . I'm closing this issue.
Where do you suspect the issue?
Issue related to Android version or specific device
Version
2.3.1 (Latest)
Describe the issue
I'm getting this error on the latest version which is
2.3.2
.On
DfuBaseService.java
you need to specify a type on Android 14 on line 1910:startForeground(NOTIFICATION_ID, builder.build());
Source: https://developer.android.com/about/versions/14/changes/fgs-types-required
Possible Solution
I think you need to use the type connectedDevice
Relevant log output