Wordpress - How to avoid adsense ads when viewing thru android App - android

I have a WordPress website, it is responsive and use AdSense advt. in it. I am creating an android app (Webview) for the same, however in android webview I want to hide AdSense ad.
Is there any way to block the adsense on android webview.

You can control the behavior of AdSense ads on different devices, browsers and resolution, and various other customization controls through Advance-Ads plugin.

Related

What browser is used by android App with an iFrame

I'm developping a mobile app in Ionic 5 cordova, and in my app I use an iFrame.
I would need to know what browser is used in Android and in ios.
I ask that because I'm using Stripe Payment Request Button in a webpage embed by iFrame and the button is shown when I open the app as a PWA, but not when it is build as an android/ios application.
When I look at the requirements for the Payment Request Button to work, it say that I need a browser compatible to Gpay/Apple Pay. Since I have the button appearing chrome mobile and on chrome browser, but not when opening as my mobile app, I assume the browser use for an iFrame is not compatible with the Payment button ?
Apple Pay for the Web should be supported in a SFSafariViewController on iOS.
Google Pay for the Web is not supported in an Android webview:
For Android apps which use WebViews, you must invoke native Android Google Pay APIs. See Binding JavaScript code to Android code for examples.

does the amazon app use the native webview?

I've read a few post saying that the amazon app uses webviews pretty heavily
(sources: - https://www.quora.com/Why-does-the-Amazon-app-use-WebView-in-their-Android-and-iOS-application
and https://www.teamblind.com/post/Amazon-app--webviews-cuT4sN6C)
Now, i've played with webviews a bit in android in the past where i loaded a remote url to the webview and it loaded the exact version of that website onto the mobile app. This to me was expected. So i investigated amazon's ios app and compared it to the desktop website (in mobile view), and indeed they were very similimar. However, there were some elemets that were missing on either or platforms. i'll attach the images below:
(left is the ios app, right is the mobile view of the website on desktop)
Now I have a few questions:
when people mention "webview" for amazon's use-case are they talking about the native webview from android and ios like the Webview and WKWebview? (https://developer.android.com/guide/webapps/webview and https://developer.apple.com/documentation/webkit/wkwebview), or are they talking about hybrid app technology like apache cordova or Ionic?
If it is indeed a native webview container, can you edit the html to remove some elements? like how some stuff were missing from the mobile app that weren't on the desktop website. And also add stuff like now the mobile app has "Buy Now" button, and the "favourite icon"?
How far can i go with Webviews, in terms of having access to native features like camera, gps and all that good stuff?
When people mention "webview" for amazon's use-case are they talking
about the native webview from android and ios like the Webview and
WKWebview?
Yes, they are indeed framework webviews.
But there is a good chance that they use hybrid app tech.
If it is indeed a native webview container, can you edit the html to remove some elements? like how some stuff were missing from the mobile app that weren't on the desktop website. And also add stuff like now the mobile app has "Buy Now" button, and the "favourite icon"?
You can edit html to remove / add elements using javascript in webview BUT this is not the case here.
These sites have a specific different UI for different devices. (Desktop / Mobile)
For example: Flipkart uses a mobile version on apps which is not available on browsers, except Chrome on mobile (I guess). It just redirects the user to the respective app store to download the app.
I assume it is done by checking the User-Agent field.
How far can i go with Webviews, in terms of having access to native features like camera, gps and all that good stuff?
You can use camera and gps via webview.
More info. here and here.

Websites (static or dynamic) conversion to android app

Let us take a website like Facebook. We access it using a desktop web browser or a mobile web browser. Now, I can also install a Facebook app from the google playstore.
I understand a website can be converted to an android app using WebView layout in android studio.
Is that the only way these websites are converted to android apps?
Is there a different way that an android app can be developed for a website like facebook other than using WebView? (For eg. Facebook developed as a webapp for desktop/mobile browsers) and developed from scratch using Android Studio without using WebView but still can log in and make updates which reflects on the app as well as mobile/destop browser)
Why would there be a different method, if any? Any limitations for webview?
1.) Not necessarily.
2.) For a "dynamic" site, you could develop API's that retrieve the data to be shown on the web pages. These API's could then also be used to build an Android app.
3.) First of all, by using a WebView, you would want to carefully design the UI of the website to be responsive and look good for mobile devices. (How it would appear in the WebView). On the other hand, if you were to build your app from the ground up, you would be able to basically have a custom implementation of the website in app form. If you were to build server API's and query them over HTTP from the android client, you would probably be able to give it more of an "app" feel, rather than just a website.
Here's an example of both scenarios.
If you wanted to build an app for Facebook, you would do one of the following.
a.) Develop a mobile-friendly version of the website and display it in a WebView in the Android app. Done!
b.) Develop server API's to retrieve information that you would find on the Facebook website. (Posts on users walls, photos, etc) Then implement these API's to display data in the Android client using components like ListView's and ImageView's
webView.setInitialScale(1);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.setScrollbarFadingEnabled(false);
webView.loadUrl("http://www.educationboardresults.gov.bd/");

Adsense for mobile or Adsense for content?

I have developed an android app which parses the website content and displays them on mobile by mapping the content to android specific View. Please note that this app is not the optimized version of website.
I am thinking to monetize it by using Adsense.
But, i am little confused on which Adsense should I use? Adsense for mobile or Adsense for content, and why?
Adsense is for websites, and Adsense for mobile is for mobile optimized websites.
If you are displaying the content using an android UI as opposed to a WebView, you should be using AdMob.
Keep in mind that almost all ad networks will have a clause in the TOS that you must own the content that you are monetizing. That is, you cannot parse someone else's website and monetize it.

Can I show admob ads on wordpress android app?

I have developed simple webview app for my website. App simply load url of my website with in webview. Is it ok to insert adview for admob ads in this type of app? Thanks in advance.
You can either embed the ad in your webpage or add an adview to your app layout. It's really up to your personal preference.
I suppose the big difference is that if you wanted to change the adview after you've published the app, you would have to release an update while if your ad was on the webpage you could just change it there.
You should also consider that if you have ads on the webpage for people viewing it through a browser, you probably don't want to have additional ads within the app itself (or maybe you do, I don't know), it all depends on how your users access this website.

Categories

Resources