Skip to main content

Release Notes

[1.2.0]​

Built on native TeadsSDK 6.2.2 on iOS and 6.2.3 on Android.

Feed and Banner now follow the native SDKs much more closely, in events, URL params, privacy and click handling. Where the two native SDKs disagree, each platform follows its own. Several changes may need action in your app: Feed's default bottom padding, Feed and Banner no longer reserving space before the ad loads, the renamed Feed event values, userId precedence, FeedPlacementBuilder, the Feed scrolling its own fullscreen card into place, and an Android page-wide touch-coordinate override.

Feed layout

  • Feed adds no space under its content by default. Earlier versions reserved 50 logical pixels below the content, which showed as a gap under widgets that serve a single card. Neither native SDK adds any, so the default is now 0. If your layout relied on the 50, pass contentBottomPadding: 50. FeedPlacement.bottomPadding is deprecated.
  • Feed takes no space until the page reports its content. It used to reserve 300 px while loading. On iOS it takes no space until the ad fills and its height is known, and stays at 0 if the page reports no fill first. On Android it takes each height the page reports, before the fill too, as native Android does. A no-fill before the fill collapses it to 0 on both, and a no-fill after the fill keeps the height. The loading spinner is gone. FeedPlacement.initialHeight is deprecated. A layout that relied on the 300 px placeholder will shift.
  • maxHeight caps the whole Feed slot, meaning the WebView plus contentBottomPadding. With the default padding of 0 nothing changes. With a padding, the padding stays visible and the WebView gives up that room.
  • Feed re-measures after a rotation or window resize.

Feed events (onEvent)

  • Height changes. Feed emits heightUpdated with height, the slot height in your layout: the page's height plus contentBottomPadding, capped at maxHeight. On Android it fires for every height the page reports, repeats included, and height is a whole number unless the padding or cap is fractional. On iOS it fires only when the height changes. Read height as num. It is not emitted while a card is fullscreen.
  • Clicks. Feed emits clicked for a sponsored recommendation or a display ad and clickedOrganic for an organic recommendation, each with url. clicked is emitted when the plugin asks to open the URL, not when the browser finishes loading. Repeated clicks within one second count as one. On Android clickedOrganic fires whether or not onOrganicClick is set. On iOS it fires, and onOrganicClick is called, only after the click's tracking report succeeds. See Placement Events.
  • viewed replaces viewability. The page's viewability event now arrives as TeadsAdEvent.viewed, as on both native SDKs. TeadsAdEvent.viewability is deprecated. It still fires right after viewed until it is removed.
  • Fill. On iOS the page's fill now arrives as loaded (it was ready). On Android it stays ready, with isFillEvent: true in its data, and ready fires twice per ad, as on native Android.
  • No-fill. failed now carries reason: 'notFilled' (it was 'no-fill') plus the page's own fields, and errorCode: 3 on iOS. On Android a page error event now also arrives as failed.
  • Nothing before fill, little after no-fill. Lifecycle events and heightUpdated are no longer emitted before the ad's fill or no-fill, and the latest height is delivered right after the fill. After a no-fill only clicks are emitted.
  • onUnsupported is quieter. Unrecognised page events, page error messages and the Google ads card messages no longer reach it. They are logged at debug level instead, as both native SDKs drop them.

