[ios]
-Admob,다국어 등
[아래 추가]
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-9721742065519552~959587xxxx</string>
<key>io.flutter.embedded_views_preview</key>
<true/>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>ko</string>
<string>ja</string>
</array>
-firebase 연결
GoogleService-Info.plist <-- 복사 할 때 위치 주의
-기타 리소스 <- 기존 프로젝트를 복사해서 신규로 할 때
ios/Runner/Assets.xcassets
-pod
ios/Podfile <-- 없으면 만들어야 하지만 보통은 있음.
[아래 추가]
pod 'Firebase/Analytics'
-swift
ios/Runner/AppDelegate.swift
[아래 추가]
-import Firebase
-FirebaseApp.configure()
import UIKit
import Flutter
import Firebase
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure()
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
'Flutter 시작하기' 카테고리의 다른 글
[flutter] run macos(desktop) http error (1) | 2022.06.06 |
---|---|
[Flutter] M1 run macos(desktop) cocoapod error (0) | 2022.06.06 |
Flutter , In iOS 14+ , debug mode Flutter apps can .. (0) | 2022.05.30 |
What’s New in Flutter 2 - AdMob (1) | 2021.03.05 |
DEBUG 라벨 제거하기 (0) | 2020.03.24 |