Ironsource Flutter Mediation SDK

Overview

Ironsource Flutter Mediation SDK

A Flutter plugin that uses native platform views (IOS & Android) to show IronSource banner and interstitial ads!



portfolio_view        portfolio_view

Getting Started 🚀

Initialize the plugin (Android Only):

Android Installing

Manifest Permissions #

Add the following permissions to your AndroidManifest.xml file inside the manifest tag but outside the tag:

">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Manifest Activities #

Add the following activities inside the tag in your AndroidManifest:
">
    <activity
                android:name="com.ironsource.sdk.controller.ControllerActivity"
                android:configChanges="orientation|screenSize"
                android:hardwareAccelerated="true" />
    <activity
                android:name="com.ironsource.sdk.controller.InterstitialActivity"
                android:configChanges="orientation|screenSize"
                android:hardwareAccelerated="true"
                android:theme="@android:style/Theme.Translucent" />
    <activity
                android:name="com.ironsource.sdk.controller.OpenUrlActivity"
                android:configChanges="orientation|screenSize"
                android:hardwareAccelerated="true"
                android:theme="@android:style/Theme.Translucent" />

Create object

    String testAppId = "9b563ab5";
    InterstitialHelper interstitialHelper = InterstitialHelper(testAppId);

Show Interstitial Ads

  • Show Interstitial Ad:
   //interstitial ready is can show?

   RaisedButton(onPressed: () {
              if (interstitialHelper.isShow()) {
                interstitialHelper.onShow();
              }



Interstitial Methods

*Methods InterstitialHelper

   //onPause interstitial just work Android

   interstitialHelper.onPause();

   //onResume interstitial just work Android

   interstitialHelper.onResume();

   //onDestroy interstitial

   interstitialHelper.onDestroy();
   
   //isShow interstitial isShowing ?
   interstitialHelper.isShow();
 
   //onShow interstitial show :)
   interstitialHelper.onShow();

Show Banner Ad:

  IronSourceBanner(
      adSize: bannerSize,
      listener: (
        IronsourceAdEvent event, Map<String, dynamic> args) {
        handleEvent(event, args, 'Banner');
       },
     ),

Future Work

  • Implement for type of rewarded and offerwall ads.
You might also like...

Flutter guide + SDK. Check Community repository for common information.

freeRASP for Flutter freeRASP for Flutter is a part of security SDK for the app shielding and security monitoring. Learn more about provided features

Dec 26, 2022

Bug reporting SDK for Flutter apps.

Shake for Flutter Flutter plugin for Shake. How to use Install Shake Add Shake to your pubspec.yaml file. dependencies: shake_flutter: ^15.0.0 I

Oct 18, 2022

Flutter版微信SDK.WeChat SDK for flutter.

Fluwx 中文请移步此处 What's Fluwx Fluwx is flutter plugin for WeChatSDK which allows developers to call WeChatSDK native APIs. Join QQ Group now: 892398530。

Jan 3, 2023

RelatedDigital Flutter SDK

RelatedDigital Flutter SDK

Table of Contents Introduction Requirements Installation Platform Integration Android iOS Usage Initializing Push Notifications Requesting Permission

Jun 26, 2022

Replaces Flutter's bundled Dart SDK with the macOS arm64 version

This script replaces Flutter's bundled Dart SDK with the macOS arm64 version Get

Oct 9, 2022

A flutter plugin to get facebook deep links and log app events using the latest Facebook SDK to include support for iOS 14

Facebook Sdk For Flutter LinkedIn GitHub facebook_sdk_flutter allows you to fetch deep links, deferred deep links and log facebook app events. This wa

Dec 17, 2022

Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null Safety 📑🚩

Todo 📑 🚩 📌 Introduction Todo is an Simple Task Management App coded using Dart which is a peogramming language for Flutter SDK(2.5) supports Null S

Nov 5, 2022

A flutter plugin to get android version(SDK INT).

get_sdk_int A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package that i

Dec 28, 2021

A convenience wrapper for building Flutter apps with PDFTron mobile SDK.

A convenience wrapper for building Flutter apps with PDFTron mobile SDK.

About PDFTron Flutter PDFTron's Flutter PDF library brings smooth, flexible, and stand-alone document viewing and editing solutions using Flutter code

Dec 26, 2022
Comments
  • Build failed on actual Podfile

    Build failed on actual Podfile

    Hi! I use last actual Podfile generated:

    
    # Uncomment this line to define a global platform for your project
    # platform :ios, '9.0'
    
    # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
    ENV['COCOAPODS_DISABLE_STATS'] = 'true'
    
    project 'Runner', {
      'Debug' => :debug,
      'Profile' => :release,
      'Release' => :release,
    }
    
    def flutter_root
      generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
      unless File.exist?(generated_xcode_build_settings_path)
        raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
      end
    
      File.foreach(generated_xcode_build_settings_path) do |line|
        matches = line.match(/FLUTTER_ROOT\=(.*)/)
        return matches[1].strip if matches
      end
      raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
    end
    
    require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
    
    flutter_ios_podfile_setup
    
    target 'Runner' do
      use_frameworks!
      use_modular_headers!
    
      flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
    end
    
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
      end
    end
    
    

    and get some error:

    (/somepath/build/ios/Release-app_dev-iphoneos/Promis
        esObjC/FBLPromises.framework/FBLPromises) was built for newer iOS version
        (9.0) than being linked (8.0)
        <module-includes>:1:9: note: in file included from <module-includes>:1:
        #import "Headers/ironsource_flutter_ads-umbrella.h"
                ^
        /somepath/ios/Pods/Target Support
        Files/ironsource_flutter_ads/ironsource_flutter_ads-umbrella.h:13:9: note:
        in file included from /somepath/ios/Pods/Target Support
        Files/ironsource_flutter_ads/ironsource_flutter_ads-umbrella.h:13:
        #import "IronsourceFlutterAdsPlugin.h"
                ^
        /somepath/flutter-ironsource-mediation-sdk/ios/Classes/Ironsou
        rceFlutterAdsPlugin.h:2:9: error: include of non-modular header inside
        framework module 'ironsource_flutter_ads.IronsourceFlutterAdsPlugin':
        '/somepath/ios/Pods/IronSourceSDK/IronSource/IronSource
        .framework/Headers/IronSource.h'
        #import "IronSource/IronSource.h"
                ^
        <unknown>:0: error: could not build Objective-C module
        'ironsource_flutter_ads'
    

    I try define modular in podspec s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } but still getting error.

    Your podfile is outdated. Please help how to fix podfile?

    You can remove Podfile and change min iOS to 10 then build project (flutter build ios --no-codesign) to reproduce this error.

    opened by Alezhka 1
  • Test Ads not displaying

    Test Ads not displaying

    Hi I will integrate my app with ironsource sdk but i have problems. These are given errors Rewarded Ad: Rewarded Video is not initiated with manual load Intersitial Ad: No interstitial configurations found

    My Android manifest <activity android:name="com.ironsource.sdk.controller.ControllerActivity" android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" /> <activity android:name="com.ironsource.sdk.controller.InterstitialActivity" android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent" /> <activity android:name="com.ironsource.sdk.controller.OpenUrlActivity" android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent" />

    I added activities. and other implementations like

    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
    implementation 'com.google.android.gms:play-services-basement:18.0.0'
    implementation 'com.google.android.gms:play-services-appset:16.0.2'
    implementation 'com.ironsource.sdk:mediationsdk:7.2.1'
    

    and in main initialized the ironsource

    IronSource.init(appKey: '=======', adUnits: [
      IronSourceAdUnit.Interstitial,
      IronSourceAdUnit.Banner,
      IronSourceAdUnit.RewardedVideo
    ]);
    var userId = await IronSource.getAdvertiserId();
    IronSource.setAdaptersDebug(true);
    await IronSource.validateIntegration();
    await IronSource.setUserId(userId);`
    

    I added the advertiser id of my emulator and real device to ironSource console. And the issue has not been solved Any helps please

    opened by Unevenn 0
Owner
CNT INTERACTIVE
CNT INTERACTIVE
Google mobile ads applovin - AppLovin mediation plugin for Google Mobile Ads (Flutter).

AppLovin mediation plugin for Google Mobile Ads Flutter Google Mobile Ads Flutter mediation plugin for AppLovin. Use this package as a library depende

Taeho Kim 1 Jul 5, 2022
Woocommerce SDK for Flutter. The Complete Woo Commerce SDK for Flutter.

woocommerce Woocommerce SDK for Flutter. Getting Started Add the package to your pubspec.yaml and import. import 'package:woocommerce/woocommerce.dart

RAY 105 Dec 6, 2022
Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Official Flutter packages for Stream Chat Quick Links Register to get an API key for Stream Chat Flutter Chat SDK Tutorial Chat UI Kit Sample apps Thi

Stream 659 Dec 25, 2022
Flutter-Udemy - - A Udemy clone using Flutter sdk and dart.

udemy_clone A new Flutter project. Below are some images : Getting Started This project is a starting point for a Flutter application. A few resources

Priyam Soni 3 Apr 24, 2022
The LoginRadius Flutter SDK will let you integrate LoginRadius' customer identity platform with your Flutter application(s).

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Ahmed Yusuf 4 Feb 3, 2022
Flutter Version Management: A simple cli to manage Flutter SDK versions.

fvm Flutter Version Management: A simple cli to manage Flutter SDK versions. Features: Configure Flutter SDK version per project or globally Ability t

于飞 242 Dec 18, 2022
[Flutter SDK V.2] - Youtube Video is a Flutter application built to demonstrate the use of Modern development tools with best practices implementation like Clean Architecture, Modularization, Dependency Injection, BLoC, etc.

[Flutter SDK V.2] - Youtube Video is a Flutter application built to demonstrate the use of Modern development tools with best practices implementation like Clean Architecture, Modularization, Dependency Injection, BLoC, etc.

R. Rifa Fauzi Komara 17 Jan 2, 2023
This is the UI of Furniture App made using Flutter SDK. The original design was made by someone else in dribble and I tried to create the screens of that UI using Flutter

Furniture App - Responsive Flutter UI Watch it on YouTube Responsive UI Fetch Data From API Custom Loading Indicator Packages we are using: flutter_sv

null 6 Dec 3, 2022
a flutter socket client sdk for ezyfox-server

ezyfox-server-flutter-client flutter client for ezyfox server Architecture Offical documentation https://youngmonkeys.org/ezyfox-flutter-client-sdk/ P

Young Monkeys 44 Dec 13, 2022
Avo Inspector SDK for Flutter

Avo Inspector for Flutter @Hacktoberfest Happy Hacktoberfest! This repo is participating, check out the issues we've prepared for you If you need any

Avo 10 Oct 25, 2022