일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- raywenderlich
- reactorkit
- ios
- Kuring
- 패스트캠퍼스
- SwiftUI
- Xcode
- tableView
- SnapKit
- Swfit
- BOJ
- Flutter
- CollectionView
- swift
- designpattern
- node.js
- UIKit
- 프로그래머스
- TCA
- combine
- WWDC24
- 백준
- realm
- rxcocoa
- XCTest
- visionOS
- MVVM
- RxSwift
- Lv2
- arkit
Archives
- Today
- Total
lgvv98
[iOS] 시뮬레이터에서 Remote Notification (푸시알림) 본문
[iOS] 시뮬레이터에서 Remote Notification (푸시알림)
오늘은 시뮬레이터에서 푸시 알림을 날리는 방법을 알아봅시다.
1. 시뮬레이터를 실행한 상황에서 터미널을 열고 아래의 코드를 실행해주세요.
xcrun simctl list devices | grep Booted
2. 노티피케이션을 보낼 파일을 준비해주세요.
- 제가 만든 파일을 다운 받으셔도 좋습니다.
3. 노티피케이션 쏘기
xcrun simctl push {디바이스 아이디} {앱 번들} {파일 경로}
// 👇🏻 예시
xcrun simctl push 12345678-1A2B-3B4D-56C1-123A456B789C com.notication.lgvv /User/Desktop/test.apns
// 성공하면 터미널에
Notification sent to 'com.notication.lgvv'
'apple > Docs, iOS, Swift' 카테고리의 다른 글
[iOS] SwiftUI SceneDelegate, AppDelegate 변경 (0) | 2022.08.25 |
---|---|
[iOS] UICollectionView에 대해서 알아보기 3편 (동적 Cell) (0) | 2022.08.22 |
[iOS] UICollectionView에 대해서 알아보기 2편 (0) | 2022.08.12 |
[iOS] UICollectionView에 대해서 알아보기 1편 (0) | 2022.08.11 |
[iOS] rootViewController 교체하기 (0) | 2022.08.10 |
Comments