Answer the question
In order to leave comments, you need to log in
Does ads work in React Native WebView?
In general, there is a site that gives a video player and that's it, ads are played in the player, i.e. everything works on the site.
But there are no ads in WebView...
Here is how I use webview:
<WebView
style={{ backgroundColor: 'transparent' }}
source={{ uri: 'http://.../embed/give?epg=100001' }}
javaScriptEnabled={ true }
domStorageEnabled={ true }
thirdPartyCookiesEnabled={ true }
sharedCookiesEnabled={ true }
geolocationEnabled={ true }
cacheEnabled={ true }
origin="http://toorigin.ru"
automaticallyAdjustContentInsets={ false }
mixedContentMode="always"
userAgent="Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36"
//applicationNameForUserAgent={ ' EnjoyTV / 1.1.0 ' }
allowsFullscreenVideo={ true }
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question