Skip to content

Instantly share code, notes, and snippets.

import FirebaseMessaging
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
Messaging.messaging().delegate = self
@NORIKIM
NORIKIM / unNotification.swift
Created October 13, 2021 10:28
UNNotification 설정
import UIKit
import Firebase
import UserNotifications
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
// 단순 코드 분리용
// userNotification 딜리게이트 채택을 위함
@NORIKIM
NORIKIM / firebaseAppleLogin.txt
Last active October 12, 2021 11:24
Firebase Apple Login
import UIKit
import FirebaseAuth
import AuthenticationServices
import CryptoKit
class LoginApple: UIViewController {
private var currentNonce: String?
}
extension LoginApple: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {