<declare-styleable name="TaboolaWidget"> <attr format="string" localization="suggested" name="publisher"/> <attr format="string" localization="suggested" name="mode"/> <attr format="string" localization="suggested" name="placement"/> <attr format="string" localization="suggested" name="page_type"/> <attr format="string" localization="suggested" name="target_type"/> <attr format="string" localization="suggested" name="url"/> <attr format="boolean" localization="suggested" name="auto_resize_height"/> <attr format="boolean" localization="suggested" name="scroll_enabled"/> <attr format="boolean" localization="suggested" name="item_click_enabled"/> error: duplicate value for resource 'attr/mode' with config ''.
Posted by Armen about a year ago
Hi, we're using TaboolaSDK 2.6.0 on iOS via CocoaPods. Everything seems to work perfectly, however when we try to upload a build to the App Store, we get the following error concerning some resources within the TaboolaSDK: error itms-90171 invalid bundle structure: the binary file ...Frameworks/TaboolaSDK.Framework/TaboolaSDKResource.Bundle/TaboolaSDKResource is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. You can see a screenshot here https://ibb.co/smdc501 Any idea on how to fix this? Thanks
Posted by Pasquale Puzio 8 months ago
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.taboola.android.TaboolaWidget.removeView(android.view.View)' on a null object reference at com.taboola.android.GLHelper$ClearRenderer$1.run + 54(GLHelper.java:54) at android.os.Handler.handleCallback + 815(Handler.java:815) at android.os.Handler.dispatchMessage + 104(Handler.java:104) at android.os.Looper.loop + 207(Looper.java:207) at android.app.ActivityThread.main + 5816(ActivityThread.java:5816) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 789(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main + 679(ZygoteInit.java:679)
Posted by rena.w about a year ago
java.lang.NullPointerException: at com.taboola.android.OnScrollChangedListenerImpl.<init> (OnScrollChangedListenerImpl.java:23) at com.taboola.android.js.WebViewManager.initScrollChangeListener (WebViewManager.java:149) at com.taboola.android.js.WebViewManager.onAdIdRetrieved (WebViewManager.java:141) at com.taboola.android.js.WebViewManager.access$300 (WebViewManager.java:34) at com.taboola.android.js.WebViewManager$4.onAdIdRetrieved (WebViewManager.java:123) at com.taboola.android.js.TaboolaJs$3.onIdRetrieved (TaboolaJs.java:423) at com.taboola.android.utils.AdvertisingIdClient$2$2.run (AdvertisingIdClient.java:117) at android.os.Handler.handleCallback (Handler.java:808) at android.os.Handler.dispatchMessage (Handler.java:101) at android.os.Looper.loop (Looper.java:166) at android.app.ActivityThread.main (ActivityThread.java:7425) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
Posted by Frank ding about a year ago
Hi, all There is a caching issue with the platform that hosts our Community. As a result, new posts/comments might not be visible for you. This issue is under investigation. Our profuse apologies for the temporary inconvenience. Mobile SDK community team
Posted by Taboola 8 months ago
taboolaWidget = new TaboolaWidget(MoreActivity.this); taboolaWidget.getLayoutParams().height = SdkDetailsHelper.getDisplayHeight(MoreActivity.this) * 2; when i set above code, there is a exception as follow: Caused by: java.lang.NullPointerException: Attempt to write to field 'int android.view.ViewGroup$LayoutParams.height' on a null object reference How can i to update code?
Posted by Frank ding about a year ago
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?
Posted by Alex Lykesas about a year ago
Hi - We are getting the following error while trying to upgrade to 2.8.0 or 2.8.1 ``` > Task :app:processDebugManifest FAILED [com.taboola:android-sdk:2.8.1] /Users/jenkins/.gradle/caches/transforms-2/files-2.1/77fdf33b9b8bd0b1c455fdf83ef81be1/jetified-android-sdk-2.8.1/AndroidManifest.xml:14:9-65 Error: Missing 'package' key attribute on element package at [com.taboola:android-sdk:2.8.1] AndroidManifest.xml:14:9-65 [com.taboola:android-sdk:2.8.1] /Users/jenkins/.gradle/caches/transforms-2/files-2.1/77fdf33b9b8bd0b1c455fdf83ef81be1/jetified-android-sdk-2.8.1/AndroidManifest.xml Error: Validation failed, exiting ``` What should we do?
Posted by Leon F 3 months ago
Hi, I am currently using the latest version(2.6.1) of Taboola in my project but inspite of that I am unable to upload the project to Appstore. When I searched for the presence of UIWebView in my project then I have received the below stated issue. Please do the needful. Pods/TaboolaSDK/TaboolaSDK.framework/Headers/TaboolaView.h: Optional. Force legacy UIWebView. Thanks in advance.
Posted by B Sai Deeraj 8 months ago
i am implement taboola android sdk into my application but on my account console i m unable to find parameters like publisher, placement , pageUrl etc My App Link https://play.google.com/store/apps/details?id=com.streetview.liveearth.routefinder.guide&hl=en
Posted by Hafiz Ahmad Awais about a year ago
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?
Posted by John Bob about a year ago
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 about a year ago
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 about a year ago