Open KiddoV opened 11 months ago
This is just a warning. Should be easily fixed though.
How do you fix it? I would like my console to be cleaner. Thanks,
You will need to update the web version of the plugin.
I ran npm install @capacitor-community/admob@latest
It still have the warning.
I ran
npm install @capacitor-community/admob@latest
It still have the warning.
I mean in the source code of the plugin.
I see, but it is not a good practice to change the source code.
I think I will just do it like this:
if (Capacitor.isNativePlatform()) {
admobInitialize();
}
Since my app is only on mobile platform.
Is it possible that this still shows up for you, even after adding the if-statement? I am not entirely sure but I think for me it does
After adding the if statement, it will ensure AdMob
only run on mobile platform, so I am certain this warning
will no longer display on the web platform when you open it in a browser. You can try for yourself and see.
Describe the bug I encountered a warning when first initialize the plug in.
Screenshots
What does this mean and how do I get rid of it?
Desktop (please complete the following information):
Smartphone (please complete the following information):