Feed clicks and fullscreen

  • Links tapped in an ad open outside the feed. http links and app deep links (App Store, tel:, custom schemes) inside a display ad now open in the browser or their app and emit clicked, instead of loading inside the feed. Non-web click URLs open in their app instead of failing. On Android, intent:// links open only if an app claims the scheme.
  • On iOS the page is told about display-ad clicks and Google ads cards, as native iOS tells it.
  • Fullscreen cards. On Android, back while a card is fullscreen closes the card instead of leaving the screen. Leaving fullscreen scrolls the enclosing list the way native does. On Android, fullscreen sets a transparent status bar and a black navigation bar and restores them afterwards. A bar your app's style gives no colour is left alone, so leaving fullscreen no longer leaves the navigation bar black in apps whose AppBar sets none. The black navigation bar also gets light icons when your style sets an icon brightness to restore. On Android, viewability keeps reporting the feed's pre-fullscreen size and position while a card is fullscreen, as native does. On iOS, viewability and load-more pause while a card is fullscreen, and the fullscreen card is sized to the whole screen as native sends it, so hide your own app bar on onFullScreenChange or the bottom of the card is cut off.
  • The Feed scrolls its fullscreen card to the top itself, in every host. On entering fullscreen it moves every enclosing scrollable so the card's top meets the viewport's, and repeats once a frame while the layout settles, for up to 10 frames. This replaces any scrolling your onFullScreenChange does, so a header you keep visible above the card is scrolled away; fold your chrome in the callback instead, and drop any jump to maxScrollExtent. In a lazy list (ListView.builder, a NestedScrollView body) such a jump used to leave the card partly off screen with black below it. On exit the Feed restores only the nearest enclosing scrollable, so in a NestedScrollView the outer offset keeps what the entry gave it.
  • A pinned SliverAppBar needs three toggles while fullscreen. Set primary: false, toolbarHeight: 0 and title: null while fullscreen, and back again after. A primary app bar keeps the status bar's height even at a zero toolbar height, and the card cannot scroll past it, but primary: false all the time puts your content under the status bar. Keep the bar in the tree: removing it re-parents the Feed's WebView, which stops it painting.
  • On Android, swiping between fullscreen cards keeps its direction. A swipe up sometimes went back to the previous card, or left fullscreen, on cards further down the feed. The fix changes what the page sees: from the first fullscreen on, Touch.screenX and screenY return clientX and clientY for every script on the page, creatives and carousels included, and keep doing so after fullscreen ends. Those values are measured from the WebView's own viewport, not from the screen.
  • The server's horizontal-swipe setting is honoured, so carousels in the feed can scroll sideways.
  • A Feed that fails to start collapses and logs the error type, instead of showing an error message to users.
  • A dark mode change made while the Feed loads is applied once the page is up.
  • iOS long-press link previews are off, as native sets them. Android's WebView now honours the page's viewport, which disables pinch-zoom as on native.

Feed requests, privacy and tracking

  • userId follows each native's rule. On iOS no userId is sent until App Tracking Transparency is authorized. After that a non-empty FeedPlacementConfig.userId wins over the IDFA. On Android the device advertising id wins unless ad tracking is limited, and userId is the fallback. The advertising id is read as the native Feed reads it, with no Huawei OAID fallback, and separately from the consent strings, so a slow read costs that request its userId and never its consent strings.
  • Android pubImpId defaults to the widget ID, as native Android sends it. iOS still sends none. Set pubImpId to send the same value on both.
  • On Android, the IAB TCF v1 consent string is sent whenever it is stored, even when no CMP is marked present, as native Android does.
  • On iOS, TeadsSdk.setTestMode(true) makes the Feed request test events, as native iOS does.
  • Device params match native. network is now none, wifi, 2g, 3g, 4g or unknown, plus 5g on iOS (it was cellular or ethernet). The Feed no longer sends a made-up country=US. On Android a value the device cannot give, such as carrier with no SIM, goes out empty, as native Android sends it; iOS omits params it cannot fill. Android device includes the manufacturer, and tablets are detected as native does. iOS vh and vw are the whole screen, and iOS appName is the bundle name. Android sizes, density and the user agent are formatted as native formats them. Params go out in each native's order.
  • On Android, floorPrice is sent for any value, 0 included, as native Android does. iOS still sends only positive values.
  • The organic click report goes through the platform's HTTP stack, so it honours the device's HTTP proxy.
  • New FeedPlacementController.reportPageViewOnTheSameWidget(), to count a new page view on a Feed the user came back to, as native iOS offers. It does nothing on Android, which has no equivalent. See Feed.

Banner

  • BannerPlacement takes no space until the ad fills and collapses to 0 on a no-fill or timeout, as native does. BannerPlacement.initialHeight is deprecated and no longer used. A layout that relied on the 100 px placeholder will shift.
  • New BannerPlacementConfig fields. extId, extSecondaryId, obPubImp and floorPrice are passed to the native Banner on both platforms.
  • BannerPlacementConfig.testDisplay works on iOS only. The native Android Banner ignores it, and the published Android SDK offers no other way to set it.
  • On iOS the Banner re-measures itself on rotation; forwarding viewWillTransition is no longer needed.
  • Banner and Media event data keep nested values, such as the page data on a fill, instead of only top-level strings and numbers.

