18 May 2022 08:07 PM - last edited on 15 Jul 2022 10:03 AM by MaciejNeumann
I am building an app using Swift and SwiftUI on Xcode 13.3.1. As part of the development I need to create a number of manual actions. I have found in several instances that nil is returned when I invoke DTXAction.enter("some event"). In the SDK documentation it says that nil is returned if an error occurred. Is there any way to see what the error is when nil is returned? I have the log level set to ALL but I don't see an error in the output.
18 May 2022 10:40 PM
Have you applied the privacy level snippet as shown in the instrumentation wizard? Actions are custom data and they are not created when privacy level is off which is the default configuration.
19 May 2022 02:08 PM
Yes in the app we have set the privacy configuration to the following:
I worked with my infrastructure team and found that a firewall rule was applied yesterday afternoon that blocked access to the beacon url. The rule was backed out and I am no longer seeing the problem. I believe that this was the root cause of the issue.
I was under the impression that data collection on the mobile device would take place regardless of whether the client could connect to the beacon url. Is that not the case for custom actions?
19 May 2022 02:12 PM
data collection is started, but agent shuts down capturing after some retries to reach the beacon endpoint as this is also needed for the agent to get its configuration