Open vallgrenerik opened 8 months ago
The iOS crash display some static resources problem (dotnet-bot.png) and I tried to remove those references but it still crashes on startup after a couple of seconds.
I'm using
Microsoft Visual Studio Professional 2022 (64-bit) - Preview Version 17.10.0 Preview 2.0
Hi @vallgrenerik
Re: System.ArgumentNullException: Value cannot be null. (Parameter 'key')
This is actually a hot reload error. Hot reload doesn't work with native embedding apps. I added a note to the doc about this, but forgot to add it to the sample readme (I'll rectify this). So you have two options: (1) disable hot reload in VS, or (2) launch the app without debugging. This should get you over the first hurdle.
Native embedding seems to work on Android and Windows, but it's problematic on iOS and Mac Catalyst. The main issue on iOS/MacCat is that you can't interact with any MAUI controls you add to your native app, due to this issue. This alone is a blocker on those platforms. On top of that, iOS/MacCat won't load a single project in the latest MAUI release.
Thank you @davidbritch for the examples at https://github.com/dotnet/maui-samples/tree/main/8.0/PlatformIntegration/NativeEmbeddingDemo
I'm currently migrating an Xamarin.iOS/Xamarin.Android application to net8.0-ios/android. I would like to see how I could implement some MAUI controls into this application and found this sample, which looks exactly what I want. However the Android/iOS samples does not work. I get this error on Android:
On iOS I get this error:
Any ideas @davidbritch @jfversluis ? 😊