newrelic / newrelic-ios-agent-spm

This repository hosts the Swift Package Manager deployment of the iOS agent
Apache License 2.0
15 stars 9 forks source link

NRFeatureFlag_BackgroundReporting Not Working #52

Open amkomatz opened 3 weeks ago

amkomatz commented 3 weeks ago

I'm trying to use the new background reporting flag, but it doesn't appear to be working.

Description

I have set up the background modes, and have added my background task identifier. My background task is running as expected, I have verified this through remote logging. Still, no NewRelic data is coming through while the background task is running.

The following is at the top of my app delegate.

NewRelic.enableFeatures(NRMAFeatureFlags.NRFeatureFlag_BackgroundReporting)
NewRelic.setApplicationVersion(UIApplication.appVersion)
NewRelic.setApplicationBuild(UIApplication.buildNumber)
NewRelic.start(...)

Expected Behavior

NewRelic data should be flowing every time my background task runs. No events, networking data, etc., are making it through.

Relevant Logs / Console output

Your Environment

iOS 17.5.1 NewRelic SDK version 7.4.12

amkomatz commented 3 weeks ago

I'm even getting a success result from NewRelic.recordCustomEvent(...), but the events are not making it through