unity_ads_plugin은 Flutter 애플리케이션에서 Unity 광고를 통합할 수 있도록 하며, 안드로이드 및 iOS에서 배너 및 비디오 광고 형식을 지원합니다. 앱 내에서 광고를 로드하고 표시하기 위한 간단한 인터페이스를 제공하여 개발자가 Unity의 광고 플랫폼을 통해 프로젝트를 수익화할 수 있도록 도와줍니다. 이 플러그인은 Flutter의 네이티브 통합 기능과 원활하게 작동하도록 설계되어, 깊이 있는 플랫폼별 지식 없이도 부드럽게 광고 렌더링이 가능합니다. 최소한의 설정으로 신뢰할 수 있는 앱 내 광고 솔루션을 찾는 앱에 이상적입니다.
A Flutter plugin for integrating Unity Ads into your mobile applications. Easily display Unity Banner Ads and Unity Video Ads (Rewarded & Interstitial) with simple Dart APIs.
Features
Display Unity Banner, Rewarded, and Interstitial Video Ads
Android: the ad shows up as a separate app in Recent Apps
Symptom. While a fullscreen ad is playing, Recent Apps shows two cards for your app — your
app and the ad. Users can swipe the ad away before it completes, so the impression is lost.
Fix. Remove one line from your app's android/app/src/main/AndroidManifest.xml:
Flutter's template adds that blank affinity; Unity's ad screen keeps the default one. Android
puts screens with different affinities in different tasks
— hence the second card. Removing it puts the ad back in your app's task.
Trade-off. The attribute guards against task hijacking
(flutter#144018), which Android patches at the
OS level from API 30. On
minSdk 30+ removing it costs nothing; below that, users on Android 7–10 lose partial
protection — raising minSdk to 30 fixes both concerns at once.
Adding excludeFromRecents to Unity's ad activity does not work as an alternative.
See issue #70.
Donate
If you find this package helpful and would like to support its continued development, please consider making a donation. Your contributions are greatly appreciated and motivate the further enhancement of this and other plugins.
Your support helps maintain and improve this package, ensuring it remains up-to-date and useful for the community.