Config and test doubles

  • New FeedPlacementConfig fields. extId, extSecondaryId, floorPrice (an int) and testDisplay, which forces a test creative as native does. copyWith accepts them. See Settings.
  • FeedPlacementBuilder has a new parameter. A custom builder passed to FeedPlacementBuilder (the test seam) must now accept contentBottomPadding. FeedPlacement.new and MockFeedPlacement.new already do.
  • MockFeedPlacement follows the real widget. It is 0 tall until a simulated fill, emits clickedOrganic from fireOrganicClick, drops event names the real widget drops instead of calling onUnsupported, and emits viewed then viewability for the page's viewability event. Widget tests that checked its 300 px size or an onUnsupported call need updating. New MockFeedPlacementController for the new controller.

Fixed

  • The Feed counted its bottom padding twice. The WebView took the padding into its own height as well as getting it below, so the page reported a larger height each time. On iOS this grew the Feed well past its content. The WebView now takes exactly the reported height, and the padding sits only below it.
  • A throwing onEvent, onFullScreenChange or onUnsupported no longer drops the rest of a Feed bridge message. Previously it could leave every widgetIndex other than 0 Feed on the page blank. The error is reported through FlutterError.onError. A throwing onEvent on the ad's fill no longer leaves an iOS Feed at 0.
  • The organic-click fallback opens an in-app browser view. The documentation said "external browser". The behaviour is unchanged since 1.0.0.

[1.1.0]​

Built on native TeadsSDK 6.2.2 on iOS and 6.2.3 on Android.

New

  • iOS: Swift Package Manager support. The plugin is now also a Swift package, resolving TeadsSDK from https://github.com/teads/TeadsSDK-iOS. Apps without Teads AdMob mediation keep working on either install path. Upgrading with AdMob mediation: an app that has pod 'TeadsAdMobAdapter' fails to build on Flutter 3.44+ with Multiple commands produce …/TeadsSDK.framework, because the pod embeds TeadsSDK a second time. Either move to the TeadsAdMobAdapter product of the Swift package and call TeadsAdMobMediation.register() (see AdMob mediation), or turn Swift Package Manager off with flutter config --no-enable-swift-package-manager.

Changed

  • Android: the Teads Maven repository no longer needs adding. The plugin now registers it for your build. Apps that declare repositories centrally in settings.gradle (dependencyResolutionManagement) still add it there, since Gradle ignores plugin-contributed repositories in that mode.
  • Android: the plugin now builds with AGP 8.12.1 (was 8.11.1), the version the upgraded dependencies below declare. Apps are not required to upgrade: an app on AGP 8.11.1 was verified to still build.
  • Dependencies: battery_plus 7, connectivity_plus 7, device_info_plus 13, package_info_plus 10.
  • Android: no AdMob application ID is needed unless your app uses AdMob. The native SDK stopped depending on Google Mobile Ads in 6.2.2, so the manifest entry earlier docs asked for is no longer required (this was already true of 1.0.0).

[1.0.0] — Initial production release​

Built on native TeadsSDK 6.2.2 on iOS and 6.2.3 on Android. Requires iOS 15.0+ and Android minSdk 24.

Placements

  • Feed (SmartFeed) — pure Dart bridge integration, automatic pagination, fullscreen video, dark mode, organic click callback, and multi-widget coordination
  • Media (InRead) — inline video and display, self-sizing with ratio updates
  • Banner — self-sizing, with runtime dark-mode toggling via BannerController
  • Interstitial — load / isReady / show / dispose, with optional floor price
  • Recommendations — data-only fetch, tap-time click registration, the AdChoices URL (Recommendations.adChoicesUrl), a test mode for paid items (Recommendations.setTestRtb), and Dart-side viewability reporting for publisher-rendered lists
  • AdMob Mediation — reference mediation integration and demo implementations for Banner, Interstitial, and Media

SDK

  • TeadsSdk.configure and TeadsSdk.setTestMode
  • TeadsPrivacy consent overrides (TCF v1/v2, US Privacy, GPP, gdprApplies) and the iOS App Tracking Transparency prompt, TeadsPrivacy.requestTrackingAuthorization()
  • iOS privacy manifest (PrivacyInfo.xcprivacy) shipped with the plugin
  • TeadsLog — log levels and pluggable sink
  • Injectable interfaces for entry points, with test doubles in package:teads_flutter/teads_flutter_mocks.dart

Not implemented

  • Media Native placement

See the format guides for the supported API and the Troubleshooting Guide for known limitations.