Skip to content

[Bug]: 'setAdvertiserTrackingEnabled' is only available in iOS 12.0 or newer #344

@Unevenn

Description

@Unevenn

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Swift Compiler Error (Xcode): 'setAdvertiserTrackingEnabled' is only available in iOS 12.0 or newer

FBAdSettings.setAdvertiserTrackingEnabled(enabled)

Expected Behavior

if #available(iOS 12.0, *) {
FBAdSettings.setAdvertiserTrackingEnabled(enabled)
}

Steps To Reproduce

Please fix setAdvertiserTrackingEnabled function with if block

Platform

iOS

Flutter Doctor

[✓] Flutter (Channel stable, 3.16.5, on macOS 14.1 23B74 darwin-arm64, locale
    tr-TR)
    • Flutter version 3.16.5 on channel stable at
      /Users/mustafabutun/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (3 months ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version
    34.0.0-rc1)
    • Android SDK at /Users/mustafabutun/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0-rc1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.14.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.86.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        •
      android-arm64  • Android 13 (API 33) (emulator)
    • iPhone (mobile)             • 00008110-001241A20178801E            • ios
      • iOS 17.3.1 21D61
    • iPhone 13 Pro Max (mobile)  • 7385229B-2ADA-46BA-8258-BEA47266E74D • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)             • macos                                •
      darwin-arm64   • macOS 14.1 23B74 darwin-arm64
    • Chrome (web)                • chrome                               •
      web-javascript • Google Chrome 123.0.6312.58

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

bug🐞Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions