Can Adsense/Bing Ads be used in Node Webkit desktop applications? - javascript

Title says it all. There is little documentation on this. Do not want to violate terms of service.

According to the AdSense policy documentation, AdSense for content cannot be used in an application. Basically, if it's not in a webpage with a domain based URL, it's not to be used with that program. If you have an application written in Android, iOS or Microsoft Windows Mobile, there's an SDK from AdMob for ads in apps. That's your only choice with AdSense.

Related

Google lighthouse issue - generating a mobile report

The issue I am currently having is when trying to generate a performance report with google lighthouse and/or page speed insights for mobile devices. on desktop emulation I am getting a score of 99 but through mobile emulation it is not even detecting an FCP event. when actually viewing the site on mobile however, it is very responsive and quick to load. I'm not really sure why this may be the case and am not aware of any potential solutions. The only suspicion i have is that the site is not 'optimized' for mobile, as it is the exact same site for desktop just with layout adjustments using JS and CSS. The following image is of the localhost report (https://i.stack.imgur.com/13XnB.png)
to clarify this happens both locally and when hosted.
Things I have tried include:
lazy loading image assets with react-lazy
removing all 3d assets from the site temporarily (react-three-fiber)
trying other analytics tools such as webpagetest (this was able to successfully generate a report and indicate the performance on mobile was not bad)
async load all Api integrations such as google analytics, google reCAPTCHA
pre-connect to all 3rd party resource URIs

Issues webview Android application

I make a web application using quasar and java spring boot backend. I convet my web application to an Android application using webview. But when i published in play store, its gives security issue for my backend server url. But i do not collect any data or install anything in Android apps or user device but Google gives an exception in my Android App. How can i fix this issue in Android web-view apps.
This warning is sent by Google Safe Browsing service, which is embedded in the Google Chrome Browser and several other browsers, this service looks for vulnerabilities principally in the markup; for example open tags that could lead to a code injection or other possible threats. The Safe browsing service is independent of the GCP Serverless services, this means that GCP is not marking the site as dangerous.
To prevent this message from appearing, or remove it we can do the following:
Look out for potential vulnerabilities in the app, once the changes have been made, you can use this page to see the Safe Browsing Status.
If you think that there was a mistake, you can request a review to remove the Phishing Warning in this site.
It is highly recommended to take a look a this documentation to understand what could be the reason behind the message
My issue is now fixed. It ended up being a hosting server issue. Google had me on a black list, but now its fixed.

Google Analytics not working in Webview in iOS app

Let me first start out by saying I know how to use the iOS SDK so please don't answer this with a "just use the SDK." I want to know WHY google analytics is not working.
Here's my setup. I have a web app that is also baked into an android app and ios app via webview. I'm using cordova. The android app works just fine with the GA JS code. The web works just fine. However no events or page views are showing up from iOS. I've heard that GA is tied to the domain so does an iOS Webview do something under the hood to the domain?
I was going to attach my code snippet but it's coffeescript in a few classes so I'll just paste the compiled js
Analytics.prototype.track = function(args) {
window._gaq.push(args);
};
Analytics.track(['_trackEvent', 'SubscriptionModal', "Closed", data]);
This works fine in web and android so it's not a JS. I'm setting the GA _setDomainName to 'focusatwill.com' and can see that both ios and web have a domain of 'www.focusatwill.com'
I've read online a few people talking about this issue and everyone says just use the SDK. I'm looking for the reason why it doesn't work. How do you fix it to use the JS?
edit
I should mention that the html and JS are not baked into the device, ie they don't have a local url but are served up from our webserver
Safari on iOS6+ blocks third party cookies by default, and I'm certain that webviews do too.
Check that you have something similar to the following in the init method of AppDelegate.m:
NSHTTPCookieStorage* cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
[cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
That's from the standard boilerplate generated by Cordova 3.0.9, but might not be present if you're using a version that predates iOS6. It sets the app-specific cookie policy, which should override the system default.

GoogleTV publishing web applications

I think for the web application (HTML/CSS/Js) to be published on Google Play for Google TV 2.0 platform the only way is to use the Java WebView wrapper (or more mature solutions like PhoneGap) – is that correct?
Are there any other ways to publish directly the web applications or are any plans like those known?
There is no current way for a web app to be published to Google Play. YOu can wrap your app in a webView like PhoneGap does, or you can create a simple launcher that opens Chrome. Both of those are unlikely to be featured, however.

Setting up Android application for Analytics and tracking

Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done.
I have written a native application for Android phones, which is actually an adaptation of the actual web site. Now, I am required to setup Analytics and tracking for this native application.
Question:
How to do setup a native application for Analytics?
We have Java Script code(not Google Analytics but for some other engine) that works for the original web site. Is there a way to incorporate that in the native application?
I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!
I have not worked on JavaScript since school so excuse me if I sound naive.
Thanks.
Google Analytics provide a guide for implementation on a mobile device.
Refer to http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html
To get started have a look at this guide from google.

Categories

Resources