Skip to content
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

Support .NET MAUI #102

Open
Mephisztoe opened this issue Mar 30, 2022 · 14 comments
Open

Support .NET MAUI #102

Mephisztoe opened this issue Mar 30, 2022 · 14 comments

Comments

@Mephisztoe
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

marcojak commented Apr 1, 2022

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
Copy link

Hello Marcojak,

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

@marcojak
Copy link
Owner

marcojak commented May 14, 2022 via email

@samirgcofficial
Copy link

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

@tomasz-krajewski-thomaskraits

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

@pwisk
Copy link

pwisk commented Jun 17, 2022

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

@marcojak
Copy link
Owner

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
Copy link

T0w0T commented Jul 19, 2022

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
Copy link
Owner

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
Copy link

T0w0T commented Jul 19, 2022

THANK YOU ! You're the man !

@JeroenMBooij
Copy link

JeroenMBooij commented Jul 23, 2022

@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
Copy link
Owner

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:
xamarin/GoogleApisForiOSComponents#555 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants