그래서 내 중포 기지 푸시 알림은 iOS에서 작동하지 않습니다 (시뮬레이터 + I이 이미 이유가 될 수도, 개발자 계정이없는?)중포 기지 푸시 알림
내가 무슨 짓을 :
- 구글 중포 기지에서 응용 프로그램
- 추가 GoogleService-의 Info.plist 내 프로젝트 디렉토리 내 Podfile에
- 추가 중포 기지/FirebaseMessaging을 (내가 아직이 없기 때문에 내가 지문을 추가하지 않은 생각을) 등재기능 내 응용 프로그램 위임에
- 추가 된 다음 코드
- 추가 키 체인 공유 : 여기
내 코드입니다 :
import Firebase
import UserNotifcations
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FIRApp.configure()
let center = UNUserNotificationCenter.current()
center.requestAuthorization(options: [.badge, .alert, .sound] {(granted, error) in}
application.registerForRemoteNotifications()
return true;
}
}
실수는? 내가 뭐 놓친 거 없니? 개발자 계정이 없거나 푸시 알림을 수신 할 수없는 시뮬레이터이기 때문입니까? 어떤 도움을 주시면 감사하겠습니다!