Is there any way to bind native libraries like in Xamarin? I have tried to do some native implementations in the new .NET Maui and haven't had success on it. I would really appreciate if someone has some information about it.
Yes, native library bindings are done the same way as in Xamarin, there are two new project templates "Android Java Library Binding" and "iOS Binding Library" just add them and follow regular Xamarin documentation in order to configure it:
For android you can also check this git repo - https://github.com/Bohdandn/MAUI.WebRTC.Demo, unfortunately iOS doesn't compile there.
For android jar files, I'm using .NET MAUI class library

<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<EmbeddedJar Include="classes.jar" />
</ItemGroup>
Add this "ItemGroup" to your project, if you can create a wrap class like

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With