Support Forum
Taboola Sdk not rendering to user
Hi i'm Vijay ,in recent Times Taboola SDK Can't rendering to the user ,Please explain it
I'm using Current Version (2.6.2)
Posted by Vijay almost 3 years ago
What should be the placement id and mode for show feed in dark theme
For dark mode what params we need to append for the taboola widget android.
Posted by Josh Smith over 4 years ago
App Crashing After Update TaboolaSDK Version 2.6.2
Hi Im Vj after sdk Update app crashing . Error says (*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48 2 Foundation 0x00007fff255ca87e +[NSBundle bundleWithURL:] + 0 +[NSBundle bundleWithURL:] + 45 0x00000001079bb22d -[TaboolaView htmlTemplate] + 119 0x00000001079bb037 -[TaboolaView fetchContentFromLocalTemplate] + 237)
Kindly looking to It
Posted by vijay almost 3 years ago
WebChromeClient: can't find Taboola native SDK. have you registered the webview?
Hi there,
I via Taboola native to fetch content then I encounter a problem that fellowing below:
WebChromeClient: can't find Taboola native SDK. have you registered the webview?
I try to upgrade sdk to the latest version but the problem not solve.
=================== Full log =======================================
2019-10-24 10:28:11.476 27777-27777/? D/TaboolaWidget: updateMaxGPUSize :: called
2019-10-24 10:28:11.476 27777-27777/? D/TaboolaWidget: mScreenMaxHeight 1794
2019-10-24 10:28:11.476 27777-27777/? D/TaboolaWidget: setDefValues :: initialize fields with default values
2019-10-24 10:28:11.478 27777-27777/? D/TaboolaWidget: getWebViewClient :: initialized
2019-10-24 10:28:11.478 27777-27777/? D/TaboolaWidget: initWebView :: initialized WebView
2019-10-24 10:28:11.479 27777-27777/? D/TaboolaWidget: updateScrollBehaviour :: scroll enabled false
2019-10-24 10:28:11.480 27777-27777/? D/TaboolaWidget: updateScrollBehaviour :: scroll enabled true
2019-10-24 10:28:11.480 27777-27777/? D/TaboolaJs: setOnClickListener
2019-10-24 10:28:11.480 27777-27777/? D/TaboolaWidget: publisher[sdk-tester] mode[alternating-widget-without-video-1-on-1] placement[Mid Article] pageType[article] pageUrl[https://blog.taboola.com] viewID[1571884091480]
2019-10-24 10:28:11.492 27777-27777/? D/OptionalPageCommands: commandToLocalString {isUsedInTaboolaWidget:'true'}
2019-10-24 10:28:11.492 27777-27777/? D/OptionalPageCommands: getCommandsString _taboola.push({isUsedInTaboolaWidget:'true'});
2019-10-24 10:28:11.492 27777-27777/? D/TaboolaWidget: loadWebView html:
<html>
<head>
<meta name='viewport' content='width=device-width, user-scalable=no'/>
<script type="text/javascript">
!function (e, f, u, i) {
if (!document.getElementById(i)) {
e.async = 1;
e.src = u;
e.id = i;
f.parentNode.insertBefore(e, f);
}
}(document.createElement('script'),
document.getElementsByTagName('script')[0],
'https://cdn.taboola.com/libtrc/sdk-tester/mobile-loader.js',
'tb-mobile-loader-script');
</script>
<link rel="shortcut icon" href="#"/>
</head>
<body style='margin:0;padding:2px;border:0px blue solid;overflow:visible;'>
<div id='taboola1'>
</div>
<script type='text/javascript'>
window._taboola = window._taboola || [];
_taboola.push({isUsedInTaboolaWidget:'true'}); <!--commandsString-->
_taboola.push({
article: 'auto', <!--mPageType, mPageId-->
url: 'https://blog.taboola.com' <!--mPageUrl-->
});
_taboola.push({
mode: 'alternating-widget-without-video-1-on-1',
container: 'taboola1',
placement: 'Mid Article',
framework: 'mobile-sdk',
target_type: 'mix'
});
_taboola["mobile"] = [];
_taboola["mobile"].push({
publisher:"sdk-tester",
// set view id in order to prevent duplicated between different placements (optional)
taboola_view_id:1571884091480
});
_taboola.push({
flush: true
});
</script>
</body>
</html>
2019-10-24 10:28:11.704 27777-27777/? D/WebChromeClient: can't find Taboola native SDK. have you registered the webview?, source: https://cdn.taboola.com/libtrc/sdk-tester/mobile-loader.js From line 1
2019-10-24 10:28:11.910 27777-27777/? D/WebChromeClient: can't find Taboola native SDK. have you registered the webview?, source: https://cdn.taboola.com/libtrc/sdk-tester/mobile-loader.js From line 1
Posted by NickWang over 4 years ago
This is an example questions
Where can I find your example projects?
Posted by Omri Ariav over 5 years ago
Taboola feed not showing, getting exception WebView not registered and webview not found.
10-02 18:54:18.800 10221-10221/com.newsdistill.mobile E/Ads: JS: Uncaught SyntaxError: Unexpected token ';' (data:text/html,<!DOCTYPE html><html><head><script>(function(){var g,k=this||self;function l(a){return"string"==typeof a}function m(a,b,c){a=a.split(".");c=c||k;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function n(){}function aa(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function p(a){return"array"==aa(a)}function q(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ba(a,b,c){return a.call.apply(a.bind,arguments)}function ca(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r=ba:r=ca;return r.apply(null,arguments)}function da(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}var t=Date.now||function(){return+new Date};function u(a,b){function c(){}c.prototype=b.prototype;a.s=b.prototype;a.prototype=new c;a.prototype.constructor=a};function v(){this.j=this.j;this.f=this.f}v.prototype.j=!1;v.prototype.B=function(){this.j||(this.j=!0,this.h())};v.prototype.h=function(){if(this.f)for(;this.f.length;)this.f.shift()()};function ea(a){a&&"function"==typeof a.B&&a.B()};function w(a,b){this.type=a;this.a=this.target=b;this.C=!0}w.prototype.b=function(){this.C=!1};function x(a,b){this.messageName=a;this.parameters=b||{}}function fa(a,b){w.call(this,a.messageName,b);this.params=a.parameters||{}}u(fa,w);function ha(){return null};var ia=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(l(a))return l(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};function ja(a,b,c){for(var d in a)b.call(c,a[d],d,a)}var ka="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function la(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ka.length;f++)c=ka[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var ma=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function y(a,b){return-1!=a.indexOf(b)}function z(a,b){return a<b?-1:a>b?1:0};var A;a:{var na=k.navigator;if(na){var oa=na.userAgent;if(oa){A=oa;break a}}A=""};function pa(a,b,c){if(p(b))for(var d=0;d<b.length;d++)pa(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))};function B(){return k.navigator?k.navigator.userAgent:""}var qa=y(B(),"Android"),ra=y(B(),"MSIE")||y(B(),"IEMobile")||y(B(),"Windows Phone");function C(a){C[" "](a);return a}C[" "]=n;var sa=y(A,"Opera"),E=y(A,"Trident")||y(A,"MSIE"),ta=y(A,"Edge"),ua=y(A,"Gecko")&&!(y(A.toLowerCase(),"webkit")&&!y(A,"Edge"))&&!(y(A,"Trident")||y(A,"MSIE"))&&!y(A,"Edge"),va=y(A.toLowerCase(),"webkit")&&!y(A,"Edge");function wa(){var a=k.document;return a?a.documentMode:void 0}var F;a:{var G="",xa=function(){var a=A;if(ua)return/rv:([^\);]+)(\)|;)/.exec(a);if(ta)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(va)return/WebKit\
10-02 18:54:19.687 10221-10221/com.newsdistill.mobile E/TaboolaJs: setOnClickListener: WebView is not registered
10-02 18:54:19.687 10221-10221/com.newsdistill.mobile E/TaboolaJs: updateContent : webView not found!
Posted by Josh Smith over 4 years ago
Why does the Android Sdk still need Jetifier ?
As Jetifier add an overhead build time, I was expecting that the android sdk would have now no dep with old support libs.
If this is still the case, could we get an explanation, and if possible a date for a fix.
Posted by Anthony F over 3 years ago
'TaboolaSDK/TaboolaSDK.h' file not found
I have clone the repository (https://github.com/taboola/taboola-react-native-example), then I run npm i, cd ios, pod install.
But when I try to run on iOS I get 'TaboolaSDK/TaboolaSDK.h' file not found.
What could I be missing here?
Posted by Pablo about 3 years ago
Unity compatible
Hi, I have a Unity-based app. Is the SDK compatible please?
Posted by David Wygant almost 4 years ago
Updating Apps that Use Web Views
Hello Team,
We have Integrated Branch SdK in our App. As per the Latest Apple Review Guidelines Apps that Use UI Web Views should Updating to WKWebView.
Is there any Upgradation is happening from your end. Or How it would be.
It will be great if we can get the confirmation On this.
Posted by Rajeswari about 4 years ago