no I don’t necessarily want to use the marcojack library
i just want it to work
I tried to integrate Xamarin.GooglePlayServices.Ads.Lite
without the library I received these error messages
I’m at the stage I just want to integrate this dependency without errors but without success I don’t know why I have the messages I sent above
Note: the APPLICATION_ID provided here is just the test ID. If you cannot build this: run Build > Clean in VS, close VS, delete your obj and bin folders, restart VS, and try again. If you still cannot build, there is something wrong with your dev stack.
I managed to add a simple banner finally
Thanks a lot
I based myself on an old class that I found on the forum it makes simple banners work, however the full page does not work for the moment
Which MonoGame templates should I use in Visual Studio for Mac if I want to use .NET MAUI in an iOS and Android project?
Is it still necessary to use the MonoGame iOS, Android and the Shared/Game Library project template to create an iOS project and an Android project that use the same code from the Shared/Game Library project?
I managed to display the banner on iOS in a separate window, but I can’t display both the banner window and the game window at the same time. Do you have any ideas?
Hi,
When I comment out RunGame(), the banner appears. How did you manage to display both the banner and the game window? In my case, for Android, I used FrameLayout. Thank you in advance.
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
window = new UIWindow(UIScreen.MainScreen.Bounds);
adMobViewController = new AdMobViewController();
window.RootViewController = adMobViewController;
window.MakeKeyAndVisible();
RunGame();
return true;
}
Thank you for your response . Is an interstitial the same thing? I managed to display the banner just now by calling the game window before the banner. However, I am now facing another problem where the touch functionality of the game no longer works because the banner covers the game’s touch input. Do you have any workaround ideas? Thank you in advance.
I am also wondering if this is possible. I see Xamarin is dead now as of May 2024 so probably it is not wise to keep using it:
Microsoft says we must switch to Maui. How might a Maui & Monogame interaction work?
Would you start a Maui project in Visual Studio 2022, and then how would you get Monogame into it?
Could you set a Monogame camera to render to something like a RenderTexture (as it is done in Unity) and have that texture be displayed into a Maui VisualElement background?
ie. So the user is only ever seeing Maui VisualElement’s but sees the rendering of the game camera through that?
I’ve created a fork of monogame with support for MAUI on iOS and Android.
I worked the last couple of days on it and will publish it soon.
You can mix MAUI UI with a MonoGame Graphics Engine in a view behind.