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

Custom events sent only when app goes to the background #60

Open dhadar1 opened 2 weeks ago

dhadar1 commented 2 weeks ago

Description

We are using NewRelicAgent to send custom events to Newrlic but are facing an odd behavior - only when the app goes to the background will the agent send the events instead of sending the events in the foreground after the session is closed or after 10 minutes as written in the documentations

Steps to Reproduce

  1. install the agent
  2. send custom event
  3. wait at least 10 minutes
  4. send the app to the background

Expected Behavior

the events will be sent when the app is in the foreground if the session is closed or after 10 minutes

Your Environment

Swift version - swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0 New relic agent version - 7.4.10

cdillard-NewRelic commented 2 weeks ago

Hi there, I've added a ticket to our JIRA system to investigate this issue. Can you please try with the latest 7.5.2 agent and report if the issue is still occurring? Thank you very much for reporting this issue and using the New Relic iOS agent.

dhadar1 commented 1 week ago

Hi there, I've added a ticket to our JIRA system to investigate this issue. Can you please try with the latest 7.5.2 agent and report if the issue is still occurring? Thank you very much for reporting this issue and using the New Relic iOS agent.

tried to upgrade the agent version to 7.5.2 but still experienced the same unexpected behavior