urbanairship / ios-library

Urban Airship iOS SDK
http://urbanairship.com
Apache License 2.0
478 stars 265 forks source link

The backend server receives a large number of abnormal requests, when the iOS App receives the push notification #329

Closed Spock0x0 closed 2 years ago

Spock0x0 commented 2 years ago

❗For how-to inquiries involving Airship functionality or use cases, please contact (support)[https://support.airship.com/].

Preliminary Info

What Airship dependencies are you using?

Airship (16.0.3)

What are the versions of any relevant development tools you are using?

Xcode 13.2.1, iOS 12

Report

What unexpected behavior are you seeing?

backend server receive huge request when app got notification The user-agent of the request in error will be KKday/1 CFNetwork/1378.1 Darwin/22.0.0 correct user-agent will be like kkday-ios-member/xxxx

image2022-6-16_19-7-15

截圖 2022-07-27 上午11 49 16

What is the expected behavior?

There should be no abnormal request issued

What are the steps to reproduce the unexpected behavior?

When the app receives a push wave, it will trigger a large number of abnormal requests

Do you have logging for the issue?

NO

rlepinski commented 2 years ago

None of those requests are Airship requests. I assume these are requests your app is making and the user agent is not set properly? When a content-available push is received it will wake the app up but keep it in the background. Maybe you have some code that is setup at a later time in the app lifecycle?

Spock0x0 commented 2 years ago

thanks, I will look into app lifecycle