Support Forum

Ask a Question
ANSWERED

duplicate resource error

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

error itms-90171 invalid bundle structure

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
ANSWERED

can you help to solve the NullPointerException

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

gradle error while using Android SDK 2.8.0 or 2.8.1

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

Could you help me to solve the NullPointerException ?

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

Why can I not see my latest post/comment?

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
ANSWERED

Will the feed available in regional languages?

My application feed available in different languages, I want to show the taboola feed in that the user selected language. Will it serve the feed fir different languages.
ANSWERED

Error when upgrading from Android v2 to v3: "E/TBLWebUnit: setUnitExtraProperties got unrecognized property."

I'm currently upgrading from v2 to v3 in an Android App, but cannot see any taboola feed. These errors are thrown in the logs: > TBLWebUnit: setUnitExtraProperties got unrecognized property. key = mediatedVia > TBLWebUnit: setUnitExtraProperties got unrecognized property. key = isUsedInTaboolaWidget How can I resolve these errors? Should the taboola feed be visible nevertheless, and I'm missing out on something else? My taboola code looks like this: build.gradle: ``` //Include the Taboola SDK binary implementation 'com.taboola:android-sdk:3.6.3' //Taboola: Include the following dependencies (mandatory) implementation 'androidx.browser:browser:1.4.0' ``` Application.kt: ` Taboola.init(TBLPublisherInfo("[my-published-id]"))` ViewController.kt: ``` { private var taboolaPage: TBLClassicPage? = null private var taboolaUnit: TBLClassicUnit? = null fun init() { if (taboolaPage == null) { taboolaUnit = findViewById<TBLClassicUnit>(R.id.taboolaView) // Dark mode disabled for now // taboolaUnit?.setUnitExtraProperties(HashMap<String, String>().apply { put("darkMode", "true") }) taboolaPage = Taboola.getClassicPage("[my-url]", "article ") taboolaPage?.addUnitToPage( taboolaUnit, "Below Article Thumbnails", "thumbnails-a", TBL_PLACEMENT_TYPE.PAGE_BOTTOM, object : TBLClassicListener() { // None of the callbacks are being called override fun onItemClick( placementName: String?, itemId: String?, clickUrl: String?, isOrganic: Boolean, customData: String? ): Boolean { return true } override fun onTaboolaWidgetOnTop() {} override fun onAdReceiveSuccess() {} override fun onAdReceiveFail(error: String?) {} override fun onResize(height: Int) {} override fun onUpdateContentCompleted() {} override fun onEvent(actionType: Int, data: String?) {} }) } } private fun refreshView() { taboolaUnit?.fetchContent() } } ``` taboola_wiget.xml (I've also tried the way without declaring TBLClassicUnit via XML) ``` <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:taboola="http://schemas.android.com/apk/res-auto" android:id="@+id/taboolaWrapper" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.taboola.android.TBLClassicUnit android:id="@+id/taboolaView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/elementBackground" taboola:tb_mode="thumbnails-a" taboola:tb_page_type="article" taboola:tb_placement="Below Article Thumbnails" taboola:tb_publisher="[my-publisher-id]" taboola:tb_target_type="mix" taboola:tb_url="[my-url]" /> </FrameLayout> ``` Any help would be appreciated. Thanks! Simon
ANSWERED

feed code null exception

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

Android Native Implementation Question

I have a TaboolaWidget inside a RecyclerView. Right now the widget has a fixed height with a nested scroll to view all the overflowing ads. What I want is to make the widget's size to be as large as needed in order to fit all the ads WITHOUT having to use the nested scroll that the widget provides. Thanks.