firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.56k stars 1.45k forks source link

In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this. #13689

Open XingZhiKe opened 2 hours ago

XingZhiKe commented 2 hours ago

Description

Background Task 2 ("GDTCCTUploader-upload"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

Reproducing the issue

No response

Firebase SDK Version

11.2

Xcode Version

15.4

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics

Targeted Platforms

iOS

Relevant Log Output

[Firebase/Crashlytics] Version 11.2.0
nw_connection_copy_connected_local_endpoint_block_invoke [C2] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
nw_connection_copy_connected_remote_endpoint_block_invoke [C2] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
nw_connection_copy_protocol_metadata_internal_block_invoke [C2] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
11.2.0 - [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.
11.2.0 - [FirebaseInAppMessaging][I-IAM280002] Firebase In App Messaging was not configured with FirebaseAnalytics.
已获得用户授权
nw_connection_copy_connected_local_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
nw_connection_copy_connected_remote_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
nw_connection_copy_protocol_metadata_internal_block_invoke [C4] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
Warning: -[BETextInput attributedMarkedText] is unimplemented
nw_application_id_create_self NECP_CLIENT_ACTION_GET_SIGNED_CLIENT_ID [80: Authentication error]
Failed to resolve host network app id
nw_connection_copy_connected_local_endpoint_block_invoke [C9] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
nw_connection_copy_connected_remote_endpoint_block_invoke [C9] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
nw_connection_copy_protocol_metadata_internal_block_invoke [C9] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
Failed to load banner: Publisher data not found. <https://support.google.cn/admob/answer/9905175#9>
nw_connection_add_timestamp_locked_on_nw_queue [C5] Hit maximum timestamp count, will start dropping events
nw_connection_add_timestamp_locked_on_nw_queue [C6] Hit maximum timestamp count, will start dropping events
nw_connection_add_timestamp_locked_on_nw_queue [C7] Hit maximum timestamp count, will start dropping events
Invalidating grant <invalid NS/CF object> failed
11.2.0 - [FirebaseSessions][I-SES000000] [Settings] Fetching newest settings failed with error: InstallationIDError("未能完成操作。(FirebaseSessions.FirebaseSessionsError错误3。)")

11.2.0 - [FirebaseSessions][I-SES000000] Error getting Firebase Installation ID: SessionInstallationsTimeOutError. Skipping this Session Event
Background Task 2 ("GDTCCTUploader-upload"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Task <DA1086DA-3BC8-4FCB-995C-BE15960771DC>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x30100df50 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <DA1086DA-3BC8-4FCB-995C-BE15960771DC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <DA1086DA-3BC8-4FCB-995C-BE15960771DC>.<1>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog, NSErrorFailingURLKey=https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog, _kCFStreamErrorDomainKey=4}
Task <6F8A6080-AF5A-4B00-B51C-C262B6D673BE>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x301015020 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <6F8A6080-AF5A-4B00-B51C-C262B6D673BE>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <6F8A6080-AF5A-4B00-B51C-C262B6D673BE>.<1>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseappcheck.googleapis.com/v1/projects/todolist-35858/apps/1:728727810987:ios:a12ff7fa936a39f7ba98ee:exchangeDeviceCheckToken, NSErrorFailingURLKey=https://firebaseappcheck.googleapis.com/v1/projects/todolist-35858/apps/1:728727810987:ios:a12ff7fa936a39f7ba98ee:exchangeDeviceCheckToken, _kCFStreamErrorDomainKey=4}
Task <0A0A9DE1-2CED-47FC-96C3-4FF08829F859>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x301042fa0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <0A0A9DE1-2CED-47FC-96C3-4FF08829F859>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <0A0A9DE1-2CED-47FC-96C3-4FF08829F859>.<1>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, _kCFStreamErrorDomainKey=4}
11.2.0 - [FirebaseInAppMessaging][I-IAM190006] Error in fetching FIS token: 未能完成该操作。Underlying error: 请求超时。
11.2.0 - [FirebaseInAppMessaging][I-IAM190006] Error in fetching FIS token: 未能完成该操作。Underlying error: 请求超时。
11.2.0 - [FirebaseInAppMessaging][I-IAM130008] Not able to get iid value and/or token for talking to server: 未能完成该操作。Underlying error: 请求超时。
11.2.0 - [FirebaseInAppMessaging][I-IAM700002] Error happened during message fetching Error Domain=com.firebase.installations Code=0 "Underlying error: 请求超时。" UserInfo={NSLocalizedFailureReason=Underlying error: 请求超时。, NSUnderlyingError=0x301017570 {Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x301042fa0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <0A0A9DE1-2CED-47FC-96C3-4FF08829F859>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <0A0A9DE1-2CED-47FC-96C3-4FF08829F859>.<1>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, _kCFStreamErrorDomainKey=4}}}
nw_connection_add_timestamp_locked_on_nw_queue [C10] Hit maximum timestamp count, will start dropping events
nw_connection_add_timestamp_locked_on_nw_queue [C11] Hit maximum timestamp count, will start dropping events
Task <B6D003F0-49DD-4A37-94FD-48ACC28E8932>.<2> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x3010e8ff0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B6D003F0-49DD-4A37-94FD-48ACC28E8932>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B6D003F0-49DD-4A37-94FD-48ACC28E8932>.<2>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, _kCFStreamErrorDomainKey=4}
11.2.0 - [FirebaseInAppMessaging][I-IAM190006] Error in fetching FIS token: 未能完成该操作。Underlying error: 请求超时。
11.2.0 - [FirebaseInAppMessaging][I-IAM210001] Failed to get iid value for clearcut logging Error Domain=com.firebase.installations Code=0 "Underlying error: 请求超时。" UserInfo={NSLocalizedFailureReason=Underlying error: 请求超时。, NSUnderlyingError=0x301000960 {Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x3010e8ff0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B6D003F0-49DD-4A37-94FD-48ACC28E8932>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B6D003F0-49DD-4A37-94FD-48ACC28E8932>.<2>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, _kCFStreamErrorDomainKey=4}}}
nw_connection_add_timestamp_locked_on_nw_queue [C12] Hit maximum timestamp count, will start dropping events
Task <E989D7E8-0C71-4E52-8AD5-6EA0B36A5036>.<2> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x301087ab0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E989D7E8-0C71-4E52-8AD5-6EA0B36A5036>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <E989D7E8-0C71-4E52-8AD5-6EA0B36A5036>.<2>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseappcheck.googleapis.com/v1/projects/todolist-35858/apps/1:728727810987:ios:a12ff7fa936a39f7ba98ee:exchangeDeviceCheckToken, NSErrorFailingURLKey=https://firebaseappcheck.googleapis.com/v1/projects/todolist-35858/apps/1:728727810987:ios:a12ff7fa936a39f7ba98ee:exchangeDeviceCheckToken, _kCFStreamErrorDomainKey=4}
Task <B51783B1-5958-4FAC-8DF8-EEE25FCD9CF4>.<3> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x301026250 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B51783B1-5958-4FAC-8DF8-EEE25FCD9CF4>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B51783B1-5958-4FAC-8DF8-EEE25FCD9CF4>.<3>"
), NSLocalizedDescription=请求超时。, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/todolist-35858/installations/, _kCFStreamErrorDomainKey=4}
nw_connection_add_timestamp_locked_on_nw_queue [C13] Hit maximum timestamp count, will start dropping events
nw_connection_add_timestamp_locked_on_nw_queue [C14] Hit maximum timestamp count, will start dropping events

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 2 hours ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.