MTAdmob icon indicating copy to clipboard operation
MTAdmob copied to clipboard

Support .NET MAUI

Open Mephisztoe opened this issue 2 years ago • 14 comments

I am thinking about integrating Ads the first time and since Xamarin has been closed for any further development, I chose to implement my Apps using .NET MAUI. MAUI is currently at Preview 14 with RC1 around the corner and GA expected somewhere around May this year. So I'd like to know if you plan to update your package with support for .NET MAUI or is there any way to use it with MAUI even right now?

Mephisztoe avatar Mar 30 '22 19:03 Mephisztoe

Hi Christian,

The current version of the plugin only works with Xamarin and I really doubt it would work with MAUI. Right now I'm waiting for MAUI to reach RC1 but as you can imagine I'm really anxious to move my apps and my plugin to MAUI as soon as possible. As I'm the first user of this plugin in all my app, I'll definitely update it to MAUI, I just need to find the time to port it.

marcojak avatar Mar 30 '22 19:03 marcojak

Right now I'm waiting for MAUI to reach RC1 but as you can imagine I'm really anxious to move my apps and my plugin to MAUI as soon as possible. Same here. RC1 will solve a lot of issues I am currently experiencing

As I'm the first user of this plugin in all my app, I'll definitely update it to MAUI, I just need to find the time to port it. Maybe community can help; I guess your library is used by a lot of people amongst whom will be a lot facing the same migration path ahead. :)

If it is in my possibilities, I'll try to help.

Mephisztoe avatar Mar 30 '22 19:03 Mephisztoe

Hi Christian,

just a quick update. I've started to work on the MAUI version of the plugin. I want to clean it and make it better with a proper User Guide but so far I can tell you that Interstitials and Rewarding videos for Android work just fine on MAUI.

My plan is to have the MAUI version ready online by the time MAUI will reach RC1.

marcojak avatar Apr 01 '22 20:04 marcojak

Hello Marcojak,

Do you have any timeline/update for the new MAUI version of the plugin? Thanks.

supershopping avatar May 14 '22 18:05 supershopping

Hi,

I've started to move to MAUI. In my early tests, the Android version already works fine but the iOS version doesn't work yet. The issue is with the binding libraries behind MtAdmob. Hopefully those libraries will be available soon.

Best regards, Marco

On Sat, 14 May 2022, 19:41 supershopping, @.***> wrote:

Hello Marcojak,

Do you have any timeline/update for the new MAUI version of the plugin? Thanks.

— Reply to this email directly, view it on GitHub https://github.com/marcojak/MTAdmob/issues/102#issuecomment-1126792366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUIPIQWAUWPBCKGSZT2UTTVJ7XUDANCNFSM5SC6FSUA . You are receiving this because you commented.Message ID: @.***>

marcojak avatar May 14 '22 19:05 marcojak

Waiting for the support - Google Ads for Android and iOS.

samirgcofficial avatar Jun 03 '22 06:06 samirgcofficial

Hi @marcojak, Will it work with MAUI Blazor approach?

I am also looking forward to the update. I am finishing an application and it would be very useful :)

pwisk avatar Jun 17 '22 07:06 pwisk

A quick update: I'm working on it and it works perfectly fine for Android. On iOS, interstitials and rewarded videos work fine so now I need to work on the Banners, hopefully it shouldn't take much.

The implementation is very similar to Xamarin so passing from the Xamarin version to MAUI, should be incredibly straightforward, but I'd like to clean the code and revisit it before making it public as after the fist release, it's always more complicated to change something.

marcojak avatar Jul 10 '22 10:07 marcojak

Can't wait for it, i've a ton of App that are still on hold because i'm waiting for MAUI support :) You're doing an amazing job, thank you for that dude !

T0w0T avatar Jul 19 '22 09:07 T0w0T

I've just published the plugin. It's available on NuGet here: https://www.nuget.org/packages/Plugin.MauiMTAdmob (It might not be visible until Nuget indexes it).

The sample code is available here: https://github.com/marcojak/MauiMTAdmob

It's the first version so things may change in future but it seems stable and its usage is very similar to the current Xamarin Plugin.

marcojak avatar Jul 19 '22 17:07 marcojak

THANK YOU ! You're the man !

T0w0T avatar Jul 19 '22 18:07 T0w0T

@marcojak Will this also work with Maui Blazor? Right now when I try to install Plugin.MauiMTAdmob in a Maui Blazor application I get an error saying Could not find a part of the path ~\.nuget\packages\xamarin.firebase.ios.core\8.10.0.1\lib\xamarinios10\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_i386_x86_64-simulator\GoogleUtilitiesComponents.framework\PrivateHeaders\GULCCComponentContainerInternal.h

JeroenMBooij avatar Jul 23 '22 09:07 JeroenMBooij

Hi @JeroenMBooij, the error you are seeing is not linked to the plugin but to the path too long. You need to make it shorter! Have a look at this to solve the issue: https://github.com/xamarin/GoogleApisForiOSComponents/issues/555#issuecomment-1145943195

marcojak avatar Jul 23 '22 10:07 marcojak