- ASP.Net Core 404
- 파일업로드 유효성체크
- javascript 바코드스캔
- XSS방어
- Mac Oracle
- jquery 바코드생성
- 강제이동
- 하드 마이그레이션
- asp.net Select
- 말줄임표시
- 404에러페이지
- php 캐쉬제거
- asp.net core Select
- javascript 바코드 생성
- TempData
- javascript 유효성체크
- django 엑셀불러오기
- 바코드 생성하기
- 하드 윈도우 복사
- 바코드 스캔하기
- 타임피커
- javascript redirection
- 파일업로드 체크
- ViewData
- jquery 바코드
- ViewBag
- XSS PHP
- asp.net dropdownlist
- SSD 복사
- 맥 오라클설치
웹개발자의 기지개
[Swift] IOS Firebase Push 알림설정하기 본문
1. 맥북 애플 개발자에서 만든 Key
Name:앱이름 push
Key ID:7A777777
Services:Apple Push Notifications service (APNs)
: AuthKey_7A777777.p8 생성됨 이거를 나중에 Firebase IOS 앱설정 항목에 업로드한다.
2. 애플 개발자 사이트에서 Member Details 에서
Team ID 값 저장 : 22J4222222
3. 해당 앱경로에서 pop 파일을 추가한다.
pop init
그러면 Podfile 생성후 아래 소스 추가한다.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '앱이름' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for 앱이름
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
end
4. pod install
jongwon@ijong-won-ui-MacBookPro 앱이름 % pod install
Analyzing dependencies
Downloading dependencies
Installing Firebase (10.1.0)
Installing FirebaseAnalytics (10.1.0)
Installing FirebaseCore (10.1.0)
Installing FirebaseCoreInternal (10.1.0)
Installing FirebaseInstallations (10.1.0)
Installing FirebaseMessaging (10.1.0)
Installing GoogleAppMeasurement (10.1.0)
Installing GoogleDataTransport (9.2.0)
Installing GoogleUtilities (7.10.0)
Installing PromisesObjC (2.1.1)
Installing nanopb (2.30909.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `앱이름.xcworkspace` for this project from now on.
Pod installation complete! There are 2 dependencies from the Podfile and 11 total pods installed.
[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] Automatically assigning platform `iOS` with version `13.0` on target `앱이름` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
그다음에는 [프로젝트명].xcworkspace 라는 파일로 새로 열어서 프로그램 작업한다.
5. [프로젝트명].xcworkspace 에서 AppDelegate 열고
import Firebase 시키고
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure() // 추가한다. (파이어베이스 초기화 소스)
return true
}
6. Signing 에서 Capability 에서 push notifications 항목 추가
다시다시 아래의 항목으로 최종 결정한다.
코코아팟 설치하고
Xcode 프로젝트에 코코아팟(CocoaPods) 설치 및 디펜던시 추가 방법 - BGSMM
Xcode 프로젝트에 코코아팟(CocoaPods) 설치 및 디펜던시 추가 Xcode를 이용해서 iOS 프로젝트 등을 개발할 때 서드파티 라이브러리를 사용할 일이 많은데, 대다수 라이브러리들이 CocoaPods(코코아팟)라
yoonbumtae.com
실제 appDelegate.swift 에서 소스작업
Swift(스위프트): 원격 푸시 알림(Push Notification)에서 파이어베이스 메시징(Firebase Messaging)으로 실제
이 글의 내용을 진행하려면 이전에 작성한 푸시 알림 관련 글을 먼저 읽어야 합니다. Swift(스위프트): 원격 푸시 알림(Push Notification) 기초 및 푸시 알림의 모의 테스트 방법 上편 (스토리보드) S
yoonbumtae.com
http://yoonbumtae.com/ 님의 블로그글 참고하여 자체 연구 수정하였습니다.
'IOS > Swift' 카테고리의 다른 글
[IOS] Swift FCM Firebase 에서 Token 초기화 방지하기 (0) | 2022.11.16 |
---|---|
[IOS] Xcode 로 애플앱 등록하기 (0) | 2020.11.29 |
[IOS] IOS 앱 등록시에 스크린샷 작업하기 (0) | 2020.11.29 |
[IOS] 앱배포시 Error 메세지 - 해결방안 (0) | 2020.11.21 |