marcojak / MTAdmob

Admob plugin for Xamarin Android and iOS
https://www.xamarinexpert.it/admob-made-easy/
160 stars 26 forks source link

Support .NET MAUI #102

Open Mephisztoe opened 2 years ago

Mephisztoe commented 2 years ago

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?

marcojak commented 2 years ago

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.

Mephisztoe commented 2 years ago

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.

marcojak commented 2 years ago

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.

supershopping commented 2 years ago

Hello Marcojak,

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

marcojak commented 2 years ago

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: @.***>

samirgcofficial commented 2 years ago

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

tomasz-krajewski-thomaskraits commented 2 years ago

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

pwisk commented 2 years ago

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

marcojak commented 2 years ago

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.

T0w0T commented 2 years ago

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 !

marcojak commented 2 years ago

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.

T0w0T commented 2 years ago

THANK YOU ! You're the man !

JeroenMBooij commented 2 years ago

@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

marcojak commented 2 years ago

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