-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
NativeEmbeddingDemo doesn't work. #454
Comments
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 |
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 ? 😊
The text was updated successfully, but these errors were encountered: