Hello, I need some help for understand how I can add some native elements to fuse. It’s my first foreign code so sorry if my question is maybe basic.
(I wish add AdMob to my app)
I don’t have any idea how I can add something like that in fuse.
I’m trying to do the same, like you I also have read the docs but can’t find the way to do it. It’s a bit frustrating because apparently only a few lines are needed to implement AdMob. Maybe someone from the team could help us?
Can you explain what you tried and where you are stuck? The docs you linked to should be what you need.
If I’m reading your post right it also looks like you need to add some elements to the AndroidManifest.xml. For that I suggest you look at the examples on using third-party SDKs where we do that.
I have post my “work” on github (https://github.com/aToO57/AdMob) if you want see. I really don’t know if I’m on the right way, but for know I don’t have any error when I build (uno --target=Android -DGRALE).
Now(if right way) I need found a way to display my mAdView.
I’m trying to understand how work the NativePickers on your github and follow the tutorial “Custom native control” on the doc.
Thank’s for your piece of code. I worked this weekend and I managed to create some code (which is very similar) for display a Ad !
But your seems cleaner so I have edit my code.
I have just remove extern(Android) public class AdMobView { } because it’s generate a error AdMob.Android.uno(15.13): E2047: No implicit cast from Native.Android.AdMobView to Fuse.Controls.Native.IView
It’s working fine ! Thank’s !
Edit: Now I will try to add some parameter to change another size/UnitID from ux!
aTo, can you please share the code to display an ad? I created a code based on Vegard’s piece of code, apparently everything is ok, I build the android app with no errors but when the app runs on the device I got the following message on the console:
FirebaseApp initialization unsuccessful.
Obviously no ad is shown. You had this error? You know how to fix it?