実現したいこと
- IOS(Androidも)アプリでプッシュ通知を受け取りたい
前提
FireBaseよりプッシュ通知を送る機能を製造中です。
本家サイトの設定は
FireBaseコンソール
Xcode内での設定は正常に終わっているかと思っています。
https://firebase.google.com/docs/cloud-messaging/ios/client?hl=ja
発生している問題・エラーメッセージ
2023-05-02 16:13:53.636685+0900 XXXXProject[83357:19643671] 10.8.1 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.8.1 started 2023-05-02 16:13:53.637025+0900 XXXXProject[83357:19643486] [Firebase/Crashlytics] Version 10.8.1 2023-05-02 16:13:53.637022+0900 XXXXProject[83357:19643671] 10.8.1 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2023-05-02 16:13:53.637528+0900 XXXXProject[83357:19643671] 10.8.1 - [FirebaseMessaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging to ensure proper integration. 2023-05-02 16:13:53.827200+0900 XXXXProject[83357:19643678] 10.8.1 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement 2023-05-02 16:13:53.938414+0900 XXXXProject[83357:19643486] WF: === Starting WebFilter logging for process XXXXProject 2023-05-02 16:13:53.938466+0900 XXXXProject[83357:19643486] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2023-05-02 16:13:53.938498+0900 XXXXProject[83357:19643486] WF: _WebFilterIsActive returning: NO 2023-05-02 16:13:53.944442+0900 XXXXProject[83357:19643486] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2023-05-02 16:13:53.944478+0900 XXXXProject[83357:19643486] WF: _WebFilterIsActive returning: NO APNs token retrieved: 32 bytes Firebase registration token: Optional("ccrrUYgo3ksQpH2gpTCvkh:APA91bEmePqD5orki-xpXFXAiCLOsowxsfUFsChg8AvKkO85JzC5MCdA0KySf649WpF_xKjA-ZPEJN39hM7FT0ZHx5P8tqR9Mp2LCwMbFpT2NHwM-jEjy-WayJS4s946CoOoI6VxL97W") ua1; Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 2023-05-02 16:13:54.355591+0900 XXXXProject[83357:19643678] 10.8.1 - [FirebaseAnalytics][I-ACS023012] Analytics collection enabled 2023-05-02 16:13:54.356286+0900 XXXXProject[83357:19643678] 10.8.1 - [FirebaseAnalytics][I-ACS023220] Analytics screen reporting is enabled. Call Analytics.logEvent(AnalyticsEventScreenView, parameters: [...]) to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist 2023-05-02 16:13:54.448012+0900 XXXXProject[83357:19643678] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1.1 142.251.42.202:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-05-02 16:13:54.448091+0900 XXXXProject[83357:19643678] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1.1 142.251.42.202:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-05-02 16:13:54.453480+0900 XXXXProject[83357:19643678] [connection] nw_endpoint_handler_set_adaptive_read_handler [C2.1 142.251.42.202:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-05-02 16:13:54.453553+0900 XXXXProject[83357:19643678] [connection] nw_endpoint_handler_set_adaptive_write_handler [C2.1 142.251.42.202:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-05-02 16:13:54.543115+0900 XXXXProject[83357:19643678] 10.8.1 - [FirebaseInAppMessaging][I-IAM130004] Failed restful api request to fetch in-app messages: seeing http status code as 403 with body as { "error": { "code": 403, "message": "Firebase In-App Messaging API has not been used in project 140704145615 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseinappmessaging.googleapis.com/overview?project=140704145615 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Google developers console API activation", "url": "https://console.developers.google.com/apis/api/firebaseinappmessaging.googleapis.com/overview?project=140704145615" } ] }, { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "SERVICE_DISABLED", "domain": "googleapis.com", "metadata": { "consumer": "projects/140704145615", "service": "firebaseinappmessaging.googleapis.com" } } ] } } 2023-05-02 16:13:54.544925+0900 XXXXProject[83357:19643678] 10.8.1 - [FirebaseInAppMessaging][I-IAM700002] Error happened during message fetching Error Domain=NSURLErrorDomain Code=403 "(null)" 2023-05-02 16:13:54.685640+0900 XXXXProject[83357:19643671] [connection] nw_endpoint_handler_set_adaptive_read_handler [C3.1 172.217.175.234:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-05-02 16:13:54.685791+0900 XXXXProject[83357:19643671] [connection] nw_endpoint_handler_set_adaptive_write_handler [C3.1 172.217.175.234:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-05-02 16:14:25.384250+0900 XXXXProject[83357:19644229] [connection] nw_endpoint_handler_set_adaptive_read_handler [C4.1 172.217.31.138:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-05-02 16:14:25.384330+0900 XXXXProject[83357:19644229] [connection] nw_endpoint_handler_set_adaptive_write_handler [C4.1 172.217.31.138:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 2023-05-02 16:14:59.101273+0900 XXXXProject[83357:19644447] [connection] nw_endpoint_handler_set_adaptive_read_handler [C5.1 172.217.161.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 2023-05-02 16:14:59.101424+0900 XXXXProject[83357:19644447] [connection] nw_endpoint_handler_set_adaptive_write_handler [C5.1 172.217.161.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed
該当のソースコード
swift
1AppDelegate.swift 2は以下のサンプルソースを使用しています 3https://github.com/firebase/quickstart-ios/tree/master/messaging/MessagingExampleSwift
試したこと
公式サイトを見ての実装。
実機上に通知が表示されません。
どこが悪いのか判別できずにおります。
ポイント等をご指示いただけると嬉しいです。。
補足情報(FW/ツールのバージョンなど)
Xcode14.3

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2023/05/08 00:23
2023/05/08 00:39
2023/05/08 05:27