SDK DocumentationRecipesAnnouncementsSupport Forum
AndroidiOSAnnouncementsSupport Forum

Support Forum

Ask a Question
ANSWERED

React-native iOS error: Can't find selector for JS function collectPendingEvents

React Native project (0.60.4) get this error on iOS: TaboolaSDK: Can't find selector for JS function collectPendingEvents TaboolaSDK: Native doesn't respond to selector (null) ((RNTaboolaView*) taboolaView).onDidLoad(values); } Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
ANSWERED

prevent the default behaviour

Hi, I'm using you're react-native api, and using onOrganicItemClick event to change the state of the app, is there a way to prevent the default behaviour of opening a browser tab?"
ANSWERED

SDK for hybrid app

I want to integrate widget on my hybrid app (Android and iOS). Which documentation should I use?
ANSWERED

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.
ANSWERED

iOS Cocoapods Framework CoreLocation

Hi, After installing the SDK using cocoapods (pod 'TaboolaSDK', '2.3.8') I see that TaboolaSDK.xcconfig uses the following configuration: CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TaboolaSDK FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TaboolaSDK" GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 OTHER_LDFLAGS = $(inherited) -framework "AdSupport" -framework "CoreLocation" -framework "Foundation" -framework "SafariServices" -framework "UIKit" -framework "WebKit" Why does TaboolaSDK need CoreLocation?
ANSWERED

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.
ANSWERED

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
ANSWERED

How to use @property(nonatomic, readwrite) NSString *optionalWidgetStyle

Hello Taboola, I'm having challenges understanding how to implement/force our own CSS into the widget - iOS Native. Referencing the documentation, we identified the property optionalWidgetStyle. Are there examples that you can share? Maybe a repo?
ANSWERED

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!
ANSWERED

Can we add our own content in Taboola feed.

I want to integrate my own content in taboola feed. Is it possible to show my feed along with taboola feed with taboola widget?